.seo-page {
  background: #f7f7f5;
}
.seo-page .site-header {
  min-height: 84px;
}
.seo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}
.seo-nav a {
  font-size: 14px;
  text-decoration: none;
}
.seo-nav a:hover,
.seo-footer a:hover,
.seo-links a:hover {
  text-decoration: underline;
}
.seo-hero {
  padding: 76px 0 70px;
  border-top: 1px solid var(--line);
}
.seo-hero-inner {
  max-width: 850px;
}
.seo-page h1 {
  max-width: 850px;
  margin-top: 15px;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.seo-lede {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}
.seo-hero .button {
  margin-top: 30px;
}
.seo-note {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.seo-section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.seo-section h2 {
  max-width: 800px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.seo-section > .wrap > p {
  max-width: 800px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.seo-card {
  min-height: 190px;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.seo-card h3 {
  font-size: 18px;
  line-height: 1.35;
}
.seo-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.seo-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.seo-steps li {
  counter-increment: steps;
  padding-top: 18px;
  border-top: 2px solid #20201f;
  line-height: 1.65;
}
.seo-steps li::before {
  content: counter(steps, decimal-leading-zero);
  display: block;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 13px;
}
.seo-steps strong {
  display: block;
  margin-bottom: 5px;
}
.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}
.seo-links a {
  display: inline-block;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
}
.seo-faq details {
  max-width: 850px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.seo-faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
}
.seo-faq details p {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.seo-bottom {
  padding: 66px 0;
  background: #eeeee9;
}
.seo-bottom p {
  max-width: 640px;
  margin-top: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.seo-bottom .button {
  margin-top: 25px;
}
.seo-footer {
  padding: 28px 0 35px;
  border-top: 1px solid var(--line);
}
.seo-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 25px;
  align-items: center;
  justify-content: space-between;
}
.seo-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.seo-footer a {
  font-size: 13px;
  text-decoration: none;
}
.seo-nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.seo-table-scroll {
  margin-top: 28px;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.seo-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}
.seo-table-scroll caption {
  padding: 18px;
  text-align: left;
  font-weight: 600;
  background: var(--surface);
}
.seo-table-scroll th,
.seo-table-scroll td {
  padding: 16px 18px;
  vertical-align: top;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.seo-table-scroll th {
  min-width: 150px;
}
.seo-table-scroll td {
  overflow-wrap: anywhere;
}
.seo-table-scroll:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}
.seo-example {
  max-width: 800px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
}
.seo-example-label {
  color: var(--muted);
  font-size: 13px;
}
.seo-example blockquote {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.65;
}
.seo-example .button {
  max-width: 100%;
  margin-top: 20px;
  gap: 12px;
  line-height: 1.5;
  text-align: center;
}
.seo-price {
  font-size: 28px !important;
  font-weight: 600;
  color: var(--text) !important;
}
.seo-price span {
  font-size: 14px;
  font-weight: 400;
}
.seo-card > a {
  display: inline-block;
  margin-top: 18px;
  text-underline-offset: 3px;
}

/* Product explanations share the public site's existing palette. The controls
   change only the diagram, never the user's native chat or selected model. */
.seo-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  max-width: 1160px;
  align-items: center;
}
.seo-hero-layout h1 {
  font-size: clamp(36px, 4.1vw, 54px);
  text-wrap: balance;
}
.seo-hero-copy {
  min-width: 0;
}
.seo-hero-layout .seo-lede {
  font-size: clamp(17px, 1.6vw, 20px);
}
.seo-hero-layout .seo-note {
  max-width: 560px;
}
.product-preview {
  margin: 0;
  min-width: 0;
  width: 100%;
}
.preview-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 40px -25px var(--muted);
}
.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.preview-brand {
  font-weight: 650;
}
.preview-model,
.preview-filetype {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
}
.preview-chat {
  padding: 24px 22px 20px;
}
.preview-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.preview-message {
  max-width: 95%;
  margin: 0 0 22px auto;
  padding: 16px;
  background: var(--soft);
  border-radius: 14px 14px 4px 14px;
  font-size: 16px;
  line-height: 1.5;
}
.preview-outline {
  padding: 0 3px;
}
.preview-outline p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
.preview-composer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}
.preview-composer > span:last-child {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
}
.preview-models {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  border-top: 1px solid var(--line);
  padding: 16px 20px;
}
.preview-model-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.preview-model-tag img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.model-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.model-variants li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--surface);
}
.seo-table-scroll .model-variants {
  margin: 0;
}
.preview-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.preview-control[hidden] {
  display: none;
}
.preview-control:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
  border-radius: 5px;
}
.preview-control > span {
  font-size: 18px;
}
.preview-status {
  min-height: 36px;
  margin: 11px 0 0;
  font-size: 12px;
  line-height: 1.5;
}
.product-preview figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.preview-document {
  padding-bottom: 18px;
}
.preview-paper {
  margin: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow:
    0 7px 0 -3px var(--soft),
    0 8px 0 -3px var(--line);
}
.preview-paper .preview-doc-title {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.preview-paper p {
  margin: 8px 0;
  font-size: 13px;
  line-height: 1.6;
}
[data-source-fragment] {
  padding: 3px;
  border-radius: 4px;
}
.preview-paper .is-highlighted {
  background: var(--text);
  color: var(--surface);
}
.preview-paper-lines {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.preview-paper-lines i {
  height: 4px;
  width: 92%;
  border-radius: 3px;
  background: var(--soft);
}
.preview-paper-lines i:nth-child(2) {
  width: 100%;
}
.preview-paper-lines i:last-child {
  width: 68%;
}
.preview-question {
  margin: 22px 20px 0;
  padding: 15px 18px;
  border-radius: 12px;
  background: var(--soft);
}
.preview-question p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.preview-photo {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--soft);
}
.preview-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-art-brief {
  padding: 20px;
}
.preview-art-brief p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.preview-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
}
.preview-learning {
  padding: 28px;
}
.preview-learning > div {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.preview-learning > div:last-child {
  border: 0;
  padding-bottom: 0;
}
.preview-learning > div > span {
  color: var(--muted);
  font-size: 12px;
  padding-top: 3px;
}
.preview-learning p {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.preview-learning strong {
  font-size: 18px;
}
.preview-plans {
  padding: 26px;
}
.preview-plans > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.preview-plans > div > span {
  display: grid;
  gap: 5px;
  font-size: 20px;
  font-weight: 600;
}
.preview-plans > div > span:last-child {
  text-align: right;
}
.preview-plans small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.preview-plans > p {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
  .preview-control:hover {
    color: var(--muted);
  }
}
@media (max-width: 960px) {
  .seo-hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .seo-hero-layout .product-preview {
    max-width: 520px;
  }
  .seo-hero-layout h1 {
    max-width: 760px;
    font-size: clamp(36px, 6vw, 52px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .seo-page *,
  .seo-page *::before,
  .seo-page *::after {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}

/* The public description also renders below the native guest chat. Keep this
   island independent of landing-page resets and of the app's theme variables. */
.kitwise-public-home {
  padding: clamp(40px, 6vw, 76px) 24px;
  color: inherit;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  font-family: inherit;
}
.kitwise-public-home .kw-home-wrap {
  width: min(100%, 1024px);
  margin-inline: auto;
}
.kitwise-public-home h1 {
  max-width: 900px;
  margin: 0 0 22px;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.kitwise-public-home h2 {
  margin: 0 0 18px;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.kitwise-public-home h2:not(:first-child) {
  margin-top: 42px;
}
.kitwise-public-home h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.kitwise-public-home p {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.8;
}
.kitwise-public-home a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.kitwise-public-home a:hover {
  text-decoration-thickness: 2px;
}
.kitwise-public-home a:focus-visible,
.kitwise-public-home summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 3px;
}
.kitwise-public-home .kw-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
  margin: 32px 0;
}
.kitwise-public-home .kw-home-grid article {
  padding: 20px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 16px;
}
.kitwise-public-home .kw-home-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 24px 0;
}
.kitwise-public-home .kw-home-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
.kitwise-public-home details {
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  padding: 18px 0;
}
.kitwise-public-home summary {
  cursor: pointer;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
}
.kitwise-public-home details p {
  margin: 16px 0 0;
}
@media (max-width: 760px) {
  .seo-page .wrap {
    width: min(100% - 36px, 1160px);
  }
  .seo-page .site-header {
    align-items: flex-start;
    padding: 17px 0;
    flex-direction: column;
  }
  .seo-nav {
    gap: 8px 16px;
  }
  .seo-hero {
    padding: 50px 0 58px;
  }
  .seo-grid,
  .seo-steps {
    grid-template-columns: 1fr;
  }
  .seo-card {
    min-height: 0;
  }
  .seo-section {
    padding: 48px 0;
  }
}
