:root {
  color-scheme: light;
  --ink: #090909;
  --muted: #5f5f5f;
  --line: #e7e7e7;
  --soft: #f6f6f4;
  --panel: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.nav-actions,
.hero-actions,
.metric-strip {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  justify-self: start;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  flex: 0 0 auto;
  border-radius: 13px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.nav-links {
  justify-self: center;
  gap: 28px;
  color: #2e2e2e;
  font-size: 14px;
}

.nav-links a,
.ghost-link {
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.nav-links a:hover,
.ghost-link:hover {
  color: #000;
}

.nav-actions {
  justify-self: end;
  gap: 14px;
  font-size: 14px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #111;
  padding: 0 18px;
  font-weight: 680;
  font-size: 14px;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  background: #0b0b0b;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.button-light {
  background: #fff;
  color: #0b0b0b;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: 54px;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 82px 0 64px;
  align-items: center;
}

.hero-copy {
  max-width: 570px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: #222;
  font-size: 13px;
  font-weight: 650;
  background: #fff;
}

h1 {
  margin: 24px 0 18px;
  max-width: 780px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.56;
}

.metric-strip {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.metric-strip span {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: #242424;
  font-size: 13px;
  font-weight: 650;
  background: var(--soft);
}

.hero-actions {
  gap: 12px;
  margin-top: 34px;
}

.product-stage {
  min-width: 0;
  perspective: 1600px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  min-height: 548px;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotateX(2deg) rotateY(-7deg);
  transform-origin: center;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  background: #f5f5f3;
}

.sidebar-title {
  margin-bottom: 18px;
  font-weight: 760;
  font-size: 14px;
}

.sidebar span {
  border-radius: 7px;
  padding: 10px 10px;
  color: #686868;
  font-size: 13px;
  font-weight: 620;
}

.sidebar span.active {
  background: #111;
  color: #fff;
}

.dashboard-main {
  padding: 22px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-topbar p,
.dashboard-topbar h2 {
  margin: 0;
}

.dashboard-topbar p,
.chart-head,
.competitor-list span,
.score-grid span,
.score-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.dashboard-topbar h2 {
  margin-top: 5px;
  font-size: 22px;
  letter-spacing: 0;
}

.dashboard-topbar button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.score-grid article,
.chart-card,
.competitor-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.score-grid article {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.score-grid strong {
  font-size: 34px;
  line-height: 1;
}

.score-grid small {
  color: #121212;
}

.chart-card {
  margin-top: 12px;
  padding: 18px 18px 14px;
}

.chart-head,
.chart-labels,
.competitor-list > div,
.competitor-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 12px;
  height: 184px;
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
}

.chart-bars i {
  display: block;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #0b0b0b, #4a4a4a);
}

.chart-labels {
  margin-top: 10px;
  color: #767676;
  font-size: 12px;
}

.competitor-list {
  margin-top: 12px;
  padding: 16px;
}

.competitor-list > div {
  align-items: end;
  margin-bottom: 12px;
}

.competitor-list ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.competitor-list li {
  align-items: center;
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--soft);
}

.competitor-list li:nth-child(2) {
  background: #111;
  color: #fff;
}

.competitor-list li:nth-child(2) span {
  color: #d9d9d9;
}

.insight-section,
.workflow-section,
.engine-section,
.faq-section {
  width: 100%;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 92px 0;
}

.insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.64fr);
  gap: 14px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.answer-card {
  min-height: 430px;
  border: 1px solid #ddddda;
  border-radius: 8px;
  padding: 28px;
  background: #0a0a0a;
  color: #fff;
}

.answer-topline,
.reporting-panel-head,
.prompt-row,
.cta-section,
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.answer-topline span,
.answer-topline strong {
  color: #d7d7d7;
  font-size: 13px;
  font-weight: 760;
}

.answer-card h3 {
  max-width: 700px;
  margin: 76px 0 22px;
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
}

.answer-card p {
  max-width: 660px;
  margin: 0;
  color: #d8d8d8;
  font-size: 18px;
  line-height: 1.58;
}

.answer-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.answer-sources span,
.reporting-tools span,
.engine-list span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 720;
}

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

.insight-metrics article {
  display: flex;
  min-height: 208px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #ddddda;
  border-radius: 8px;
  padding: 22px;
  background: #f7f7f5;
}

.insight-metrics span,
.insight-metrics small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.insight-metrics strong {
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.workflow-grid article {
  min-height: 250px;
  border: 1px solid #ddddda;
  border-radius: 8px;
  padding: 24px;
  background: #f7f7f5;
}

.workflow-grid article:nth-child(2n) {
  background: #fff;
}

.workflow-grid span {
  color: #717171;
  font-size: 13px;
  font-weight: 820;
}

.workflow-grid h3 {
  margin: 52px 0 12px;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0;
}

.workflow-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.reporting-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(420px, 0.76fr);
  gap: 48px;
  width: 100%;
  border-top: 1px solid #202020;
  background: #090909;
  color: #fff;
  padding: 96px max(40px, calc((100vw - 1180px) / 2));
}

.reporting-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.reporting-copy p:not(.section-kicker) {
  max-width: 660px;
  margin: 20px 0 0;
  color: #d5d5d5;
  font-size: 18px;
  line-height: 1.58;
}

.reporting-actions {
  margin-top: 34px;
}

.reporting-panel {
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.reporting-panel-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.reporting-panel-head span,
.reporting-rows span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.reporting-panel-head strong {
  border-radius: 999px;
  padding: 7px 10px;
  background: #0a0a0a;
  color: #fff;
  font-size: 12px;
}

.reporting-rows {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.reporting-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 8px;
  padding: 14px;
  background: #f7f7f5;
}

.reporting-rows strong {
  text-align: right;
  font-size: 14px;
}

.reporting-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reporting-tools span {
  border-color: #dededb;
  background: #0a0a0a;
}

.engine-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(420px, 0.9fr);
  gap: 14px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.engine-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  border: 1px solid #ddddda;
  border-radius: 8px;
  padding: 24px;
  background: #0a0a0a;
}

.prompt-table {
  border: 1px solid #ddddda;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.prompt-row {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 1fr;
  border-top: 1px solid var(--line);
  padding: 18px 20px;
}

.prompt-row:first-child {
  border-top: 0;
}

.prompt-row-head {
  background: #f7f7f5;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.prompt-row strong {
  font-size: 20px;
}

.pricing-section {
  width: 100%;
  border-top: 1px solid var(--line);
  background: #f7f7f5;
  padding: 92px 0;
}

.section-heading,
.pricing-grid,
.pricing-note {
  width: min(1180px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.64fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 12px;
  color: #5f5f5f;
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading > p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

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

.pricing-card {
  position: relative;
  display: flex;
  min-height: 550px;
  flex-direction: column;
  border: 1px solid #ddddda;
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  color: #0b0b0b;
}

.pricing-card h3,
.pricing-card p,
.pricing-card ul {
  margin: 0;
}

.plan-top {
  min-height: 128px;
}

.pricing-card h3 {
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
}

.pricing-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 12px 0 22px;
  font-size: 58px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
}

.price span {
  font-size: 25px;
  transform: translateY(-17px);
}

.price small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.custom-price {
  display: grid;
  gap: 8px;
  align-items: start;
  font-size: 42px;
}

.custom-price small {
  margin-left: 0;
}

.pricing-card .button {
  width: 100%;
  margin-bottom: 22px;
}

.button-invert {
  border-color: #fff;
  background: #fff;
  color: #0b0b0b;
}

.pricing-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  color: #1b1b1b;
  font-size: 14px;
  line-height: 1.35;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 19px;
}

.pricing-card li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #111;
  content: "";
}

.featured-plan {
  border-color: #111;
  background: #090909;
  color: #fff;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.22);
}

.featured-plan p,
.featured-plan .price small {
  color: #cfcfcf;
}

.featured-plan ul {
  color: #fff;
}

.featured-plan li::before {
  background: #fff;
}

.plan-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 760;
}

.enterprise-plan {
  background: #fbfbfa;
}

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  border: 1px solid #ddddda;
  border-radius: 8px;
  padding: 18px 20px;
  background: #fff;
  color: #202020;
  font-size: 14px;
}

.pricing-note strong {
  font-size: 15px;
}

.pricing-note span {
  color: var(--muted);
}

.resources-section {
  width: 100%;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 92px 0;
}

.compact-heading {
  align-items: start;
  margin-bottom: 28px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.resource-grid article {
  min-height: 230px;
  border: 1px solid #ddddda;
  border-radius: 8px;
  padding: 24px;
  background: #f7f7f5;
}

.resource-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a0a0a;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
}

.resource-grid h3 {
  margin: 28px 0 12px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}

.resource-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.faq-list {
  display: grid;
  gap: 10px;
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid #ddddda;
  border-radius: 8px;
  background: #fff;
}

.faq-list summary {
  min-height: 68px;
  padding: 0 22px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 780;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.cta-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-radius: 8px;
  padding: 42px;
  background: #0a0a0a;
  color: #fff;
}

.cta-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-outline-dark {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.company-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.company-section h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.company-section p:not(.section-kicker) {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0a0a;
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}

.footer-brand {
  justify-self: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  color: #d7d7d7;
  font-size: 14px;
  font-weight: 620;
}

.footer-links a:hover {
  color: #fff;
}

.site-footer p {
  justify-self: end;
  margin: 0;
  color: #b8b8b8;
  font-size: 13px;
}

.legal-page {
  background: #f7f7f5;
}

.legal-page .site-header {
  background: rgba(247, 247, 245, 0.92);
}

.legal-hero {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 48px;
}

.legal-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.92;
}

.legal-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.legal-hero span {
  display: inline-flex;
  margin-top: 28px;
  border: 1px solid #dcdcd8;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #242424;
  font-size: 13px;
  font-weight: 720;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 40px;
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 92px;
}

.legal-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  display: grid;
  gap: 6px;
  border: 1px solid #dededb;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.legal-toc a {
  border-radius: 7px;
  padding: 10px 11px;
  color: #555;
  font-size: 13px;
  font-weight: 680;
}

.legal-toc a:hover {
  background: #111;
  color: #fff;
}

.legal-content {
  border: 1px solid #dededb;
  border-radius: 8px;
  padding: 42px;
  background: #fff;
}

.legal-content section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-content h2,
.legal-content h3,
.legal-content p,
.legal-content ul {
  margin: 0;
}

.legal-content h2 {
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: 0;
}

.legal-content h3 {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.3;
}

.legal-content p,
.legal-content li {
  color: #4f4f4f;
  font-size: 15px;
  line-height: 1.72;
}

.legal-content p {
  margin-top: 14px;
}

.legal-content ul {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-left: 20px;
}

.legal-content a {
  color: #000;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: auto;
    padding-top: 62px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .dashboard-shell {
    transform: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-layout,
  .reporting-section,
  .engine-layout {
    grid-template-columns: 1fr;
  }

  .reporting-section {
    padding-right: max(20px, calc((100vw - 760px) / 2));
    padding-left: max(20px, calc((100vw - 760px) / 2));
  }

  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .company-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .site-footer p {
    justify-self: center;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .legal-toc {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .section-heading,
  .pricing-grid,
  .pricing-note,
  .insight-layout,
  .workflow-grid,
  .engine-layout,
  .resource-grid,
  .faq-list,
  .cta-section,
  .company-section,
  .footer-inner,
  .legal-hero,
  .legal-layout {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    gap: 14px;
  }

  .ghost-link {
    display: none;
  }

  .brand span {
    font-size: 15px;
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-title,
  .sidebar span:nth-of-type(n + 4) {
    display: none;
  }

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

  .dashboard-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-section {
    padding: 66px 0;
  }

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

  .pricing-card {
    min-height: auto;
  }

  .plan-top {
    min-height: auto;
  }

  .pricing-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .insight-section,
  .workflow-section,
  .engine-section,
  .faq-section {
    padding: 66px 0;
  }

  .answer-card {
    min-height: auto;
    padding: 24px;
  }

  .answer-card h3 {
    margin-top: 54px;
    font-size: 38px;
  }

  .answer-card p,
  .reporting-copy p:not(.section-kicker) {
    font-size: 16px;
  }

  .insight-metrics,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .insight-metrics article,
  .workflow-grid article {
    min-height: auto;
  }

  .workflow-grid h3 {
    margin-top: 34px;
  }

  .reporting-section {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .reporting-rows div,
  .prompt-row,
  .cta-section {
    align-items: flex-start;
  }

  .prompt-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cta-section {
    flex-direction: column;
    padding: 28px;
  }

  .cta-actions,
  .cta-actions .button {
    width: 100%;
  }

  .resources-section {
    padding: 66px 0;
  }

  .resource-grid article {
    min-height: auto;
  }

  .company-section {
    padding: 66px 0;
  }

  .company-section .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-brand,
  .site-footer p {
    justify-self: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-hero {
    padding: 56px 0 32px;
  }

  .legal-hero h1 {
    font-size: 52px;
  }

  .legal-hero p {
    font-size: 17px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 26px;
  }
}
