:root {
  --ink: #172b3f;
  --muted: #506274;
  --navy: #102f4f;
  --navy-dark: #071f35;
  --teal: #087f78;
  --gold: #d7aa42;
  --paper: #ffffff;
  --surface: #f4f7fa;
  --line: #cbd6e0;
  --focus: #f4c95d;
  --shell: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
a { color: #0e568e; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }

.skip-link { position: absolute; z-index: 20; top: -100px; left: 16px; padding: 10px 14px; color: white; background: var(--navy-dark); }
.skip-link:focus { top: 12px; }
.hero { padding: 72px 0 66px; background: linear-gradient(120deg, #f8fafc 0%, #edf4f8 100%); }
.hero-inner { max-width: 780px; }
.nowrap { white-space: nowrap; }
.site-logo { display: block; width: 132px; height: 132px; margin: 0 0 24px; object-fit: contain; }
h1 { margin-bottom: 22px; color: var(--navy-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 8vw, 5.3rem); letter-spacing: -0.045em; }
.lede { max-width: 700px; margin-bottom: 22px; color: var(--muted); font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 26px; color: var(--navy-dark); }
.price strong { font: 700 2rem/1 Georgia, "Times New Roman", serif; }
.button { display: inline-flex; min-height: 48px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 11px 19px; color: white; background: #0e568e; border: 2px solid #0e568e; border-radius: 4px; font-weight: 750; text-decoration: none; }
.button:hover { color: white; background: var(--navy-dark); border-color: var(--navy-dark); }

.content-shell { max-width: 820px; }
.explain { padding: 58px 0; }
.explain { border-top: 1px solid var(--line); }
.eyebrow { margin-bottom: 8px; color: var(--teal); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.explain h2 { margin-bottom: 18px; color: var(--navy-dark); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 2.8rem); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.workflow-grid article { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.workflow-grid span { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; margin-bottom: 14px; color: white; background: var(--teal); border-radius: 50%; font-weight: 800; }
.workflow-grid h3 { margin-bottom: 9px; color: var(--navy-dark); font-size: 1.06rem; }
.workflow-grid p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }
.control-note { margin-bottom: 0; padding: 17px 19px; background: #eef7f6; border-left: 4px solid var(--teal); }

.edgar-status { position: absolute; top: 16px; right: 18px; z-index: 35; display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 8px 12px; color: #102c4b; background: white; border: 1px solid #cbd6e0; border-radius: 999px; box-shadow: 0 7px 22px rgba(16,44,75,.2); cursor: pointer; font: 800 .82rem/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; white-space: nowrap; }
.edgar-status::before { content: ''; width: 12px; height: 12px; flex: 0 0 auto; background: #5e6a73; border-radius: 50%; box-shadow: 0 0 0 2px rgba(82,97,112,.15); }
.edgar-status[data-state="open"]::before { background: #1f9d55; box-shadow: 0 0 0 2px rgba(31,157,85,.16); }
.edgar-status[data-state="closed"]::before { background: #c62828; box-shadow: 0 0 0 2px rgba(198,40,40,.16); }
.edgar-status[disabled] { cursor: wait; opacity: .9; }
.status-label { display: inline; }

.chat-bubble { position: fixed; right: 24px; bottom: 22px; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 6px 13px 6px 6px; color: white; background: #173b63; border: 0; border-radius: 999px; box-shadow: 0 10px 28px rgba(16, 44, 75, 0.28); cursor: pointer; font: 750 .86rem/1.5 'Segoe UI', Arial, sans-serif; }
.chat-bubble img { width: 44px; height: 44px; }
.chat-bubble img, .assistant-heading img { border: 2px solid white; border-radius: 50%; object-fit: cover; object-position: center 28%; }
.assistant { position: fixed; right: 22px; bottom: 82px; z-index: 40; width: min(480px, calc(100vw - 44px)); height: min(700px, calc(100vh - 118px)); max-height: calc(100vh - 118px); box-sizing: border-box; overflow: auto; display: flex; flex-direction: column; padding: 18px; color: #27323a; background: #fff; border: 1px solid #dce3e7; border-radius: 14px; box-shadow: 0 18px 46px rgba(16, 44, 75, 0.25); font: 16px/1.5 'Segoe UI', Arial, sans-serif; }
.assistant-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.assistant-heading h2 { margin: 0; color: #102c4b; font: 700 1.25rem/1.15 Georgia, "Times New Roman", serif; }
.assistant-heading button { padding: 2px 8px; color: #173b63; background: transparent; border: 0; border-radius: 5px; cursor: pointer; font: 750 1.7rem/1.5 'Segoe UI', Arial, sans-serif; }
.assistant label { display: block; margin: 18px 0 6px; color: #3f4b53; font-size: 0.86rem; font-weight: 750; }
.assistant input, .assistant textarea { width: 100%; padding: 11px 12px; color: #27323a; background: white; border: 1px solid #aebbc2; border-radius: 5px; font: inherit; }
.assistant input:focus, .assistant textarea:focus { outline: 3px solid rgba(10,138,170,.26); outline-offset: 2px; border-color: #0a8aaa; }
.assistant button:disabled { cursor: not-allowed; opacity: 0.52; }
.assistant-button { padding: 11px 18px; color: white; background: #0a8aaa; border: 0; border-radius: 5px; cursor: pointer; font: inherit; font-weight: 750; }
.conversation { height: auto; min-height: 220px; flex: 1; overflow: auto; padding: 12px; background: #f5f8fa; border-radius: 6px; }
.message { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; }
.message.agent { background: #e7f3f6; }
.message.user { margin-left: 24px; background: #e8eef1; }
.chat-introduction p { margin: 0.6rem 0; }
.chat-introduction label { margin-top: 10px; }
.chat-introduction .assistant-button { width: 100%; margin-top: 14px; }
.result { min-height: 24px; margin-top: 14px; }
.error { color: #9b2828; font-weight: 700; }
.link-button { padding: 0; color: #173b63; background: transparent; border: 0; cursor: pointer; font: inherit; font-weight: 750; text-decoration: underline; }
#chat-live:not([hidden]) { display: flex; flex: 1; min-height: 0; flex-direction: column; }

@media (min-width: 1040px) {
  main, .cyber-footer, .edgar-status { transition: margin-right .18s ease, right .18s ease; }
  body.agent-open main, body.agent-open .cyber-footer { margin-right: 520px; }
  body.agent-open .edgar-status { right: 540px; }
}


.cyber-footer { padding: 28px 0 32px; color: #33495b; background: #e9f0f5; border-top: 1px solid var(--line); font-size: 0.82rem; }
.cyber-footer p { max-width: 850px; margin: 8px 0 0; }
.cyber-footer strong { color: var(--navy-dark); }
.disclosure-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.disclosure-actions a { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 14px; color: var(--navy); background: white; border: 1px solid #9fb1be; border-radius: 999px; font: inherit; font-weight: 750; text-decoration: none; }
dialog { width: min(calc(100% - 32px), 620px); color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; padding: 24px; box-shadow: 0 20px 54px rgba(16, 44, 75, 0.28); }
dialog::backdrop { background: rgba(16, 44, 75, 0.45); }
dialog h2 { margin-top: 0; color: var(--navy-dark); font-family: Georgia, "Times New Roman", serif; }
.dialog-close { padding: 9px 16px; color: white; background: var(--navy); border: 0; border-radius: 4px; cursor: pointer; font: inherit; font-weight: 750; }
@media (max-width: 780px) {
  body { font-size: 16px; }
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .hero { padding: 54px 0 50px; }
  .site-logo { width: 108px; height: 108px; margin-bottom: 20px; }
  h1 { font-size: clamp(2.35rem, 10.5vw, 3.1rem); }
  .button { width: 100%; }
  .explain { padding: 44px 0; }
  .workflow-grid { grid-template-columns: 1fr; }
  .cyber-footer { font-size: 0.9rem; line-height: 1.55; }
  .chat-bubble { right: 12px; bottom: 14px; }
  .chat-bubble span { font-size: 0.88rem; }
  .assistant { right: 12px; bottom: 82px; width: calc(100vw - 24px); height: calc(100dvh - 104px); max-height: calc(100dvh - 104px); }
  .edgar-status { top: 10px; right: 10px; min-height: 38px; padding: 7px 10px; font-size: .72rem; }
}
@media (max-width: 480px) { h1 { font-size: 8.6vw; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .button, .disclosure-actions, .chat-bubble, .assistant, .edgar-status { display: none; } .hero { padding-block: 26px; } }
