/* Preview-only refinements. Keep the Precision layout and its two themes. */
:root {
  --cta-start: #303530;
  --cta-end: #202520;
  --cta-border: #394039;
}

.button.blue,
.nav > .button {
  color: #fff;
  background: #272d27;
  background-image: linear-gradient(120deg, var(--cta-start), var(--cta-end));
  border-color: var(--cta-border);
  box-shadow: 0 3px 9px rgba(25, 32, 25, .12), inset 0 1px 0 #ffffff12;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.button.blue:hover,
.nav > .button:hover {
  color: #fff;
  background: #364036;
  background-image: linear-gradient(120deg, #3b443b, #2d342d);
  border-color: #485248;
  box-shadow: 0 5px 15px rgba(25, 32, 25, .16);
}

html[data-theme=dark] .button.blue,
html[data-theme=dark] .nav > .button {
  color: #20251f;
  background: #e5e3d9;
  background-image: linear-gradient(120deg, #eeece3, #dcded2);
  border-color: #e0e1d5;
  box-shadow: 0 3px 14px #0003, inset 0 1px 0 #fff8;
}

html[data-theme=dark] .button.blue:hover,
html[data-theme=dark] .nav > .button:hover {
  color: #20251f;
  background: #f3f1e8;
  background-image: linear-gradient(120deg, #f7f5ec, #e6e8dc);
  border-color: #f2f1e7;
}

.closing .button.blue {
  color: #20251f;
  background: #e5e3d9;
  background-image: linear-gradient(120deg, #eeece3, #dcded2);
  border-color: #e0e1d5;
}

.closing .button.blue:hover {
  color: #20251f;
  background: #f3f1e8;
  background-image: linear-gradient(120deg, #f7f5ec, #e6e8dc);
  border-color: #f2f1e7;
}

/* Language is a quiet peer to the theme control, with a clear current state. */
.nav {
  gap: 20px;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 30px;
  padding: 6px;
  border-radius: 3px;
  color: #59616e;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.language-switch a:hover {
  color: var(--ink);
}

.language-switch a[aria-current=page] {
  background: #fff;
  color: #303a30;
  box-shadow: 0 1px 3px #11111112;
}

html[data-theme=dark] .language-switch a {
  color: #aeb9cc;
}

html[data-theme=dark] .language-switch a:hover {
  color: #fff;
}

html[data-theme=dark] .language-switch a[aria-current=page] {
  background: #353a34;
  color: #eeece3;
  box-shadow: inset 0 0 0 1px #ffffff09;
}

.partner-hero p.hero-invitation {
  max-width: 680px;
  margin: 17px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Product captions stay readable in both themes, including the narrow view. */
.source-node small,
.environment-node small,
.hub > span,
.section-bar > span,
.platform .preview-note {
  color: #586171;
  font-size: 11px;
  line-height: 1.55;
}

.source-node > div,
.environment-node > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-node strong,
.environment-node strong {
  font-size: 12px;
  line-height: 1.5;
}

.platform .explorer-panel p,
.platform .explorer-panel code,
.platform .review-pill {
  font-size: 11px;
}

.platform .explorer-panel code {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.platform .explorer-panel code span {
  color: #586171;
}

.demo-label,
.tool-activity,
.insight-stats span,
.investigation-foot,
.sample-disclaimer {
  font-size: 11px;
  line-height: 1.55;
}

html[data-theme=dark] .source-node small,
html[data-theme=dark] .environment-node small,
html[data-theme=dark] .hub > span,
html[data-theme=dark] .section-bar > span,
html[data-theme=dark] .platform .preview-note,
html[data-theme=dark] .platform .explorer-panel code span {
  color: #b0bbce;
}

/* An editorial three-step invitation, rather than a project assessment form. */
.conversation-start {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  padding-block: 85px 100px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.conversation-intro h2 {
  max-width: 530px;
  margin: 18px 0 25px;
}

.conversation-intro > p:not(.context) {
  max-width: 510px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.conversation-intro > p + p:not(.context) {
  margin-top: 16px;
}

.conversation-intro > .button {
  margin-top: 28px;
}

.conversation-intro > p.step-note {
  margin-top: 13px;
  font-size: 12px;
}

.conversation-promise {
  display: block;
  max-width: 450px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.conversation-promise > span {
  color: var(--blue);
  margin-right: 7px;
}

.conversation-steps {
  padding-top: 6px;
}

.conversation-steps article {
  display: flex;
  gap: 23px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.conversation-steps article > span {
  flex: 0 0 auto;
  padding-top: 4px;
  color: var(--blue);
  font-family: PlexMono, monospace;
  font-size: 12px;
}

.conversation-steps article > div {
  min-width: 0;
}

.conversation-steps h3 {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -.4px;
  font-weight: 500;
}

.conversation-steps article p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.conversation-steps .step-note {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  margin-top: 13px;
  color: #364aa9;
  font-size: 11px;
  line-height: 1.7;
}

html[data-theme=dark] .conversation-steps .step-note {
  color: #a8b9ff;
}

.closing p.closing-copy {
  max-width: 600px;
  margin: -12px 0 29px;
  color: #bfc7d8;
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 1100px) {
  .nav {
    gap: 16px;
  }

  .nav nav {
    gap: 15px;
    font-size: 12px;
  }
}

@media (max-width: 1050px) {
  .nav > .button.compact {
    display: none;
  }

  .conversation-start {
    gap: 45px;
  }
}

@media (max-width: 760px) {
  .nav {
    gap: 10px;
    height: auto;
    min-height: 72px;
    padding-block: 12px;
    flex-wrap: wrap;
  }

  .language-switch {
    margin-left: auto;
  }

  .nav .theme-toggle {
    margin-left: 0;
  }

  .nav nav {
    top: 100%;
    font-size: 14px;
  }

  .nav nav a {
    padding-block: 6px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .partner-hero p.hero-invitation {
    max-width: 480px;
    margin-top: 15px;
    font-size: 12px;
  }

  .source-node {
    align-items: flex-start;
  }

  .node-icon {
    flex: 0 0 16px;
    margin-top: 3px;
  }

  .source-node small,
  .environment-node small,
  .hub > span,
  .section-bar > span,
  .platform .preview-note {
    font-size: 11px;
  }

  .platform .section-bar > span {
    white-space: normal;
  }

  .demo-label {
    font-size: 11px;
    text-align: right;
  }

  .conversation-start {
    grid-template-columns: minmax(0, 1fr);
    gap: 33px;
    padding-block: 60px 65px;
  }

  .conversation-intro h2 {
    margin: 15px 0 23px;
    font-size: 38px;
    letter-spacing: -1.5px;
  }

  .conversation-intro > p:not(.context) {
    font-size: 14px;
  }

  .conversation-intro > .button {
    margin-top: 24px;
  }

  .conversation-steps article {
    gap: 18px;
    padding-block: 22px;
  }

  .conversation-steps h3 {
    font-size: 17px;
  }

  .conversation-steps article p {
    font-size: 13px;
  }

  .closing p.closing-copy {
    max-width: 460px;
    font-size: 14px;
    margin-top: -13px;
  }
}

@media (max-width: 420px) {
  .nav {
    gap: 8px;
  }

  .nav .brand {
    gap: 7px;
    font-size: 24px;
  }

  .nav .brand svg {
    width: 25px;
    height: 25px;
  }

  .language-switch {
    padding: 2px;
  }

  .language-switch a {
    min-width: 32px;
    min-height: 30px;
  }

  .nav .menu {
    gap: 5px;
  }

  .source-node {
    gap: 7px;
    padding-inline: 8px;
  }

  .environment-node {
    padding-inline: 7px;
  }

  .source-node strong,
  .environment-node strong {
    font-size: 11px;
  }

  .conversation-intro h2 {
    font-size: 35px;
  }

  .conversation-intro > .button {
    width: 100%;
    font-size: 13px;
  }

  .conversation-promise {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .nav .brand {
    font-size: 21px;
    gap: 5px;
  }
  .nav .brand svg {
    width: 23px;
    height: 23px;
  }
  .nav .menu {
    font-size: 0;
    padding: 7px;
    min-width: 30px;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 5px;
  }
  .nav .menu span {
    font-size: 16px;
    margin: 0;
  }
  .insight-stats strong {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button.blue,
  .nav > .button {
    transition: none;
  }
}
