:root {
  --white: #ffffff;
  --ink: #0b0d10;
  --body: #5c6370;
  --ink-soft: #5c6370;
  --muted: #8b929e;
  --faint: #f7f8f9;
  --fog: #f7f8f9;
  --paper: #ffffff;
  --hairline: #e6e8eb;
  --line: #e6e8eb;
  --lift: #0d8f5f;
  --holdout: #c5cad3;
  --lift-tint: rgba(13, 143, 95, 0.07);
  --down: #c23b2e;
  --teal: #0d8f5f;
  --teal-deep: #0a6f4a;
  --teal-glow: rgba(13, 143, 95, 0.12);
  --ok: #0d8f5f;
  --signal: #0b0d10;
  --signal-deep: #222;
  --shadow: 0 12px 32px rgba(11, 13, 16, 0.06);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font);
  --font-body: var(--font);
  --radius: 14px;
  --max: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 640px;
}

/* ——— Site chrome ——— */
.site-nav,
.docs-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.docs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.wordmark,
.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.wordmark span,
.brand span.accent {
  color: var(--lift);
}

.brand-mark {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.login {
  font-size: 15px;
  color: var(--body);
  transition: color 0.15s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.login:hover {
  color: var(--ink);
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
  text-align: center;
}

.btn:hover {
  opacity: 0.78;
}

.btn-lg {
  font-size: 17px;
  padding: 15px 30px;
}

.btn-invert {
  background: #fff;
  color: var(--ink);
}

.btn-invert:hover {
  opacity: 0.85;
}

.btn-ghost,
.btn-outline {
  background: transparent;
  color: var(--body);
  padding: 0;
  border-radius: 0;
  font-weight: 500;
}

.btn-ghost:hover,
.btn-outline:hover {
  color: var(--ink);
  opacity: 1;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.btn-teal {
  background: var(--lift);
  color: #fff;
}

.btn-teal:hover {
  opacity: 0.85;
}

.btn-block {
  width: 100%;
}

/* ——— Landing hero ——— */
.hero {
  padding: 104px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(44px, 7.2vw, 76px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero > .wrap > p {
  max-width: 560px;
  margin: 26px auto 0;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--body);
  letter-spacing: -0.01em;
}

.hero-cta {
  margin-top: 36px;
}

.hero-sub {
  margin-top: 14px;
  font-size: 14px;
  color: var(--body);
}

/* ——— Lift chart ——— */
.chart {
  padding: 56px 0 0;
  text-align: left;
}

.chart-frame {
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 36px 32px 26px;
  background: var(--white);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chart-title {
  font-size: 15px;
  font-weight: 500;
}

.chart-lift {
  font-size: 15px;
  font-weight: 600;
  color: var(--lift);
  font-variant-numeric: tabular-nums;
}

.legend {
  display: flex;
  gap: 22px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.legend div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--body);
}

.swatch {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

svg text {
  font-family: var(--font);
}

.draw {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 1.6s ease-out 0.3s forwards;
}

.draw.slow {
  animation-delay: 0.5s;
}

.gap-fill {
  opacity: 0;
  animation: fade 0.8s ease-out 1.7s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .draw {
    animation: none;
    stroke-dashoffset: 0;
  }
  .gap-fill {
    animation: none;
    opacity: 1;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ——— Sections ——— */
.section {
  padding: 110px 0;
}

.section h2,
.engineering h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 22px;
}

.section-body {
  color: var(--body);
  font-size: 18px;
}

.section-body p + p {
  margin-top: 1em;
}

.section-body strong {
  color: var(--ink);
  font-weight: 500;
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--lift);
  margin: 0 0 12px;
}

/* ——— Loop ——— */
.loop {
  background: var(--faint);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 56px;
}

.step h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.step h3 em {
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  color: var(--lift);
  font-variant-numeric: tabular-nums;
}

.step p {
  font-size: 15.5px;
  color: var(--body);
}

.loop-note {
  margin-top: 52px;
  font-size: 15.5px;
  color: var(--body);
  max-width: 560px;
}

/* ——— Findings ——— */
.findings {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
}

.finding {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.finding .metric {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.metric.up {
  color: var(--lift);
}

.metric.down {
  color: var(--down);
}

.finding p {
  font-size: 16.5px;
  color: var(--body);
}

.finding p strong {
  color: var(--ink);
  font-weight: 500;
}

/* ——— Engineering ——— */
.engineering {
  padding: 0 0 110px;
}

.eng-card {
  border-top: 1px solid var(--hairline);
  padding-top: 44px;
}

.engineering h2 {
  font-size: clamp(24px, 3vw, 30px);
}

.engineering .section-body {
  font-size: 16.5px;
}

/* ——— Final CTA ——— */
.cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 130px 0;
}

.cta h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 18px;
  max-width: 480px;
  margin: 0 auto 40px;
}

.site-footer {
  padding: 40px 0;
  font-size: 13.5px;
  color: var(--body);
}

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ——— Auth / portal shells ——— */
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}

.auth-visual {
  position: relative;
  background: var(--faint);
  color: var(--ink);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-right: 1px solid var(--hairline);
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background:
    linear-gradient(to top, var(--lift-tint), transparent),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(13, 143, 95, 0.15), transparent 70%);
  pointer-events: none;
}

.auth-visual > * {
  position: relative;
  z-index: 1;
}

.auth-visual h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 2rem 0 0.75rem;
  max-width: 12ch;
}

.auth-visual p {
  color: var(--body);
  max-width: 32ch;
  margin: 0;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.auth-panel h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.auth-panel .lede {
  color: var(--body);
  margin: 0 0 1.75rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--lift-tint);
  border-color: var(--lift);
}

.form-error {
  color: var(--down);
  font-size: 0.9rem;
  margin: 0 0 1rem;
  min-height: 1.25rem;
}

.hint {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--body);
  background: var(--faint);
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

.hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.hint a {
  color: var(--lift);
  font-weight: 500;
}

/* ——— Portal ——— */
.app-shell {
  min-height: 100vh;
  background: var(--white);
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-top .user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--body);
}

.app-main {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) 24px;
}

.app-main h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.app-main .lede {
  color: var(--body);
  margin: 0 0 2rem;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.client-tile {
  display: block;
  text-align: left;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  color: inherit;
}

.client-tile:hover {
  border-color: var(--lift);
  box-shadow: var(--shadow);
}

.client-tile .name,
.client-card .name {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.client-tile .meta,
.client-card .meta {
  font-size: 0.88rem;
  color: var(--body);
  margin: 0 0 1rem;
}

.client-tile .pill,
.client-card .pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--lift-tint);
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}

.client-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  min-height: 100%;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.card-actions .btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.conn-chip {
  display: inline-block;
  margin: 0 0.4rem 0.75rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--body);
  background: var(--faint);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
}

.conn-chip.on {
  color: var(--teal-deep);
  background: var(--lift-tint);
}

/* ——— Connect ——— */
.connect-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: -0.75rem 0 1.5rem;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.connect-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 0.4rem;
}

.connect-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.connect-card .card-help {
  color: var(--body);
  font-size: 0.9rem;
  margin: 0 0 1.1rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.check-row input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--lift);
}

.file-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: -0.35rem 0 0.85rem;
  font-size: 0.85rem;
  color: var(--body);
}

.file-row input[type="file"] {
  font-size: 0.82rem;
}

.secret-note {
  font-size: 0.82rem;
  color: var(--teal-deep);
  background: var(--lift-tint);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  margin: -0.2rem 0 0.85rem;
}

.form-ok {
  color: var(--teal-deep);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 1rem;
  min-height: 1.25rem;
}

.snippet-block {
  background: var(--ink);
  color: #e7ecf3;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0 0 0.75rem;
  white-space: pre-wrap;
}

.connect-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.back-link {
  color: var(--lift);
  font-weight: 500;
  font-size: 0.9rem;
}

/* ——— Dashboard (light, lift-aligned) ——— */
.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
}

.dash-side {
  border-right: 1px solid var(--hairline);
  padding: 1.25rem 1rem;
  background: var(--faint);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dash-side .brand,
.dash-side .wordmark {
  color: var(--ink);
  padding: 0 0.35rem;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dash-nav a,
.dash-nav button {
  text-align: left;
  background: transparent;
  border: none;
  color: var(--body);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
}

.dash-nav a:hover,
.dash-nav button:hover,
.dash-nav a.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--hairline);
}

.dash-side .side-foot {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--body);
  padding: 0 0.35rem;
}

.dash-body {
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  overflow-x: auto;
}

.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-head h1 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  font-size: 1.55rem;
}

.dash-head .sub {
  color: var(--body);
  margin: 0;
  font-size: 0.92rem;
}

.row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}

.dash-body input,
.dash-body select,
.dash-body button {
  background: var(--white);
  border: 1px solid var(--hairline);
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.dash-body button {
  background: var(--ink);
  border-color: transparent;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.dash-body button:hover {
  opacity: 0.78;
}

.dash-body button.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--hairline);
}

.dash-body h2 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
}

.dash-body h3 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--faint);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.stat .label {
  color: var(--body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat .value {
  font-size: 1.6rem;
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem;
  overflow: auto;
}

.dash-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.dash-body th,
.dash-body td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--hairline);
}

.dash-body th {
  color: var(--body);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-body td.num,
.dash-body th.num {
  text-align: right;
}

.ok {
  color: var(--lift);
}

.muted {
  color: var(--body);
}

.empty {
  color: var(--body);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.dash-body pre {
  background: var(--faint);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem;
  overflow: auto;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
}

.winner {
  color: var(--lift);
  font-weight: 600;
}

/* ——— Marketing docs ——— */
.docs-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 24px 4rem;
}

.docs-shell > .lede {
  color: var(--body);
  font-size: 1.1rem;
  max-width: 52ch;
  margin: 0 0 2.5rem;
}

.docs-shell h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.docs-list li {
  border-bottom: 1px solid var(--hairline);
}

.docs-list a {
  display: block;
  padding: 1.35rem 0;
  transition: color 0.15s ease;
}

.docs-list a:hover strong {
  color: var(--lift);
}

.docs-list strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.docs-list span {
  color: var(--body);
  font-size: 0.98rem;
  max-width: 52ch;
  display: block;
}

.docs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) 24px 4rem;
}

.docs-toc {
  position: sticky;
  top: 5rem;
  align-self: start;
  font-size: 0.88rem;
}

.docs-toc p {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lift);
  margin: 0 0 0.75rem;
}

.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-toc li {
  margin-bottom: 0.45rem;
}

.docs-toc a {
  color: var(--body);
}

.docs-toc a:hover,
.docs-toc a.active {
  color: var(--ink);
}

.docs-prose {
  max-width: 68ch;
}

.docs-prose > .eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lift);
  margin: 0 0 0.6rem;
}

.docs-prose h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.docs-prose .lede {
  color: var(--body);
  font-size: 1.08rem;
  margin: 0 0 2rem;
}

.docs-prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--hairline);
}

.docs-prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 1.75rem 0 0.6rem;
}

.docs-prose p,
.docs-prose li {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}

.docs-prose p {
  margin: 0 0 1rem;
}

.docs-prose ul,
.docs-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.docs-prose li {
  margin-bottom: 0.4rem;
}

.docs-prose strong {
  color: var(--ink);
  font-weight: 500;
}

.docs-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

.docs-prose pre {
  background: var(--ink);
  color: #e7ecf3;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.docs-prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.docs-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0 0 1.5rem;
  font-variant-numeric: tabular-nums;
}

.docs-prose th,
.docs-prose td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.docs-prose th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--body);
}

.docs-prose a {
  color: var(--lift);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-prose hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 2rem 0;
}

.docs-foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.92rem;
  color: var(--body);
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 200px;
  }

  .dash-layout {
    grid-template-columns: 1fr;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }

  .dash-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dash-side .side-foot {
    margin-top: 0;
    width: 100%;
  }
}

@media (max-width: 800px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    position: static;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hairline);
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 72px 0 24px;
  }

  .section {
    padding: 80px 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .finding {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .chart-frame {
    padding: 24px 16px 18px;
    border-radius: 14px;
  }

  .cta {
    padding: 90px 0;
  }
}
