:root {
  --ink: #10161d;
  --ink-soft: #1b232d;
  --ink-light: #26313c;
  --line: rgba(255, 255, 255, .12);
  --muted: #8e99a4;
  --paper: #f3eee6;
  --paper-soft: #fbf9f5;
  --amber: #f0b86a;
  --amber-deep: #c98239;
  --blue: #91b7c9;
  --green: #9ac29b;
  --red: #e88b7c;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: "Segoe UI", Inter, Arial, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-shell { max-width: 1440px; min-height: 100vh; margin: auto; padding: 0 5vw; background: var(--ink); }
.public-nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; font-size: 20px; }
.brand-mark, .welcome-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--amber); color: var(--ink); font-family: Georgia, serif; font-size: 22px; font-weight: 800; font-style: italic; }
.public-links { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; }
.public-links a:hover, .text-link:hover { color: var(--paper); }
.public-links .nav-cta { color: var(--ink); background: var(--amber); padding: 10px 16px; border-radius: 99px; font-weight: 700; }
.public-links .nav-cta span, .url-form button span, .text-link span { margin-left: 6px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .78fr); gap: 8vw; align-items: center; padding: 105px 0 92px; }
.eyebrow, .card-kicker, .topbar-kicker, .side-label, .summary-label, .auth-kicker { color: var(--amber); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--amber); }
.hero-copy h1 { margin: 23px 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6vw, 82px); font-weight: 400; letter-spacing: -.055em; line-height: .96; }
h1 em, h2 em { color: var(--amber); font-style: italic; }
.hero-lead { max-width: 600px; margin: 0; color: #bdc5cc; font-size: 18px; line-height: 1.65; }
.source-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 38px; color: var(--muted); font-size: 13px; }
.source-row span { display: inline-flex; align-items: center; gap: 8px; }
.source-badge { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
.source-badge.wb { background: #d59cec; } .source-badge.oz { background: #a8a3f4; } .source-badge.ym { background: #ffe16d; }
.link-card { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 32px; box-shadow: 0 24px 80px rgba(0, 0, 0, .26); }
.link-card h2 { margin: 16px 0 10px; font-family: Georgia, serif; font-size: 34px; font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
.link-card p { margin: 0 0 24px; color: #66717b; font-size: 15px; }
.url-form { display: grid; gap: 10px; }
.url-form input, .workspace-url-form input { width: 100%; border: 1px solid #d8d1c7; border-radius: 10px; padding: 15px 16px; background: var(--paper-soft); color: var(--ink); outline: none; }
.url-form input:focus, .workspace-url-form input:focus, .auth-card input:focus, .send-form textarea:focus { border-color: var(--amber-deep); box-shadow: 0 0 0 3px rgba(201, 130, 57, .16); }
.url-form button, .workspace-url-form button, .auth-card button { border: 0; border-radius: 10px; padding: 14px 16px; background: var(--ink); color: var(--paper); font-weight: 700; }
.url-form button:hover, .workspace-url-form button:hover, .auth-card button:hover { background: #2b3743; }
.card-foot { margin-top: 19px; color: #777f83; font-size: 12px; }
.mini-lock { color: var(--amber-deep); margin-right: 6px; }

.sample-report { margin-bottom: 105px; padding: 22px 28px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-soft); }
.report-topline { display: flex; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.report-topline span:first-child { color: var(--amber); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.report-grid { display: grid; grid-template-columns: 1.1fr .7fr 1fr; gap: 40px; padding-top: 32px; }
.report-summary h2 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: 30px; font-weight: 400; line-height: 1.1; }
.report-summary p { max-width: 420px; margin: 0 0 22px; color: #aab5be; font-size: 14px; }
.text-link { color: var(--amber); font-size: 14px; font-weight: 700; }
.report-metrics { display: grid; gap: 14px; align-content: start; }
.metric { display: flex; align-items: center; gap: 12px; }
.metric-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-weight: 800; }
.metric-icon.positive { background: rgba(154,194,155,.16); color: var(--green); } .metric-icon.neutral { background: rgba(145,183,201,.16); color: var(--blue); } .metric-icon.caution { background: rgba(232,139,124,.16); color: var(--red); }
.metric strong { display: block; font-size: 17px; } .metric small { display: block; color: var(--muted); font-size: 12px; }
.topic-list { display: grid; gap: 18px; align-content: center; }
.topic-row { display: grid; grid-template-columns: 1fr 88px 34px; gap: 10px; align-items: center; color: #b6c0c7; font-size: 12px; }
.topic-row b { height: 6px; border-radius: 99px; background: #33404b; overflow: hidden; } .topic-row i { display: block; height: 100%; border-radius: inherit; background: var(--amber); } .topic-row b.warn i { background: var(--red); } .topic-row strong { color: var(--paper); font-size: 12px; }
.how-section { padding: 0 0 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 42px; font-weight: 400; letter-spacing: -.04em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps article { padding: 30px 34px 0 0; border-right: 1px solid var(--line); } .steps article:not(:first-child) { padding-left: 34px; } .steps article:last-child { border-right: 0; }
.step-number { color: var(--amber); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.steps h3 { margin: 18px 0 8px; font-size: 18px; } .steps p { max-width: 280px; margin: 0; color: var(--muted); font-size: 14px; }
.public-footer { display: flex; justify-content: space-between; padding: 22px 0 28px; border-top: 1px solid var(--line); color: #68737d; font-size: 12px; }

/* auth */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ink); }
.auth-split { grid-template-columns: minmax(260px, 430px) 360px; gap: 9vw; position: relative; }
.auth-brand { position: absolute; top: 30px; left: 5vw; }
.auth-aside h2 { margin: 20px 0 14px; font-family: Georgia, serif; font-size: 44px; font-weight: 400; line-height: 1.02; letter-spacing: -.05em; } .auth-aside p { margin: 0; color: var(--muted); }
.auth-card { width: 100%; display: flex; flex-direction: column; gap: 14px; padding: 31px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-soft); }
.auth-card h1 { margin: 0; font-family: Georgia, serif; font-size: 30px; font-weight: 400; letter-spacing: -.04em; } .auth-sub { margin: -7px 0 5px; color: var(--muted); font-size: 14px; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; color: #bec7ce; font-size: 13px; } .auth-card input { border: 1px solid var(--line); border-radius: 9px; padding: 12px; background: var(--ink); color: var(--paper); outline: none; }
.auth-card button { margin-top: 7px; } .auth-error { padding: 9px 11px; border-radius: 8px; background: rgba(232,139,124,.14); color: #f1a396; font-size: 13px; } .auth-alt { margin: 5px 0 0; color: var(--muted); text-align: center; font-size: 13px; } .auth-alt a { color: var(--amber); }

/* workspace */
.workspace { display: flex; min-height: 100vh; background: var(--paper-soft); color: var(--ink); }
.workspace-sidebar { width: 270px; flex: 0 0 270px; display: flex; flex-direction: column; padding: 25px 18px 18px; background: var(--ink); color: var(--paper); }
.workspace-brand { display: flex; align-items: center; justify-content: space-between; margin: 0 6px 34px; } .workspace-brand .brand { font-size: 18px; } .version-pill { padding: 3px 7px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10px; }
.new-work-btn { display: flex; align-items: center; gap: 9px; border: 1px solid rgba(240,184,106,.55); border-radius: 10px; padding: 12px 14px; background: transparent; color: var(--amber); text-align: left; font-weight: 700; } .new-work-btn span { font-size: 21px; font-weight: 400; line-height: 1; }
.side-label { margin: 33px 8px 12px; color: #68737d; font-size: 10px; }
.conv-list { flex: 1; display: flex; flex-direction: column; gap: 5px; overflow-y: auto; } .conv-item { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 3px 6px; padding: 10px 9px; border-radius: 9px; color: #b2bcc4; cursor: pointer; } .conv-item:hover, .conv-item.active { background: var(--ink-soft); color: var(--paper); } .conv-icon { grid-row: span 2; color: var(--amber); } .conv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; } .conv-model { color: #6d7881; font-size: 11px; }
.sidebar-bottom { border-top: 1px solid var(--line); padding-top: 16px; } .account-box { min-height: 32px; color: var(--muted); font-size: 12px; } .plan-badge { display: inline-block; margin-right: 5px; padding: 2px 7px; border-radius: 99px; background: rgba(240,184,106,.15); color: var(--amber); font-size: 10px; font-weight: 800; } .btn-upgrade { margin-top: 8px; border: 0; background: none; color: var(--amber); padding: 0; font-size: 12px; } .logout-link { width: 100%; border: 0; margin-top: 14px; padding: 0; background: transparent; color: #7c8790; text-align: left; font-size: 12px; } .logout-link span { float: right; }
.workspace-main { display: flex; min-width: 0; flex: 1; flex-direction: column; } .workspace-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 5vw; border-bottom: 1px solid #ded8cf; } .topbar-kicker { display: block; color: #9a8c7c; font-size: 10px; } .topbar-title { display: block; margin-top: 2px; font-family: Georgia, serif; font-size: 20px; } .topbar-actions { display: flex; align-items: center; gap: 12px; } .icon-button, .avatar { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #d7d1c8; border-radius: 50%; background: transparent; color: #7f766d; } .avatar { border: 0; background: var(--ink); color: var(--amber); font-size: 12px; font-weight: 800; }
.messages { flex: 1; overflow-y: auto; padding: 6vh 8vw 40px; } .chat-welcome { max-width: 760px; margin: 0 auto; padding: 9vh 0 3vh; } .welcome-mark { margin-bottom: 26px; } .chat-welcome h1 { margin: 18px 0 14px; font-family: Georgia, serif; font-size: clamp(40px, 5vw, 68px); font-weight: 400; letter-spacing: -.055em; line-height: .98; } .chat-welcome p { max-width: 510px; margin: 0; color: #767f85; font-size: 17px; }
.workspace-url-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 28px; } .workspace-url-form input { background: #fff; } .workspace-url-form button { white-space: nowrap; background: var(--ink); } .prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; } .prompt-chips button { border: 1px solid #d8d1c7; border-radius: 99px; padding: 8px 11px; background: transparent; color: #78756f; font-size: 12px; }
.msg { max-width: 740px; margin: 0 auto 14px; padding: 16px 18px; border-radius: 13px; white-space: pre-wrap; line-height: 1.55; } .msg.user { background: var(--ink); color: var(--paper); } .msg.assistant { border: 1px solid #dfd8cf; background: #fff; }
.send-form { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; max-width: 900px; width: calc(100% - 10vw); margin: 0 auto 24px; padding: 9px 10px 9px 13px; border: 1px solid #d6d0c6; border-radius: 14px; background: #fff; } .mode-select { display: flex; flex-direction: column; padding-right: 10px; border-right: 1px solid #e1dbd3; } .mode-select span { color: #a19485; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; } .mode-select select { border: 0; background: transparent; color: var(--ink); font-size: 12px; outline: 0; } .send-form textarea { min-width: 0; resize: none; border: 0; padding: 7px 0; outline: 0; background: transparent; color: var(--ink); } .send-button { display: grid; place-items: center; width: 37px; height: 37px; border: 0; border-radius: 10px; background: var(--amber); color: var(--ink); font-size: 20px; font-weight: 800; }

@media (max-width: 820px) { .site-shell { padding: 0 22px; } .public-nav { min-height: 72px; } .public-links a:not(.nav-cta) { display: none; } .hero-grid { grid-template-columns: 1fr; gap: 44px; padding: 70px 0 60px; } .hero-copy h1 { font-size: clamp(46px, 14vw, 72px); } .link-card { padding: 24px; } .sample-report { margin-bottom: 64px; padding: 18px; } .report-grid { grid-template-columns: 1fr; gap: 28px; } .topic-list { max-width: 470px; } .section-heading { display: block; } .section-heading h2 { margin-top: 13px; font-size: 35px; } .steps { grid-template-columns: 1fr; } .steps article, .steps article:not(:first-child) { padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line); } .steps article:last-child { border-bottom: 0; } .public-footer { display: block; } .public-footer span { display: block; margin-top: 4px; } .auth-split { display: flex; flex-direction: column; align-items: stretch; gap: 26px; padding-top: 86px; } .auth-brand { left: 24px; } .auth-aside h2 { font-size: 38px; } .workspace-sidebar { width: 78px; flex-basis: 78px; padding: 20px 10px; } .workspace-sidebar .brand span:last-child, .version-pill, .new-work-btn, .side-label, .conv-title, .conv-model, .sidebar-bottom { display: none; } .workspace-brand { justify-content: center; margin: 0 0 30px; } .conv-item { grid-template-columns: 1fr; place-items: center; padding: 12px 5px; } .conv-icon { grid-row: auto; } .workspace-topbar { padding: 0 22px; } .messages { padding: 30px 22px; } .chat-welcome { padding-top: 7vh; } .workspace-url-form { grid-template-columns: 1fr; } .send-form { grid-template-columns: 1fr auto; width: calc(100% - 28px); } .mode-select { grid-column: 1 / -1; border: 0; border-bottom: 1px solid #e1dbd3; padding-bottom: 8px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
