:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102f43;
  background: #e8f0f4;
  --navy: #042c43;
  --blue: #07516c;
  --green: #00aa6c;
  --mint: #dff8ee;
  --line: #cbdbe4;
  --muted: #5b7281;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 16% 0, #f9fcfd 0, #edf4f7 42%, #e5eef2 100%); }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

header {
  padding: 42px max(24px, calc((100vw - 1180px) / 2));
  background: radial-gradient(circle at 82% 10%, #0b7890 0, #07516c 25%, #031e30 78%);
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  border-bottom: 4px solid #00b873;
}
header h1 { font: 600 clamp(42px, 7vw, 76px)/.96 Georgia, serif; letter-spacing: -.045em; margin: 8px 0 14px; }
header p { max-width: 720px; margin: 0; color: #d2e9ef; font-size: 17px; line-height: 1.6; }
.powered-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: #b7dfe9; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.powered-brand img { width: 38px; height: 38px; object-fit: cover; border: 1px solid #2bbbd8; border-radius: 10px; }
.product-identity { display: flex; align-items: center; gap: 22px; }
.product-logo { width: 116px; height: 116px; flex: 0 0 auto; object-fit: cover; border-radius: 25px; background: #021822; box-shadow: 0 18px 40px #00131fb8, inset 0 0 0 1px #45d8ed66; }
.eyebrow { color: #66ead1; font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.local { border: 1px solid #4bbad0; border-radius: 999px; padding: 10px 14px; font-size: 12px; white-space: nowrap; background: #ffffff0d; }

main { max-width: 1180px; margin: 28px auto; padding: 0 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 18px 42px #17324b0d; }
.intro { margin-bottom: 22px; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 36px; border-left: 5px solid var(--green); }
.intro h2 { margin: 7px 0 0; font: 600 28px/1.15 Georgia, serif; }
.intro p { color: var(--muted); line-height: 1.65; }
.layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 22px; align-items: start; }
.panel h2 { margin: 4px 0 13px; font-size: 21px; }
.panel-title { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.panel-title > div { display: flex; align-items: center; gap: 10px; }
.step-number { display: inline-grid; place-items: center; width: 32px; height: 25px; border-radius: 7px; background: var(--mint); color: #007e51; font-size: 10px; font-weight: 900; letter-spacing: .07em; }
label { display: block; margin: 16px 0 7px; font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid #adc3d0; border-radius: 10px; padding: 12px; background: #fff; color: #102f43; }
input:focus, select:focus, textarea:focus { outline: 3px solid #00aa6c24; border-color: var(--green); }
textarea { min-height: 92px; }
button { width: 100%; border: 0; border-radius: 11px; background: linear-gradient(135deg, #00b873, #008957); color: white; font-weight: 850; padding: 14px; margin-top: 20px; cursor: pointer; }
button.secondary, button.quiet { margin-top: 10px; background: #e5f0f3; color: #17465c; }
button.quiet { background: #f0f3f5; color: #526872; }
button.compact { width: auto; padding: 8px 11px; margin: 0; font-size: 11px; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.saved-case-tools { padding: 3px 0 18px; border-bottom: 1px solid #e0e8ed; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.55; }
.document-intake { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid #e0e8ed; }
.document-intake h2, .case-questions h2 { display: inline; margin-left: 7px; }
.upload-target { margin-top: 15px; padding: 25px 18px; border: 1.5px dashed #72a7b8; border-radius: 15px; background: #f3f8fa; display: grid; place-items: center; text-align: center; cursor: pointer; }
.upload-target:hover { border-color: var(--green); background: #f0fbf7; }
.upload-target strong { margin-top: 7px; color: #0b4f64; }
.upload-target small { margin-top: 4px; color: var(--muted); font-weight: 500; }
.upload-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--navy); color: white; font-size: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.document-state { margin-top: 12px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--mint); border: 1px solid #aee5d0; border-radius: 12px; }
.document-state div { min-width: 0; display: flex; flex-direction: column; }
.document-state strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.document-state small { margin-top: 3px; color: #527168; }
.case-questions { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e0e8ed; }
.question[hidden] { display: none; }
.finding { padding: 17px; border: 1px solid #cfe0e8; border-left: 5px solid var(--green); border-radius: 12px; margin: 13px 0; background: #fbfdfd; }
.finding h3 { margin: 0 0 8px; }
.finding ol { padding-left: 21px; line-height: 1.55; }
.meta { font-size: 11px; color: #647985; }
.source { font-size: 12px; }
.source a { color: #006f78; }
.result-promise { padding: 15px; border-radius: 12px; background: #062f44; color: #e5f4f6; font-size: 13px; }
.result-promise ul { margin: 9px 0 0; padding-left: 20px; line-height: 1.6; }
pre { white-space: pre-wrap; color: #9b2235; font-family: inherit; }
footer { max-width: 1180px; margin: 28px auto; padding: 22px; color: #526978; font-size: 12px; line-height: 1.6; }

@media (max-width: 800px) {
  header { align-items: flex-start; flex-direction: column; padding: 30px 22px; }
  header h1 { font-size: 48px; }
  .product-identity { align-items: flex-start; gap: 14px; }
  .product-logo { width: 78px; height: 78px; border-radius: 18px; }
  .local { white-space: normal; }
  .intro, .layout { grid-template-columns: 1fr; }
  .intro { gap: 6px; }
  .button-row { grid-template-columns: 1fr; }
}
