.legal-page {
  max-width: 940px;
  padding-top: 58px;
}

.legal-page code {
  overflow-wrap: anywhere;
}

.legal-page > h1 {
  max-width: 850px;
  font-size: clamp(40px, 6vw, 64px);
}

.policy-meta {
  margin: 4px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.legal-document {
  padding: clamp(24px, 5vw, 48px);
}

.legal-document h2 {
  margin: 36px 0 10px;
  color: var(--ink-strong);
  font-size: 23px;
  line-height: 1.25;
}

.legal-document h2:first-of-type { margin-top: 30px; }

.legal-document h3 {
  margin: 24px 0 8px;
  color: var(--ink-strong);
  font-size: 17px;
}

.legal-document p,
.legal-document li {
  color: #475467;
  line-height: 1.72;
}

.legal-document li + li { margin-top: 8px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.platforms,
.cat-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}

.chip.soon {
  color: var(--muted);
}

.chip.soon .dot {
  background: #98a2b3;
}

.cat-summary a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 700;
}

.tool-cat {
  margin: 24px 0;
}

.tool-cat h3 {
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.tool-cat h3 .count {
  margin-left: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.platform-tools { scroll-margin-top: 24px; }
.tool-group {
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}
.tool-group summary { cursor: pointer; font-weight: 750; }
.tool-group summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.tool-group-count { color: var(--muted); font-weight: 500; }
.tool-group-note { color: var(--muted); }
.platform-tools .tool-cat h3 { font-size: 16px; line-height: 1.4; }
.platform-tools .tool-cat code,
.shared-tools code { overflow-wrap: anywhere; }
.platform-tools .tool-list { grid-template-columns: minmax(0, 1fr); }
.shared-tools dt { margin-top: 16px; font-weight: 650; }
.shared-tools dd { margin: 6px 0 0; }

.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 11px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool {
  display: grid;
  grid-template-columns: 54px auto;
  gap: 4px 10px;
  align-items: baseline;
  font-size: 14px;
}

.tool code,
.tool .tool-desc {
  grid-column: 2;
}

.tool code {
  font-weight: 700;
}

.tool .tool-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.badge {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge.read {
  background: #e7f3ff;
  color: #1849a9;
}

.badge.write {
  background: #fdeede;
  color: #9a5b00;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #eef4ff;
  color: #1849a9;
  font-size: 0.92em;
}

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

.site-footer {
  padding: 42px 0 34px;
  border-top: 1px solid var(--line);
}

.foot-cols {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 34px;
  margin-bottom: 30px;
}

.footer-intro {
  max-width: 300px;
}

.footer-intro p {
  margin: 13px 0 0;
  font-size: 14px;
}

.foot-cols h4 {
  margin: 0 0 12px;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.foot-cols a {
  display: block;
  margin: 8px 0;
  color: #526078;
  font-size: 14px;
  font-weight: 650;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #667085;
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-utility {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .marketing-hero,
  .safety-section {
    grid-template-columns: 1fr;
  }

  .marketing-hero {
    gap: 54px;
    padding-top: 50px;
  }

  .product-preview {
    width: min(620px, 100%);
    margin: 0 auto;
    transform: none;
  }

  .integration-grid,
  .install-grid,
  .roadmap-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

  .use-case-carousel-head,
  .detail-carousel-head,
  .use-case-slide {
    grid-template-columns: 1fr;
  }

  .use-case-tabs,
  .detail-tabs {
    justify-self: start;
  }

  .use-case-slide {
    gap: 40px;
    padding: 32px;
  }

  .use-case-copy {
    max-width: 680px;
  }

  .detail-slide {
    min-height: auto;
    padding: 32px;
  }

  .how-it-works {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 46px;
  }

  .roadmap-shell {
    padding: 46px;
  }

  .how-it-works .section-heading {
    position: static;
  }

  .foot-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 86px;
  }

  .site-header,
  .site-main,
  .site-footer {
    width: min(100% - 36px, 1180px);
  }

  .site-header {
    min-height: 62px;
    margin-top: 0;
    padding: 9px 0;
    border-radius: 0;
  }

  .brand {
    font-size: 18px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .hero-copy h1 {
    font-size: clamp(40px, 11vw, 50px);
    text-wrap: pretty;
  }

  .marketing-hero {
    min-height: auto;
    padding: 48px 0 64px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .assistant-preview {
    min-height: auto;
  }

  .assistant-chrome {
    padding: 0 16px;
  }

  .assistant-thread {
    gap: 18px;
    padding: 18px;
  }

  .assistant-message {
    max-width: 95%;
  }

  .assistant-composer {
    margin: 0 14px 14px;
  }

  .message {
    max-width: 94%;
  }

  .section {
    padding: 66px 0;
  }

  .use-case-tabs,
  .detail-tabs {
    width: 100%;
  }

  .use-case-tabs label,
  .detail-tabs label {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
  }

  .detail-tabs label {
    gap: 5px;
    font-size: 11px;
  }

  .detail-tabs label span {
    display: none;
  }

  .use-case-slide {
    gap: 32px;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .use-case-copy h3 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .use-case-copy > p:not(.eyebrow) {
    margin-top: 16px;
    font-size: 15px;
  }

  .detail-slide {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .detail-slide > .section-heading h3,
  .detail-slide .safety-section h3 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .detail-slide-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-slide-foot-end {
    align-items: flex-end;
  }

  .slide-navigation {
    margin-top: 22px;
  }

  .conversation-demo .assistant-thread {
    min-height: 300px;
  }

  .how-it-works,
  .roadmap-shell,
  .safety-section,
  .testimonial-section,
  .availability {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .testimonial-card {
    padding: 24px;
  }

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

  .install-card-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .step {
    grid-template-columns: 42px 1fr;
    padding: 18px 15px;
  }

  .step-number {
    width: 38px;
    height: 38px;
  }

  .availability {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .availability .button {
    width: 100%;
  }

  .tool-list {
    grid-template-columns: 1fr;
  }

  .foot-cols {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Provider logos share the same visual box; commerce has its own group. */
.integration-logo { width: 48px; height: 48px; object-fit: contain; padding: 4px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.integration-status { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: #edf2ff; color: #243d72; font-size: 12px; font-weight: 700; }
.integration-group-title { margin: 24px 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.commerce-integrations .integration-card { min-height: 130px; }

.hero-channel-strip { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.hero-channel-strip a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--navy); text-decoration: none; }
.hero-channel-strip img { object-fit: contain; }
.hero-channel-strip small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.hero-channel-strip .commerce-channel { border-left: 1px solid var(--line); padding-left: 18px; }

/* A keyboard-only shortcut shared by the public home and documentation pages. */
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 18px; transform: translateY(-160%); border-radius: 8px; background: #fff; color: #1849a9; box-shadow: 0 3px 16px #10182826; }
.skip-link:focus { transform: translateY(0); }

/* Public product refresh. These selectors do not alter provider-review content. */
.demo-label, .fine-print, .dashboard-preview figcaption { color: var(--muted); font-size: .875rem; line-height: 1.65; }
.demo-label { padding: 0 18px; }
.feature-grid, .workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card, .workflow-card { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.feature-card h3, .workflow-card h3 { margin: 12px 0; font-size: 1.25rem; }
.feature-card p, .workflow-card p { line-height: 1.7; color: var(--muted); }
.workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.workflow-card blockquote { margin: 16px 0; line-height: 1.7; }
.copy-prompt { border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 16px; color: var(--blue-dark); background: var(--surface-soft); font: inherit; font-weight: 700; cursor: pointer; }
.copy-prompt:focus-visible, .comparison-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.copy-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1000; width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 12px; background: var(--navy); color: white; box-shadow: var(--shadow); font-size: .875rem; line-height: 1.5; text-align: center; pointer-events: none; opacity: 0; }
.copy-toast[data-visible="true"] { opacity: 1; }
.dashboard-preview { margin: 28px 0 0; }
.dashboard-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.dashboard-preview figcaption { margin-top: 14px; text-align: center; }
.comparison-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: 16px; }
.installation-comparison { width: 100%; border-collapse: collapse; text-align: left; min-width: 600px; }
.installation-comparison caption { padding: 20px; text-align: left; font-weight: 800; font-size: 1.2rem; }
.installation-comparison th, .installation-comparison td { padding: 18px; vertical-align: top; border-top: 1px solid var(--line); line-height: 1.6; }
.installation-comparison thead { background: var(--surface-soft); }
.installation-comparison th { color: var(--ink-strong); }
.tool-requirement { display: block; margin-top: 8px; color: var(--blue-dark); line-height: 1.6; font-weight: 600; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .feature-grid, .workflow-grid { grid-template-columns: 1fr; }
  .feature-card, .workflow-card { padding: 22px; }
  .product-sections .detail-slide { padding: 22px; }
  .dashboard-preview img { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Prompt examples belong to the use-case section and expand on request. */
.workflow-examples { margin-top: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.workflow-examples > summary { padding: 24px; color: var(--navy); font-weight: 700; cursor: pointer; }
.workflow-examples > summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 20px; }
.workflow-content { padding: 0 24px 12px; }
.workflow-content > p { color: var(--muted); line-height: 1.7; }
