.desktop-nav > a.is-active {
  color: var(--link-blue);
}

.desktop-nav > a.is-active::after {
  width: 100%;
}

.flash-wrap {
  position: fixed;
  z-index: 80;
  top: calc(var(--header-height) + 12px);
  left: 50%;
  width: min(92%, 620px);
  transform: translateX(-50%);
}

.flash-message {
  margin: 0;
  padding: 14px 18px;
  border: 1px solid #a8d8ab;
  border-radius: var(--radius-sm);
  background: #effaf0;
  box-shadow: var(--shadow-md);
  color: #075d0b;
  font-weight: 800;
}

.flash-message.is-alert {
  border-color: #f2aa94;
  background: #fff2ed;
  color: #8f2f16;
}

.page-hero {
  padding-top: calc(var(--header-height) + 85px);
  background:
    radial-gradient(circle at 85% 22%, rgba(202, 233, 251, 0.9) 0 9%, transparent 9.4%),
    radial-gradient(circle at 8% 80%, rgba(215, 244, 216, 0.8) 0 10%, transparent 10.4%),
    linear-gradient(180deg, var(--powder-blue-soft), var(--canvas));
}

.page-hero-blue {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 240, 184, 0.75) 0 10%, transparent 10.4%),
    linear-gradient(135deg, #f5fbff 0%, #eaf6ff 48%, #f4fff4 100%);
}

.page-hero-templates {
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 217, 204, 0.8) 0 9%, transparent 9.4%),
    radial-gradient(circle at 88% 70%, rgba(255, 240, 184, 0.8) 0 11%, transparent 11.4%),
    linear-gradient(180deg, #f5fbff, #fff);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 70px;
  align-items: center;
}

.page-hero h1 {
  max-width: 900px;
  margin: 18px 0 24px;
  font-size: var(--text-h1);
}

.page-hero-copy.centered {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.page-hero-copy.centered .eyebrow {
  justify-content: center;
}

.page-lead {
  max-width: 760px;
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.page-hero-copy.centered .page-lead {
  margin-inline: auto;
}

.feature-orbit {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  border: 1px solid rgba(0, 117, 221, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-lg);
}

.feature-orbit::before,
.feature-orbit::after {
  position: absolute;
  border: 1px dashed rgba(0, 117, 221, 0.25);
  border-radius: 50%;
  content: "";
}

.feature-orbit::before { inset: 35px; }
.feature-orbit::after { inset: 90px; }

.orbit-spark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 15px 35px rgba(0, 117, 221, 0.28);
  color: white;
  font-size: 2rem;
}

.orbit-card {
  position: absolute;
  z-index: 2;
  padding: 15px 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-md);
  font-weight: 900;
}

.orbit-card-one { top: 35px; left: 10px; }
.orbit-card-two { right: 5px; bottom: 40px; }

.home-feature-grid .feature-card-large {
  grid-column: 1 / -1;
}

.home-feature-grid .feature-card-brand,
.home-feature-grid .feature-card-publish {
  grid-column: span 6;
}

.format-stack {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 290px;
  padding: 30px;
}

.format-stack span {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid rgba(0, 45, 121, 0.12);
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 900;
}

.format-stack i {
  color: var(--link-blue);
  font-size: var(--text-xs);
  font-style: normal;
  text-transform: uppercase;
}

.brand-swatches {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.brand-swatches i {
  width: 46px;
  height: 46px;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.brand-swatches i:nth-child(1) { background: var(--brand-blue); }
.brand-swatches i:nth-child(2) { background: var(--lime); }
.brand-swatches i:nth-child(3) { background: var(--yellow); }
.brand-swatches i:nth-child(4) { background: var(--coral); }

.data-boundary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  padding: 35px;
  border-radius: var(--radius-md);
  background: var(--powder-blue-soft);
}

.data-boundary span {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: white;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 900;
}

.data-boundary b {
  color: var(--ink);
}

.data-boundary i {
  flex-basis: 100%;
  color: var(--cta-green);
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.settings-preview {
  overflow: hidden;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.settings-preview-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 55px;
  padding: 48px;
  background: white;
}

.settings-preview-grid > div:first-child {
  padding: 15px;
}

.settings-preview-grid > div:first-child small,
.workflow-panel-copy > small,
.large-steps small {
  color: var(--link-blue);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.settings-preview-grid h3,
.workflow-panel-copy h3 {
  margin: 12px 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.workflow-panels > section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  min-height: 430px;
  padding: 55px;
}

.connection-preview,
.article-preview,
.result-preview {
  position: relative;
  display: flex;
  min-height: 285px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--powder-blue-soft), white);
  box-shadow: var(--shadow-md);
}

.connection-preview > span {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
  color: var(--brand-blue);
  font-size: 2rem;
  font-weight: 1000;
}

.connection-preview .quizout-symbol { padding: 15px; }
.connection-preview b,
.result-preview b {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  color: var(--cta-green);
  font-size: var(--text-xs);
}

.article-preview {
  flex-direction: column;
  align-items: stretch;
  padding: 50px;
}

.article-preview i {
  height: 14px;
  border-radius: var(--radius-pill);
  background: var(--border-soft);
}

.article-preview i.short { width: 62%; }
.article-preview strong {
  align-self: flex-end;
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  background: var(--brand-blue);
  color: white;
}

.result-preview > span {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--deep-blue);
  font-size: 3rem;
  font-weight: 1000;
}

.result-preview > div { display: grid; gap: 10px; width: 42%; }
.result-preview i { height: 18px; border-radius: var(--radius-pill); background: var(--blue); }
.result-preview i:nth-child(2) { width: 75%; background: var(--lime); }
.result-preview i:nth-child(3) { width: 55%; background: var(--coral); }

.promise-list {
  display: grid;
  gap: 15px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.promise-list li { display: flex; gap: 12px; align-items: center; font-weight: 800; }
.promise-list span { color: var(--cta-green); }

.large-steps {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.large-steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
}

.large-steps li > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-blue);
  color: white;
  font-weight: 1000;
}

.large-steps strong { display: block; margin-top: 3px; font-size: 1.1rem; }
.large-steps p { margin: 3px 0 0; color: var(--text-muted); }

.format-explainer {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 27, 64, 0.12);
}

.format-explainer strong { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; }
.format-explainer p { margin: 8px 0 0; font-size: var(--text-sm); }

.derivability-card {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 70px;
  align-items: center;
  padding: clamp(35px, 6vw, 75px);
  border-radius: var(--radius-lg);
  background: var(--deep-blue);
  box-shadow: var(--shadow-lg);
  color: white;
}

.derivability-card .eyebrow { color: #8fc9ff; }
.derivability-card h2 { margin: 14px 0 0; color: white; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; }
.derivability-card > p { margin: 0; color: #dcecff; font-size: 1.1rem; line-height: 1.75; }

.partner-dialog { width: min(760px, calc(100% - 32px)); }
.partner-dialog .dialog-shell { max-width: none; }

.partner-form { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--ink); font-size: var(--text-sm); font-weight: 900; }
.partner-form input,
.partner-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: white;
  color: var(--ink);
  font: inherit;
}

.partner-form textarea { resize: vertical; }
.partner-form input:focus,
.partner-form textarea:focus { border-color: var(--brand-blue); outline: 3px solid rgba(0, 117, 221, 0.13); }
.partner-form input[type="submit"] {
  border-color: var(--cta-green);
  background: var(--cta-green);
  color: white;
  cursor: pointer;
  font-weight: 900;
}
.partner-form input[type="submit"]:hover { background: #027205; }
.partner-form .button { margin-top: 4px; }
.form-note { margin: 0; color: var(--text-muted); font-size: var(--text-xs); text-align: center; }

.form-errors {
  padding: 13px 15px;
  border: 1px solid #f2aa94;
  border-radius: var(--radius-xs);
  background: #fff2ed;
  color: #8f2f16;
  font-size: var(--text-sm);
}

.form-errors ul { margin: 7px 0 0; padding-left: 20px; }
.partner-success { padding: 25px 10px 10px; text-align: center; }
.partner-success .dialog-icon { margin-inline: auto; }
.partner-success .button { margin-top: 20px; }

.site-footer .footer-links > p {
  margin: 0;
  color: #a9bad0;
  font-size: var(--text-sm);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .page-hero-grid,
  .workflow-panels > section,
  .settings-preview-grid,
  .derivability-card {
    grid-template-columns: 1fr;
  }

  .page-hero-grid { gap: 45px; }
  .feature-orbit { min-height: 280px; }
  .format-stack { min-width: 0; }
  .settings-preview-grid,
  .workflow-panels > section { padding: 32px; }
}

@media (max-width: 640px) {
  .page-hero { padding-top: calc(var(--header-height) + 45px); }
  .feature-orbit { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .workflow-panels > section { padding: 24px; }
  .connection-preview,
  .article-preview,
  .result-preview { min-height: 230px; }
  .derivability-card { gap: 25px; }
}
