/* Shared section palettes. Nested surfaces reset text and control colors together. */
:root, .surface-slate {
  --button-fill: #b9edce;
  --button-ink: #11251b;
  --button-hover: #d5f7e3;
  --button-outline: #849e90;
}
.surface-cream, .surface-blue, .surface-warm, .sample-shell {
  --button-fill: #24583f;
  --button-ink: #fff;
  --button-hover: #19452e;
  --button-outline: #587768;
}
.hero-with-people .eyebrow, .product-hero .eyebrow, .audience-hero .eyebrow, .page-hero .eyebrow { color: #e5cda7; }
.surface-cream, .surface-blue, .surface-warm {
  --ink: #243c33;
  --muted: #53635a;
  --green: #2c6249;
  --paper: #f3f0e8;
  --wash: #e8e5da;
  --line: #c8cdbf;
  --card: #fffdf7;
  --card-hover: #f4f5ed;
  --control-fill: #fffdf7;
  --control-line: #93a39a;
  --accent-ink: #fff;
  --link-hover: #153b2a;
  --device-glow: #a18c6733;
  --icon-ink: var(--icon-ink-light);
  --icon-tile: var(--icon-tile-light);
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}
.surface-blue {
  --ink: #233c4b; --muted: #4c6270; --green: #305c72;
  --paper: #e0e9ed; --wash: #cedde4; --line: #adbfca;
  --card: #f3f7f9; --card-hover: #fff;
  --control-fill: #f3f7f9; --control-line: #8a9eaa;
  --link-hover: #123c55;
  --device-glow: #577d9538;
}
.surface-warm {
  --ink: #3e352c; --muted: #6b6155; --green: #735331;
  --paper: #f2e9dc; --wash: #e6d8c4; --line: #cfc1ad;
  --card: #fffaf2; --card-hover: #fffdf8;
  --control-fill: #fffaf2; --control-line: #ae9a82;
  --link-hover: #513419;
  --device-glow: #a18c6733;
}
.surface-slate {
  --ink: #f2efe8; --muted: #bbcbd2; --green: #dfc7a4;
  --paper: #202e38; --wash: #2b3b46; --line: #596b77;
  --card: #2b3b46; --card-hover: #354853;
  --control-fill: #18232b; --control-line: #768993;
  --accent-ink: #18232b;
  --link-hover: #fff; --device-glow: #76ad8b24;
  --icon-ink: var(--icon-ink-dark);
  --icon-tile: var(--icon-tile-dark);
  color: var(--ink);
  background: var(--paper);
  color-scheme: dark;
}

.faq-section.surface-cream { --paper: #f6f4ee; }
.faq-list details[open] { background: var(--wash); }
.faq-list summary, .faq-list details p { padding-left: 16px; padding-right: 40px; }
.faq-list summary > .icon { right: 12px; }
.related-section .resource-link { background: var(--card); }
.related-section .resource-link:hover { background: var(--card-hover); }
.related-section .resource-link h3 > .icon {
  width: 36px; height: 36px; padding: 9px; border-radius: 9px; background: var(--icon-tile);
}
.related-section .resource-link h3 { align-items: center; }
.process-number {
  display: grid; place-items: center; align-self: flex-start;
  flex-basis: 36px; height: 36px; padding: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--wash);
}

/* Costs stay easy to compare against a warm background. */
.pricing-detail.surface-warm { padding-top: 48px; }
.price-card { background: var(--card); }
.price-card.featured { background: var(--paper); border-color: var(--line); }
.messaging-panel { background: var(--paper); }
.audience-fees { padding: 0 24px; background: var(--card); border: 1px solid var(--line); border-radius: 12px 56px 12px 12px; }
.audience-fees > div:last-child { border-bottom: 0; }

/* Forms keep an obvious contrast between fields, labels, and the panel. */
.contact-card.surface-cream { --paper: #f3f0e8; border-color: var(--line); border-radius: var(--photo-radius); }
.contact-card .contact-form input, .contact-card .contact-form textarea { background: var(--card); border-color: #8b9a90; color: var(--ink); }
.contact-card .contact-notice { background: #e0e9ed; border-color: #adbfca; color: #233c4b; }
.article-toc.surface-blue { border-color: var(--line); }
.article-next.surface-slate p { color: var(--muted); }

@media (min-width: 960px) {
  .pricing-detail.surface-warm { padding-top: 64px; }
  .price-card { border-radius: 14px 64px 14px 14px; }
  .audience-fees { padding-inline: 32px; }
}
