:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f9fbfd;
  --ink: #111827;
  --muted: #5c6676;
  --line: #d8e0ea;
  --line-2: #e7edf4;
  --blue: #2563eb;
  --teal: #0f766e;
  --green: #15803d;
  --amber: #b7791f;
  --red: #b42318;
  --violet: #6d28d9;
  --slate: #172033;
  --shadow: 0 18px 42px rgba(18, 28, 45, .08);
  --soft-shadow: 0 1px 2px rgba(18, 28, 45, .05);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, .045) 1px, transparent 1px),
    linear-gradient(180deg, #eef4fb 0, #f7f9fc 360px, #f7f9fc 100%);
  background-size: 48px 48px, 48px 48px, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
img, svg { max-width: 100%; height: auto; }
code, pre, textarea, input, select, button {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.wrap {
  width: calc(100% - 32px);
  max-width: 1180px;
  margin: 0 auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
}

.top-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--slate);
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--slate);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 900;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.nav a,
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--slate);
  padding: 0 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  white-space: nowrap;
}

.nav a[aria-current="page"],
.button.primary,
button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37,99,235,.18);
}

.button.subtle,
button.subtle {
  background: var(--surface-2);
  color: #263246;
}

button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

main { padding: 28px 0 54px; }
.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 38px 0 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 760px;
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--slate);
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--slate);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  margin: 16px 0 0;
  max-width: 730px;
  color: #354155;
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.proof {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.84);
  padding: 12px;
}

.proof strong {
  display: block;
  color: var(--slate);
  font-size: 13px;
}

.proof span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.workbench,
.panel,
.doc-panel {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}

.workbench {
  overflow: hidden;
}

.workbench-head,
.panel-head,
.doc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid var(--line-2);
  padding: 12px 14px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.status-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(183,121,31,.12);
}

.workbench-body {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

label,
.field span {
  color: #334155;
  font-size: 12px;
  font-weight: 820;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  padding: 10px 11px;
  font-size: 13px;
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.code-output,
pre {
  margin: 0;
  overflow: auto;
  border: 1px solid #d7e2f0;
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  padding: 13px;
  font-size: 12px;
  line-height: 1.55;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table th,
.mini-table td {
  border-bottom: 1px solid var(--line-2);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.mini-table th {
  color: #334155;
  background: #f8fbff;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 780;
  max-width: 100%;
}

.badge.green {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--green);
}

.badge.amber {
  border-color: #fde68a;
  background: #fffbeb;
  color: var(--amber);
}

.badge.red {
  border-color: #fecaca;
  background: #fff1f2;
  color: var(--red);
}

.section {
  padding: 44px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}

.section-copy p,
.doc-panel p {
  color: #3d485a;
}

.fact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  border-left: 4px solid var(--teal);
  background: rgba(255,255,255,.8);
  padding: 10px 12px;
}

.flow-asset {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}

.faq summary {
  cursor: pointer;
  color: var(--slate);
  font-weight: 850;
}

.faq p {
  margin: 10px 0 0;
  color: #3d485a;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.console-shell {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100svh - 92px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: visible;
}

.sidebar {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: #f8fbff;
  padding: 14px;
}

.sidebar strong {
  display: block;
  margin-bottom: 10px;
  color: var(--slate);
}

.tab-list {
  display: grid;
  gap: 6px;
}

.tab-button {
  justify-content: flex-start;
  width: 100%;
  box-shadow: none;
}

.tab-button[aria-selected="true"] {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.console-main {
  min-width: 0;
  max-width: 100%;
  padding: 16px;
}

.console-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.console-topline > * {
  min-width: 0;
}

.console-topline p {
  margin: 6px 0 0;
  max-width: 820px;
  color: var(--muted);
  overflow-wrap: break-word;
  word-break: normal;
}

.tab-panel {
  min-width: 0;
  display: none;
}

.tab-panel.active {
  display: grid;
  gap: 14px;
}

.panel {
  box-shadow: none;
  overflow: hidden;
  width: 100%;
}

.panel-body {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.panel-body > * {
  min-width: 0;
  max-width: 100%;
}

.three-cols {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.two-cols {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pricing-hero {
  padding-top: 56px;
}

.note {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d3557;
  padding: 14px 16px;
}

.pricing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.pricing-intro p {
  margin: 10px 0 0;
  color: var(--muted);
}

.billing-tabs {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-shadow: var(--soft-shadow);
}

.billing-tab {
  min-height: 32px;
  border: 0;
  box-shadow: none;
}

.billing-tab[aria-pressed="true"] {
  background: var(--slate);
  color: #fff;
}

.plan-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.plan-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  padding: 16px;
  box-shadow: var(--soft-shadow);
}

.plan-card.featured {
  border-color: #93c5fd;
  box-shadow: 0 14px 34px rgba(37,99,235,.12);
}

.plan-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.plan-price strong {
  color: var(--slate);
  font-size: 34px;
  line-height: 1;
}

.plan-price span,
.plan-note,
.plan-features {
  color: var(--muted);
}

.plan-note {
  margin: 0;
  font-size: 13px;
}

.trial-allowance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.trial-allowance div {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
}

.trial-allowance span,
.trial-allowance strong {
  display: block;
}

.trial-allowance span {
  color: var(--muted);
  font-size: 12px;
}

.trial-allowance strong {
  margin-top: 2px;
  color: var(--slate);
  font-size: 13px;
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.plan-features .unavailable {
  color: #7c2d12;
}

.plan-actions {
  display: grid;
}

.pricing-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: 10px;
  align-items: stretch;
}

.pricing-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pricing-ledger span {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
  color: var(--slate);
  font-weight: 850;
}

.pricing-ledger small {
  color: var(--muted);
  font-weight: 650;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.table-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.empty {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 13px;
  color: var(--muted);
  font-size: 13px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.result-box {
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  padding: 12px;
  color: #1d3557;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.risk-box {
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
  padding: 12px;
  color: #7c2d12;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.switch-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 12px;
}

.switch-line input {
  width: 20px;
  height: 20px;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.doc-panel {
  padding: 18px;
}

.doc-panel h2 { margin-bottom: 12px; }
.doc-panel h3 { margin-top: 18px; }
.doc-panel ul, .doc-panel ol { color: #3d485a; }

@media (max-width: 980px) {
  .hero,
  .section-grid,
  .doc-layout,
  .console-shell,
  .pricing-intro,
  .pricing-showcase {
    grid-template-columns: 1fr;
  }
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: auto;
    padding: 22px 0;
  }
  h1 { font-size: 40px; }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .tab-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .top-inner,
  .console-topline {
    align-items: flex-start;
    flex-direction: column;
  }
  .console-topline {
    grid-template-columns: 1fr;
  }
  .console-topline p {
    max-width: 100%;
  }
  .console-main {
    padding: 12px;
  }
  .top-inner { padding: 10px 0; }
  .nav { justify-content: flex-start; }
  h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  .field-grid,
  .proof-strip,
  .three-cols,
  .two-cols,
  .plan-grid,
  .pricing-ledger {
    grid-template-columns: 1fr;
  }
  .billing-tabs {
    width: 100%;
  }
  .billing-tab {
    flex: 1;
  }
  .tab-list {
    grid-template-columns: 1fr;
  }
  .mini-table { min-width: 640px; }
  .workbench-head,
  .panel-head,
  .doc-panel-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
