.ml-doors-page {
  --doors-navy: #102b44;
  --doors-blue: #1a6fc4;
  --doors-blue-dark: #155da3;
  --doors-blue-pale: #e9f3fb;
  --doors-paper: #f8fafb;
  --doors-line: #b7c7d5;
  --doors-warm: #f4eee5;
  overflow-x: clip;
}

.ml-doors-page main h1,
.ml-doors-page main h2,
.ml-doors-page main h3,
.ml-doors-page main p,
.ml-doors-page main figure {
  margin-top: 0;
}

.ml-doors-page main h1,
.ml-doors-page main h2,
.ml-doors-page main h3 {
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.ml-doors-page main h1 {
  max-width: 13ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 7vw, 5.25rem);
}

.ml-doors-page main h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.7vw, 3.7rem);
}

.ml-doors-page main h3 {
  margin-bottom: .8rem;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.ml-doors-page .button {
  min-height: 44px;
}

.ml-doors-page .eyebrow {
  margin-bottom: .75rem;
  color: var(--doors-blue-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.breadcrumbs {
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: .88rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  margin-right: .55rem;
  color: var(--doors-line);
  content: "/";
}

.breadcrumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.doors-hero {
  padding: clamp(3.5rem, 8vw, 7.5rem) 0 clamp(4rem, 8vw, 7rem);
  background:
    linear-gradient(90deg, rgb(183 199 213 / .35) 1px, transparent 1px) 0 0 / 4.5rem 4.5rem,
    linear-gradient(rgb(183 199 213 / .35) 1px, transparent 1px) 0 0 / 4.5rem 4.5rem,
    var(--doors-paper);
}

.doors-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.doors-hero__copy .product-definition {
  max-width: 60ch;
  margin-bottom: 1rem;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.doors-hero__copy .audience-note {
  max-width: 62ch;
  margin-bottom: 1.6rem;
  color: var(--muted);
}

.doors-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.price-note {
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.doors-hero__visual,
.evidence-frame {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 1px solid #9fb4c6;
  background: #fff;
}

.doors-hero__visual {
  padding: .65rem;
  box-shadow: 14px 14px 0 #cfe1ef;
}

.doors-hero__visual::after {
  position: absolute;
  right: -.75rem;
  bottom: -1.4rem;
  width: 7rem;
  height: 7rem;
  border-right: 2px solid var(--doors-blue-dark);
  border-bottom: 2px solid var(--doors-blue-dark);
  border-radius: 0 0 100% 0;
  content: "";
  pointer-events: none;
}

.plan-corner {
  position: absolute;
  top: -1.6rem;
  left: -1.6rem;
  width: 4rem;
  height: 4rem;
  border-top: 2px solid var(--doors-blue-dark);
  border-left: 2px solid var(--doors-blue-dark);
}

.doors-hero__visual img,
.evidence-frame img {
  width: 100%;
}

.doors-hero__visual figcaption,
.evidence-frame figcaption {
  margin: 0;
  padding: .8rem .9rem .2rem;
  color: var(--muted);
  font-size: .84rem;
}

.doors-hero__visual figcaption span,
.evidence-frame figcaption strong {
  color: var(--doors-navy);
}

.doors-hero__visual figcaption span {
  margin-right: .5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-nav {
  position: sticky;
  top: 72px;
  z-index: 100;
  border-block: 1px solid var(--border);
  background: #fff;
}

.section-nav__inner {
  display: flex;
  gap: .35rem;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
}

.section-nav span,
.section-nav a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: .75rem .7rem;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}

.section-nav span {
  padding-left: 0;
  color: var(--muted);
}

.doors-capabilities,
.doors-demo,
.doors-workflow,
.doors-compare,
.doors-faq,
.doors-final {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.doors-section-heading {
  max-width: 66rem;
  margin-bottom: clamp(2.25rem, 5vw, 4.5rem);
}

.doors-section-heading h2 {
  max-width: 17ch;
}

.doors-section-heading > p:not(.eyebrow) {
  max-width: 63ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.capability {
  position: relative;
  display: grid;
  min-width: 0;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--doors-line);
}

.capability:last-child {
  border-bottom: 1px solid var(--doors-line);
}

.capability__number {
  color: var(--doors-blue-dark);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.capability__copy p {
  max-width: 58ch;
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: .65rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 1.4rem;
}

.feature-list li::before {
  position: absolute;
  top: .62em;
  left: 0;
  width: .55rem;
  height: .55rem;
  border: 2px solid var(--doors-blue-dark);
  border-radius: 50%;
  content: "";
}

.evidence-frame {
  align-self: start;
  padding: .55rem;
}

.evidence-frame::before {
  position: absolute;
  top: -.65rem;
  left: 1.25rem;
  padding: .15rem .5rem;
  background: #fff;
  color: var(--doors-blue-dark);
  content: "VIEW / EVIDENCE";
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.doors-demo {
  border-top: 1px solid var(--doors-line);
  background: var(--doors-blue-pale);
}

.demo-layout {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.demo-layout .doors-section-heading {
  margin-bottom: 0;
}

.demo-evidence {
  min-width: 0;
  margin: 0;
  padding: .65rem;
  border: 1px solid #9fb4c6;
  background: #fff;
  box-shadow: 12px 12px 0 #bdd7eb;
}

.doors-video-frame {
  position: relative;
  aspect-ratio: 580 / 326;
  overflow: hidden;
  background: var(--doors-navy);
}

.doors-video-frame iframe,
.doors-video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.doors-video-facade {
  min-height: 44px;
  padding: 0;
  overflow: hidden;
  background: var(--doors-navy);
  color: #fff;
  cursor: pointer;
}

.doors-video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.doors-video-facade span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  min-width: 7.5rem;
  min-height: 48px;
  place-items: center;
  padding: .75rem 1.1rem;
  border: 2px solid #fff;
  background: #155da3;
  color: #fff;
  font-weight: 850;
  transform: translate(-50%, -50%);
}

.demo-evidence figcaption {
  margin: 0;
  padding: .85rem .35rem .2rem;
  color: var(--muted);
  font-size: .86rem;
}

.demo-evidence figcaption strong {
  color: var(--doors-navy);
}

.material-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-self: center;
  gap: .5rem;
  padding: 1rem;
  border: 1px solid var(--doors-line);
  background: #fff;
}

.material {
  display: flex;
  min-height: 8rem;
  align-items: end;
  padding: .6rem;
  border: 1px solid rgb(16 43 68 / .16);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.material--oak { background: #946b43; }
.material--walnut { background: #4e3427; }
.material--paint { background: #456f8e; }
.material--metal { background: #66727b; }
.material--glass { background: #2e7187; }

.doors-workflow {
  background: var(--doors-navy);
  color: #fff;
}

.doors-workflow .eyebrow {
  color: #9dcaf0;
}

.doors-workflow .doors-section-heading > p:not(.eyebrow) {
  color: #cfdeea;
}

.workflow-layout {
  display: grid;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgb(255 255 255 / .22);
}

.workflow-list li:last-child {
  border-bottom: 1px solid rgb(255 255 255 / .22);
}

.workflow-list span {
  color: #9dcaf0;
  font-size: .78rem;
  font-weight: 850;
}

.workflow-list h3,
.workflow-list p {
  margin-bottom: 0;
}

.workflow-list p {
  margin-top: .45rem;
  color: #cfdeea;
}

.doors-compare {
  background: var(--doors-warm);
}

.compare-grid {
  display: grid;
  gap: 1rem;
}

.license-card {
  display: grid;
  align-content: start;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid #c7b9a8;
  background: #fff;
}

.license-card--full {
  border-top: 5px solid var(--doors-blue-dark);
}

.license-card__label {
  margin-bottom: .5rem;
  color: var(--doors-blue-dark);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.license-card__price {
  margin-bottom: .75rem;
  color: var(--doors-navy);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 850;
  line-height: 1;
}

.license-card__price span {
  display: block;
  margin-top: .4rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.license-card .feature-list {
  margin-bottom: 1.5rem;
}

.license-card .button {
  align-self: end;
  width: fit-content;
}

.faq-layout {
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
}

.faq-list {
  border-top: 1px solid var(--doors-line);
}

.faq-list details {
  border-bottom: 1px solid var(--doors-line);
}

.faq-list summary {
  min-height: 56px;
  padding: 1.15rem 2.5rem 1.15rem 0;
  cursor: pointer;
  color: var(--doors-navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.faq-list p {
  max-width: 64ch;
  padding: 0 1rem 1.35rem 0;
  color: var(--muted);
}

.doors-final {
  background:
    linear-gradient(90deg, rgb(255 255 255 / .08) 1px, transparent 1px) 0 0 / 4rem 4rem,
    var(--doors-navy);
  color: #fff;
}

.doors-final__inner {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.doors-final h2 {
  max-width: 20ch;
}

.doors-final p:not(.eyebrow) {
  max-width: 58ch;
  margin-bottom: 0;
  color: #cfdeea;
}

.doors-final .eyebrow {
  color: #9dcaf0;
}

.doors-final .button--secondary {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

@media (min-width: 800px) {
  .doors-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  }

  .capability {
    grid-template-columns: 2.5rem minmax(16rem, .8fr) minmax(0, 1.2fr);
    align-items: center;
  }

  .capability--library {
    grid-template-columns: 2.5rem minmax(16rem, .85fr) minmax(0, 1.15fr);
  }

  .workflow-layout,
  .faq-layout,
  .demo-layout {
    grid-template-columns: minmax(16rem, .75fr) minmax(0, 1.25fr);
    align-items: start;
  }

  .workflow-layout .doors-section-heading,
  .faq-layout .doors-section-heading {
    position: sticky;
    top: 9rem;
    margin-bottom: 0;
  }

  .compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .doors-final__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 799px) {
  .doors-hero__grid,
  .capability,
  .demo-layout,
  .workflow-layout,
  .compare-grid,
  .faq-layout,
  .doors-final__inner {
    grid-template-columns: 1fr;
  }

  .doors-hero__visual {
    box-shadow: 9px 9px 0 #cfe1ef;
  }

  .doors-hero__visual::after {
    right: -.45rem;
    bottom: -.9rem;
    width: 4.5rem;
    height: 4.5rem;
  }

  .plan-corner {
    top: -.8rem;
    left: -.45rem;
  }

  .material-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .ml-doors-page main h1 {
    margin-bottom: .85rem;
    font-size: clamp(2.25rem, 10vw, 2.85rem);
  }

  .doors-hero {
    padding-top: 1rem;
  }

  .doors-hero__copy .product-definition {
    margin-bottom: .6rem;
  }

  .doors-hero__copy .audience-note {
    margin-bottom: 1rem;
  }

  .doors-actions {
    display: grid;
  }

  .doors-actions .button,
  .license-card .button {
    width: 100%;
  }

  .section-nav span {
    display: none;
  }
}

@media (max-width: 339px) {
  .ml-doors-page main h1 {
    margin-bottom: .7rem;
    font-size: clamp(2rem, 10vw, 2.2rem);
    line-height: 1.04;
  }
}

html[data-theme="dark"] .ml-doors-page {
  --doors-blue: #69b3f2;
  --doors-blue-dark: #8bc8fb;
  --doors-blue-pale: #172c3d;
  --doors-paper: #101820;
  --doors-line: #435564;
  --doors-warm: #2a241e;
}

html[data-theme="dark"] .doors-hero__visual,
html[data-theme="dark"] .evidence-frame,
html[data-theme="dark"] .demo-evidence,
html[data-theme="dark"] .material-board,
html[data-theme="dark"] .license-card,
html[data-theme="dark"] .section-nav,
html[data-theme="dark"] .evidence-frame::before {
  border-color: var(--doors-line);
  background: var(--surface);
}

html[data-theme="dark"] .doors-hero__visual,
html[data-theme="dark"] .demo-evidence {
  box-shadow: 12px 12px 0 #223c50;
}

html[data-theme="dark"] .doors-hero__visual figcaption span,
html[data-theme="dark"] .evidence-frame figcaption strong,
html[data-theme="dark"] .demo-evidence figcaption strong,
html[data-theme="dark"] .license-card__price,
html[data-theme="dark"] .faq-list summary {
  color: var(--ink);
}
