:root {
  --ink: #102c2b;
  --ink-2: #234744;
  --paper: #f4f1e8;
  --white: #fffefa;
  --mint: #d8f0df;
  --acid: #dff34b;
  --orange: #f97345;
  --line: rgba(16, 44, 43, 0.16);
  --muted: #687b77;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  height: 78px; max-width: 1440px; margin: 0 auto; padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 800 18px "Manrope", sans-serif; letter-spacing: -.03em; }
.brand-mark { width: 30px; height: 30px; position: relative; display: flex; align-items: end; gap: 3px; padding: 6px; border-radius: 50%; background: var(--ink); }
.brand-mark i { display: block; width: 4px; background: var(--acid); border-radius: 4px; }
.brand-mark i:nth-child(1) { height: 7px; }.brand-mark i:nth-child(2) { height: 13px; }.brand-mark i:nth-child(3) { height: 10px; }
.agent-link { color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 600; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; transition: .2s ease; }
.agent-link:hover { background: var(--white); transform: translateY(-1px); }

main { max-width: 1440px; margin: 0 auto; padding: 0 5vw 80px; }
.hero { padding: 72px 0 56px; position: relative; }
.eyebrow { display: flex; align-items: center; gap: 9px; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.eyebrow span { width: 24px; height: 2px; background: var(--orange); }
.hero h1 { margin: 20px 0 22px; max-width: 940px; font: 800 clamp(49px, 7.4vw, 106px)/.94 "Manrope", sans-serif; letter-spacing: -.065em; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero > p { max-width: 650px; margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.signal-row { position: absolute; right: 0; bottom: 62px; display: flex; align-items: center; gap: 13px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.signal-row i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }

.workspace { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(390px, .97fr); align-items: start; gap: 22px; }
.brief-card, .report-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 18px 50px rgba(16, 44, 43, .06); }
.brief-card { background: var(--white); padding: 34px; }
.report-card { min-height: 760px; background: var(--ink); color: var(--white); position: sticky; top: 20px; }
.card-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 34px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.card-heading > div { display: flex; align-items: center; gap: 14px; }
.step { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 700; }
h2 { margin: 0; font: 700 22px "Manrope", sans-serif; letter-spacing: -.035em; }
.card-heading p { max-width: 190px; margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: right; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.field-wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 9px; position: relative; }
.field > span, legend, .budget-control > span { font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.field > span b { color: var(--orange); text-transform: uppercase; font-size: 8px; letter-spacing: .08em; margin-left: 5px; }
textarea, input[type="text"], select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf5; color: var(--ink); outline: none; transition: .18s ease; }
textarea { padding: 16px; resize: vertical; line-height: 1.55; }
input[type="text"], select { height: 48px; padding: 0 13px; }
textarea:focus, input[type="text"]:focus, select:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(16, 44, 43, .08); background: white; }
::placeholder { color: #9ba7a4; }
.field small { position: absolute; bottom: 9px; right: 12px; color: #99a5a1; font-size: 10px; background: #fbfaf5; padding-left: 5px; }
.research-sources { margin: 27px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.research-sources > p { grid-column: 1 / -1; margin: 0 0 1px; font-size: 12px; font-weight: 700; }
.source-item { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf5; }
.source-item > i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--ink); font-size: 9px; font-weight: 700; font-style: normal; }
.source-item > span { display: flex; flex-direction: column; gap: 3px; }
.source-item b { font-size: 12px; }.source-item small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.choice-group, .depth-control { border: 0; margin: 27px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-group legend, .depth-control legend { width: 100%; margin-bottom: 10px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { min-height: 58px; display: flex; flex-direction: column; justify-content: center; padding: 10px 13px 10px 42px; border: 1px solid var(--line); border-radius: 10px; position: relative; transition: .18s ease; }
.choice > span::before { content: ""; position: absolute; left: 13px; top: 19px; width: 17px; height: 17px; border: 1px solid #9caaa6; border-radius: 5px; }
.choice input:checked + span { border-color: var(--ink); background: var(--mint); }
.choice input:checked + span::before { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--mint); }
.choice b { font-size: 12px; }.choice small { margin-top: 2px; font-size: 10px; color: var(--muted); }
.social-choice { grid-template-columns: repeat(3, 1fr); }
.controls-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: end; margin-top: 27px; }
.depth-control { margin: 0; display: block; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; padding: 3px; background: #f2f2ec; }
.segmented label { cursor: pointer; }.segmented input { position: absolute; opacity: 0; }.segmented span { display: block; padding: 9px 5px; text-align: center; border-radius: 7px; font-size: 11px; font-weight: 600; }
.segmented input:checked + span { background: var(--white); box-shadow: 0 2px 8px rgba(16, 44, 43, .12); }
.budget-control { display: flex; flex-direction: column; gap: 15px; }
.budget-control > span { display: flex; justify-content: space-between; }
.budget-control output { color: var(--orange); }
input[type="range"] { accent-color: var(--orange); width: 100%; }
.is-disabled { opacity: .45; }
.submit-button { width: 100%; border: 0; border-radius: 10px; background: var(--orange); color: #fff; padding: 7px 8px 7px 20px; min-height: 58px; margin-top: 30px; display: flex; align-items: center; justify-content: space-between; font-weight: 700; box-shadow: 0 10px 24px rgba(249,115,69,.22); transition: .2s ease; }
.submit-button i { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; font-style: normal; color: var(--ink); background: var(--acid); font-size: 20px; }
.submit-button:hover { background: #ed6638; transform: translateY(-1px); }.submit-button:disabled { opacity: .6; cursor: wait; transform: none; }
.fine-print { text-align: center; color: var(--muted); font-size: 10px; margin: 12px 0 0; }
.form-error { margin-top: 20px; padding: 12px 14px; border-radius: 9px; background: #fff0eb; border: 1px solid #ffc6b2; color: #913718; font-size: 12px; }

.report-placeholder, .run-state { padding: 56px 52px; }
.report-placeholder .step { color: var(--acid); margin-bottom: 18px; }
.report-placeholder h2, .run-state h2 { font-size: 32px; }
.report-placeholder > p, .run-state > p { color: #a8bcb7; line-height: 1.55; font-size: 14px; max-width: 430px; }
.report-placeholder ul { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.13); }
.report-placeholder li { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.report-placeholder li > i { font: 600 11px "Manrope"; color: var(--acid); font-style: normal; }
.report-placeholder li span { display: flex; flex-direction: column; gap: 3px; }.report-placeholder li b { font-size: 13px; }.report-placeholder li small { color: #8fa6a1; font-size: 11px; }
.radar { width: 240px; height: 240px; border: 1px solid rgba(216,240,223,.18); border-radius: 50%; margin: 5px auto 42px; position: relative; display: grid; place-items: center; background: radial-gradient(circle, rgba(223,243,75,.09) 0 2px, transparent 3px); }
.radar::before, .radar::after, .radar span { content: ""; position: absolute; border: 1px solid rgba(216,240,223,.12); border-radius: 50%; }
.radar::before { width: 160px; height: 160px; }.radar::after { width: 80px; height: 80px; }.radar span:nth-child(1) { width: 6px; height: 6px; background: var(--acid); border: 0; top: 55px; right: 43px; box-shadow: 0 0 18px var(--acid); }.radar span:nth-child(2) { width: 5px; height: 5px; background: var(--orange); border: 0; bottom: 65px; left: 48px; }.radar span:nth-child(3) { width: 3px; height: 3px; background: white; border: 0; top: 97px; left: 50px; }
.radar i { width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--acid)); transform-origin: right; transform: translateX(-60px) rotate(32deg); opacity: .8; }

.run-header, .result-toolbar { display: flex; align-items: center; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.run-header > span:nth-child(2) { margin-right: auto; margin-left: 9px; }.run-header b { color: var(--acid); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(223,243,75,.12); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(223,243,75,0); } }
.run-visual { height: 220px; display: grid; place-items: center; }
.orbit { width: 130px; height: 130px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; position: relative; animation: spin 2.4s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }.orbit::before { inset: 22px; }.orbit::after { inset: 44px; background: var(--acid); border: 0; box-shadow: 0 0 40px rgba(223,243,75,.5); }
.orbit span { position: absolute; width: 10px; height: 10px; background: var(--orange); border-radius: 50%; top: 13px; left: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-list { list-style: none; counter-reset: progress; margin: 28px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.progress-list li { counter-increment: progress; padding: 14px 0 14px 30px; border-bottom: 1px solid rgba(255,255,255,.1); position: relative; color: #b6c7c3; font-size: 12px; line-height: 1.45; }
.progress-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--acid); }
.task-ref { margin-top: 18px !important; font-size: 9px !important; word-break: break-all; opacity: .55; }

.report-ready { min-height: 760px; padding: 56px 52px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.report-ready[hidden] { display: none; }
.report-ready .ready-check { display: grid; place-items: center; width: 82px; height: 82px; margin-bottom: 34px; border-radius: 50%; background: var(--acid); color: var(--ink); font: 800 34px "Manrope"; box-shadow: 0 0 0 14px rgba(223,243,75,.1); }
.report-ready .step { color: var(--acid); margin-bottom: 18px; }
.report-ready h2 { font-size: 32px; }
.report-ready p { max-width: 430px; color: #a8bcb7; font-size: 14px; line-height: 1.6; }
.open-report-button { width: 100%; max-width: 310px; min-height: 54px; margin-top: 20px; padding: 7px 8px 7px 18px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 10px; background: var(--orange); color: white; font-weight: 700; }
.open-report-button i { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 7px; background: var(--acid); color: var(--ink); font-size: 18px; font-style: normal; }
.report-result { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--white); color: var(--ink); overflow-y: auto; }
.report-result::backdrop { background: rgba(8, 28, 27, .72); backdrop-filter: blur(7px); }
.result-toolbar { position: sticky; top: 0; z-index: 2; padding: 16px clamp(20px, 4vw, 60px); background: rgba(255,254,250,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.result-toolbar > div { display: flex; align-items: center; gap: 8px; }.result-toolbar button { background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 10px; }
.result-toolbar .close-report { width: 34px; height: 34px; padding: 0; border-color: var(--ink); font-size: 22px; line-height: 1; }
.complete-dot { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--mint); color: var(--ink); }
.markdown-body { width: min(1180px, calc(100% - 80px)); margin: 0 auto; padding: 54px 0 90px; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.markdown-body h1 { font: 800 42px/1.08 "Manrope"; letter-spacing: -.045em; margin: 0 0 34px; }.markdown-body h2 { font-size: 25px; margin: 42px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); }.markdown-body h3 { margin: 28px 0 10px; font: 700 17px "Manrope"; }.markdown-body p { margin: 0 0 14px; }.markdown-body ul, .markdown-body ol { padding-left: 22px; }.markdown-body li { margin: 6px 0; }.markdown-body blockquote { margin: 18px 0; padding: 14px 18px; background: var(--mint); border-left: 3px solid var(--ink); }.markdown-body code { background: #eae9e2; padding: 2px 5px; border-radius: 4px; font-size: .9em; }.markdown-body a { color: #c64f26; }.markdown-body table { border-collapse: collapse; width: 100%; margin: 24px 0; font-size: 13px; line-height: 1.5; table-layout: auto; }.markdown-body th, .markdown-body td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }.markdown-body th { background: var(--mint); }

footer { max-width: 1440px; margin: 0 auto; padding: 30px 5vw 42px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
footer span { color: var(--ink); font-weight: 800; }footer p { margin: 0; }

@media (max-width: 980px) {
  .signal-row { position: static; margin-top: 30px; justify-content: flex-start; flex-wrap: wrap; }
  .workspace { grid-template-columns: 1fr; }.report-card { position: static; min-height: 680px; }.hero { padding-top: 55px; }
}
@media (max-width: 620px) {
  .site-header, main, footer { padding-left: 20px; padding-right: 20px; }.site-header { height: 68px; }.agent-link { font-size: 0; }.agent-link span { font-size: 13px; }
  .hero { padding: 46px 0 38px; }.hero h1 { font-size: 47px; }.hero > p { font-size: 15px; }.signal-row { font-size: 9px; gap: 9px; }
  .brief-card { padding: 25px 19px; }.card-heading { display: block; }.card-heading p { text-align: left; margin: 12px 0 0 48px; }
  .field-grid, .controls-row, .research-sources { grid-template-columns: 1fr; }.field-wide, .research-sources > p { grid-column: 1; }.social-choice { grid-template-columns: 1fr; }.choice-group:not(.social-choice) { grid-template-columns: 1fr 1fr; }
  .report-placeholder, .run-state { padding: 38px 25px; }.report-placeholder h2, .run-state h2 { font-size: 28px; }.radar { width: 190px; height: 190px; }.radar::before { width: 125px; height: 125px; }.radar::after { width: 65px; height: 65px; }
  .report-ready { min-height: 680px; padding: 38px 25px; }.markdown-body { width: calc(100% - 36px); padding: 34px 0 60px; font-size: 14px; }.markdown-body h1 { font-size: 29px; }.result-toolbar { align-items: flex-start; gap: 10px; flex-direction: column; }.result-toolbar .report-actions { width: 100%; }.result-toolbar .close-report { margin-left: auto; }
  footer { display: block; }footer p { margin-top: 8px; line-height: 1.5; }
}
