/* Shared visual polish. Scoped to the existing marketing page families. */
:root {
  --wp-panel: #141a27;
  --wp-panel-raised: #1a2233;
  --wp-border: #35415a;
  --wp-muted: #b6bfd1;
  --wp-accent: #bdc8ff;
}

/* Keep the landing page, access forms and founder cards on one content grid. */
.stl-root .stl-main {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-block: clamp(48px, 6vw, 88px);
}
.stl-root .stl-h1 { max-width: 780px; text-wrap: balance; }
.stl-root .stl-lede { max-width: 620px; font-size: clamp(17px, 1.55vw, 22px); }
.stl-root .stl-note { max-width: 620px; line-height: 1.8; }
.stl-root .stl-form-wrap {
  max-width: none;
  background: linear-gradient(145deg, #1b2235, #121722);
  border-color: #394660;
  border-radius: 16px;
  padding: clamp(22px, 2.2vw, 30px);
  box-shadow: 0 12px 36px #0000001c;
}
.stl-root :is(.stl-input, .stl-select) { background: #0c111c; border-color: #46516a; min-height: 48px; }
.stl-root .stl-submit { background: #bdc8ff; border-color: #bdc8ff; color: #11162a; }
.stl-root .stl-submit:hover { background: #d6ddff; border-color: #d6ddff; }
.stl-root .stl-founders { max-width: 1200px; margin-inline: auto; padding-top: 48px; }
.stl-root .stl-founder-grid { gap: 24px; }
.stl-root .stl-founder-card { background: var(--wp-panel); border-color: var(--wp-border); border-radius: 18px; }
.stl-root .stl-founder-photo { height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 50%; }
.stl-root .stl-founder-photo[src*="founder-image2"] { object-position: 50% 42%; }
.stl-root .stl-founder-body { padding: clamp(22px, 2vw, 28px); }
.stl-root :is(.stl-founder-bio, .stl-founders-intro, .stl-form-fine) { color: var(--wp-muted); }
.stl-root .stl-founder-contact { border-color: var(--wp-border); }
@media (min-width: 1040px) {
  .stl-root .stl-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 64px; row-gap: 20px; align-content: center; }
  .stl-main > :not(.stl-form-wrap) { grid-column: 1; margin-block: 0; }
  .stl-main > .stl-form-wrap { grid-column: 2; margin: 0; align-self: start; }
  .stl-main > .stl-form-wrap:nth-last-child(2) { grid-row: 1 / 4; }
  .stl-main > .stl-form-wrap:last-child { grid-row: 4 / 6; }
}

/* Related cards share a calm indigo surface, with a brighter inset for images. */
:is(#ds, #dx, .droplet-page) { --wp-panel: #141a27; --wp-border: #35415a; }
#ds :is(.card, .flow, .scenario-screen, .eco-panel, .eco-node),
#dx.pg-modules :is(.md-card, .md-context, .md-compare article),
.audit-card,
body[data-droplet-native-theme] :is(.hwx-sku, .hwx-modcard, .hwx-eng-card, .snapx-card, .intx-cat, .pbx-card, .whyx-card, .team-card, .wl-card) {
  background-color: var(--wp-panel);
  border-color: var(--wp-border);
  box-shadow: 0 8px 28px #00000014;
}
.pc .pc-card {
  background: linear-gradient(155deg, #1b2235, #121822 65%);
  border-color: #3b4864;
  border-radius: 18px;
  padding: clamp(20px, 2vw, 28px);
}
.pc .pc-grid { align-items: stretch; gap: clamp(16px, 2vw, 26px); }
.pc .pc-card figure { width: 100%; height: clamp(240px, 23vw, 320px); border-radius: 12px; overflow: hidden; margin-bottom: 26px; }
/* The existing front-view renderer sets important image rules; match its
   priority only in plan figures, without touching the shared-scale family. */
.pc .pc-card figure img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center 78%;
  border-radius: 12px;
}
.pc .pc-card > p { line-height: 1.75; }
.pc .pc-card .pc-facts { gap: 18px 20px; margin-bottom: 28px; }
.pc .pc-card .pc-facts dd { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.pc .pc-card .pc-button { width: 100%; }
.pc :is(.pc-choice, .pc-module, .pc-bundle) { background: #141b29; border-color: #3c4860; }
.pc .pc-choice:has(input:checked), .pc .pc-module:has(input:checked), .pc .pc-bundle[aria-pressed=true] {
  background: #242d49; border-color: #bdc8ff;
}
.pc .pc-summary { background: #1a2336; border-color: #687aaa; }
.pc .pc-button { background: #25324f; border-color: #687ba7; }
.pc .pc-button.pc-primary { background: #bdc8ff; border-color: #bdc8ff; color: #11162a !important; }
.pc .pc-button:hover { background: #334366; border-color: #a8b9ed; }
.pc .pc-button.pc-primary:hover { background: #d6ddff; }

/* Give the app screenshot the width of its presentation frame. */
#ds #droplet-direction, #ds .main-story-player { width: 100%; max-width: none; min-width: 0; }
#ds .main-story-player:not(.is-expanded) .dp-real-app-capture { width: 100%; max-width: 960px; margin-inline: auto; }
#ds .dp-real-app-capture img { width: 100%; height: auto; object-fit: contain; }
#ds .demo-wrap { display: block; padding: clamp(14px, 2vw, 26px); background: #121827; border-color: #3b4864; }

/* Module and hardware media retain their intrinsic proportions. */
#dx.pg-modules .md-art { background: radial-gradient(ellipse at 50% 25%, #2a3657, #131a29 80%); border-color: #42516f; box-shadow: 0 20px 50px -30px #0009; }
#dx.pg-modules .md-card-visual { padding: 32px 22px; background: linear-gradient(145deg, #202a42, #151e2e); border-color: #35415a; }
#dx.pg-modules .md-render img { object-fit: contain; }
#dx.pg-modules .md-card-body { padding: 26px; }
#dx.pg-modules .md-context { background: #171f2d; }
#ds .hero-render { border-color: #3b4864; background: #141a27; }
#ds .hero-render figcaption { background: #141a27; border-color: #35415a; }
#ds .team-card img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; object-position: 50% 50%; }
#ds .team-card img[src*="founder-image2"] { object-position: 50% 42%; }

@media (min-width: 901px) {
  .pc .pc-card > p { min-height: 5.25em; }
  .pc .pc-card > small:last-of-type { min-height: 3.3em; }
}
@media (max-width: 760px) {
  .stl-root .stl-main { padding-top: 40px; padding-bottom: 48px; }
  .stl-root .stl-h1 { font-size: clamp(36px, 9vw, 48px); }
  .stl-root .stl-founder-photo { aspect-ratio: 1; }
  .pc .pc-card figure { height: 280px; }
  .pc .pc-card { padding: 22px; }
  #ds .demo-wrap { margin-inline: 16px; }
  #dx.pg-modules .md-art { border-radius: 18px; }
  #dx.pg-modules .md-card-visual { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .stl-root *, .pc .pc-card, #dx.pg-modules .md-card { transition: none; }
}
