:root {
  color-scheme: light;
  --ink: #17191c;
  --muted: #62676f;
  --line: #dfe2e6;
  --surface: #ffffff;
  --canvas: #f4f5f6;
  --sidebar: #202327;
  --sidebar-muted: #abb0b7;
  --accent: #d92d50;
  --accent-hover: #b92142;
  --teal: #137c75;
  --warning: #a55a08;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
}

button, input { font: inherit; }

a { color: inherit; }

.topbar {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111315;
  color: #fff;
  border-bottom: 1px solid #33363a;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #5a5f66;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
}

.topnav { display: flex; gap: 22px; }
.topnav a { color: #c8ccd1; font-size: 13px; text-decoration: none; }
.topnav a:hover { color: #fff; }

.workspace {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background: var(--sidebar);
}

.section-label,
.eyebrow {
  margin: 0 0 9px;
  color: var(--sidebar-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-item {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.nav-item.active { background: #34383d; }
.nav-item svg { width: 17px; height: 17px; }

.connection-panel {
  padding-top: 18px;
  border-top: 1px solid #3c4046;
}

.connection-title { display: flex; align-items: center; gap: 9px; }
.connection-title h2 { margin: 0; font-size: 14px; }
.connection-panel p { margin: 9px 0 16px; color: #b9bec5; font-size: 12px; line-height: 1.5; }

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #8e949c;
}

.connected .status-dot,
.status-dot.connected { background: #30b39f; }

.content {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 56px;
}

.content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow { color: var(--teal); }
.sandbox-mode-banner {
  width: fit-content;
  margin: 0 0 8px;
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7ad62;
  border-radius: 4px;
  background: #fff5df;
  color: var(--warning);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: 0; }
.lede { max-width: 650px; margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.connection-state {
  min-width: 128px;
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.steps {
  margin: 34px 0 0;
  padding: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.steps li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.steps span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #b8bdc4; border-radius: 50%; font-size: 11px; }
.steps .current { color: var(--ink); font-weight: 700; }
.steps .current span { border-color: var(--accent); background: var(--accent); color: #fff; }

.upload-form { margin-top: 26px; }
.field-label { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 700; }

.dropzone {
  min-height: 188px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #aeb4bc;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.dropzone:hover { border-color: var(--teal); }
.dropzone:focus-within {
  border-color: var(--teal);
  outline: 3px solid rgba(19, 124, 117, .28);
  outline-offset: 3px;
}
.dropzone svg { width: 31px; height: 31px; color: var(--teal); }
.dropzone strong { font-size: 15px; }
.dropzone span { color: var(--muted); font-size: 12px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.text-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #bfc4ca;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.text-input:focus { outline: 2px solid rgba(19, 124, 117, .22); border-color: var(--teal); }
.text-input:disabled, .dropzone:has(input:disabled) { opacity: .62; cursor: not-allowed; }

.form-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.privacy-note { margin: 0; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.privacy-note svg { width: 15px; height: 15px; }

.button {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.button svg { width: 16px; height: 16px; }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover:not(:disabled) { background: var(--accent-hover); }
.button.secondary { border-color: #596069; background: transparent; color: #fff; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button.full { width: 100%; }

.status-message {
  min-height: 42px;
  margin-top: 20px;
  padding: 11px 13px;
  border-left: 3px solid #9ba1a8;
  background: #eaeced;
  color: #4f555c;
  font-size: 13px;
}

.status-message.success { border-color: var(--teal); background: #e4f2f0; color: #0f5d58; }
.status-message.error { border-color: #b33535; background: #f8e8e8; color: #852626; }

.review-note {
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  gap: 13px;
  border-top: 1px solid var(--line);
}

.review-note > svg { width: 22px; height: 22px; color: var(--teal); }
.review-note h2 { margin: 0; font-size: 14px; }
.review-note p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.footer {
  min-height: 48px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.footer a { color: #444a51; }
.hidden { display: none !important; }

.public-site { background: var(--surface); }

.public-header {
  position: relative;
  z-index: 1;
}

.public-main { min-height: calc(100vh - 112px); }

.public-container {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
}

.intro-band {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  align-items: end;
  gap: 64px;
}

.intro-copy h1 {
  max-width: 670px;
  font-size: 42px;
  line-height: 1.12;
}

.intro-lede {
  max-width: 690px;
  margin: 18px 0 26px;
  color: #41464d;
  font-size: 17px;
  line-height: 1.65;
}

.product-facts {
  margin: 0;
  border-top: 1px solid #cdd1d5;
}

.product-facts div {
  padding: 14px 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  border-bottom: 1px solid #cdd1d5;
}

.product-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.public-section { padding: 62px 0; }

.section-heading { margin-bottom: 28px; }
.section-heading h2,
.trust-layout h2,
.support-layout h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
}

.workflow-rows { border-top: 1px solid var(--line); }

.workflow-row {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.workflow-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.workflow-row h3 {
  margin: 0;
  font-size: 16px;
}

.workflow-row p,
.workflow-outcome,
.trust-copy p,
.support-layout p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.workflow-row p { margin: 5px 0 0; }

.workflow-outcome {
  margin: 20px 0 0;
  padding-left: 56px;
  color: var(--teal);
  font-weight: 700;
}

.trust-band {
  padding: 52px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f1f6f5;
}

.trust-layout,
.support-layout {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
  gap: 64px;
}

.trust-copy p { margin: 0; color: #3f4849; }
.trust-copy p + p { margin-top: 12px; }
.trust-copy a { color: #0f5d58; font-weight: 700; }

.support-band { padding: 52px 0; }
.support-layout { align-items: center; }
.support-layout p { margin: 9px 0 0; }

.support-contact {
  padding: 18px 0 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-left: 3px solid var(--accent);
}

.support-contact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.support-contact a {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.callback-page {
  min-height: calc(100vh - 112px);
  padding: 48px 20px;
  display: grid;
  place-items: center;
}

.callback-status {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.callback-status h1 { font-size: 22px; }
.callback-status p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

.legal-shell { background: var(--surface); }

.legal-main {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 64px;
  line-height: 1.65;
}

.legal-main h1 { margin-bottom: 4px; }
.legal-main h2 { margin: 30px 0 8px; font-size: 17px; }
.legal-main p, .legal-main li { color: #454a51; font-size: 14px; }
.legal-main ul { padding-left: 22px; }
.legal-main li + li { margin-top: 8px; }
.legal-updated { margin-top: 5px; color: var(--muted) !important; font-size: 12px !important; }

@media (max-width: 760px) {
  .topbar { height: auto; min-height: 60px; padding: 12px 16px; align-items: flex-start; }
  .topnav { max-width: 150px; justify-content: flex-end; flex-wrap: wrap; gap: 5px 14px; text-align: right; }
  .workspace { display: block; }
  .sidebar { padding: 14px 16px; }
  .sidebar > div { display: none; }
  .connection-panel { padding-top: 0; border-top: 0; }
  .connection-title, .connection-panel p { display: none; }
  .content { width: calc(100% - 32px); padding: 28px 0 42px; }
  .content-header { display: block; }
  .sandbox-mode-banner { margin-bottom: 7px; }
  h1 { font-size: 24px; }
  .connection-state { margin-top: 16px; }
  .steps { gap: 6px; }
  .steps li { flex-direction: column; align-items: flex-start; font-size: 11px; }
  .dropzone { min-height: 158px; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .footer { padding: 12px 16px; gap: 8px 14px; }
  .public-header { align-items: center; }
  .public-nav { max-width: 190px; }
  .public-nav a:first-child { display: none; }
  .public-container { width: calc(100% - 32px); }
  .intro-band { padding: 42px 0; }
  .intro-layout,
  .trust-layout,
  .support-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .intro-copy h1 { font-size: 32px; }
  .intro-lede { font-size: 15px; }
  .product-facts div { grid-template-columns: 106px 1fr; }
  .public-section { padding: 44px 0; }
  .workflow-outcome { padding-left: 0; }
  .trust-band,
  .support-band { padding: 42px 0; }
  .support-contact { padding: 15px 0 15px 18px; }
}
