.demo-case-study {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  width: min(100%, 66rem);
  margin-block: 2.5rem;
}

.demo-case-study h2,
.demo-worksheet-result h2,
.demo-comparison h2,
.demo-product-details h2,
.career-detail :where(section) h2 {
  margin-block: 1.1rem 0.7rem;
  font-size: clamp(1.45rem, 3vw, 2.7rem);
}

.demo-case-study figure img {
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
}

.demo-case-study p:not(.demo-eyebrow),
.demo-worksheet-result p,
.demo-product-details p {
  max-width: 62ch;
}

.demo-worksheet :where(form, [data-demo-picker]) {
  max-width: 42rem;
}

.demo-worksheet :where(fieldset) {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  padding: 1rem;
  margin-block: 0 1rem;
  border: 1px solid var(--color-line);
}

.demo-worksheet-result {
  margin-block: 1.1rem 1.5rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.demo-story :where(.demo-worksheet-result) {
  padding: 0;
  margin: 0;
  border: 0;
}

.demo-worksheet-result h2 {
  margin-top: 0;
}

.demo-worksheet-result :where(ul) {
  margin-block: 0.65rem;
  padding-inline-start: 1.3rem;
}

.demo-worksheet-result .demo-action {
  margin-top: 1rem;
}

.demo-comparison :where(dl),
.demo-product-details :where(dl),
.career-detail :where(dl),
.energy-comparison :where(dl) {
  margin: 0;
}

:is(.demo-comparison, .demo-product-details, .career-detail aside, .energy-comparison)
  :where(dl > div) {
  display: grid;
  grid-template-columns: minmax(7rem, 0.5fr) minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--color-line);
}

:is(.demo-comparison, .demo-product-details, .career-detail aside, .energy-comparison) :where(dt) {
  font-weight: 650;
}

:is(.demo-comparison, .demo-product-details, .career-detail aside, .energy-comparison) :where(dd) {
  margin: 0;
}

.demo-comparison,
.demo-product-details {
  width: min(100%, 55rem);
  margin-block: 2rem;
}

.demo-product-details :where(h3) {
  margin-block: 1.5rem 0.6rem;
}

.demo-worksheet :where(label),
.career-filters :where(label),
.demo-search :where(label) {
  display: grid;
  gap: 0.3rem;
  font: 650 0.9rem / 1.4 var(--font-ui);
}

:is(.demo-search, .career-filters) :where(input[type="search"], button) {
  min-height: 2.7rem;
  min-width: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--color-line);
  border-radius: 0.35rem;
  font: 500 0.95rem / 1.35 var(--font-ui);
}

:is(.demo-search, .career-filters) :where(input[type="search"]) {
  width: 100%;
  background: var(--color-surface);
  color: var(--color-text);
}

.demo-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 0.5rem;
  max-width: 34rem;
}

.demo-search :where(label) {
  grid-column: 1 / -1;
}

.demo-no-results {
  margin-block: 1rem;
  color: var(--color-text-soft);
}

.native-demo-calculator > :where(p) {
  margin-block: 1rem;
  max-width: 60ch;
}

.energy-comparison {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}

.energy-comparison :where(article) {
  padding: clamp(0.9rem, 2vw, 1.6rem);
  border: 1px solid var(--color-line);
  border-block-start: 4px solid #175f9d;
  background: var(--color-surface);
}

.energy-comparison :where(h2) {
  margin-bottom: 0.9rem;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
}

.energy-comparison :where(a) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  text-underline-offset: 0.2em;
}

[data-demo="spoor"] {
  --color-page: #f6f5eb;
  --color-surface: #fffdf5;
  --color-text: #182321;
  --color-text-soft: #475550;
  --color-line: #b8c3b9;
  --color-accent: #476440;
}

[data-demo="spoor"] :where(.demo-wordmark) {
  font-weight: 800;
  letter-spacing: -0.065em;
}

.career-hero,
.audio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  min-height: 30rem;
  margin-top: clamp(1rem, 3.8vw, 3.2rem);
  background: #1b2b27;
  color: #fffdf0;
}

:is(.career-hero, .audio-hero) > :where(div) {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: clamp(1.4rem, 4vw, 4.15rem);
}

:is(.career-hero, .audio-hero) :where(h1) {
  margin-block: 0.55rem 1.1rem;
  max-width: 13ch;
  font-size: clamp(2.7rem, 5.2vw, 6.1rem);
  line-height: 0.98;
}

:is(.career-hero, .audio-hero) :where(p:not(.demo-eyebrow)) {
  max-width: 44ch;
  margin-bottom: 1.4rem;
}

:is(.career-hero, .audio-hero) :where(figure) {
  position: relative;
}

.career-hero :where(figcaption) {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.52rem 0.85rem;
  background: #1b2b27;
  color: #fffdf0;
  font: 550 0.75rem / 1.4 var(--font-ui);
}

.career-hero .demo-action {
  background: #dbea96;
  color: #1b2b27;
}

.career-hero .demo-action:hover {
  background: #eff5cf;
}

:is(.career-hero, .audio-hero) .demo-action:focus-visible {
  outline-color: #fff;
}

.career-sectors :where(h2),
.audio-range :where(h2),
.ritual-steps :where(h2) {
  margin-bottom: 1.4rem;
}

.career-sectors > :where(div),
.audio-range :where(nav),
.ritual-steps :where(nav) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

:is(.career-sectors, .audio-range, .ritual-steps) :where(nav a, div a:not(.demo-product-grid a)) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 0.65rem;
  padding: clamp(0.85rem, 2vw, 1.45rem);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  text-decoration: none;
  font-family: var(--font-ui);
}

:is(.career-sectors, .audio-range, .ritual-steps)
  :where(nav a, div a:not(.demo-product-grid a)):hover {
  border-color: currentColor;
}

.career-sectors :where(strong) {
  font: 700 clamp(1.05rem, 2.1vw, 1.8rem) / 1.1 var(--font-display);
}

.career-sectors :where(span) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.career-job-list {
  display: grid;
  gap: 0.7rem;
}

.career-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.28fr);
  gap: 1rem;
  align-items: center;
  padding: clamp(0.9rem, 2.6vw, 1.8rem);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.career-job :where(h3) {
  margin-block: 0.25rem 0.5rem;
}

.career-job :where(h3 a) {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.career-job-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font: 600 0.85rem / 1.35 var(--font-ui);
}

.career-job-meta :where(span, a) {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.55rem;
  background: #e8ede2;
}

.career-job-meta :where(a) {
  min-height: 2.6rem;
}

.career-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.career-filters :where(button) {
  background: var(--color-page);
  color: var(--color-text);
  cursor: pointer;
}

.career-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(13rem, 0.6fr);
  align-items: start;
  gap: clamp(1rem, 4vw, 4rem);
}

.career-detail-grid :where(figure img) {
  width: 100%;
  max-height: 33rem;
  object-fit: cover;
}

.career-detail-grid :where(aside) {
  padding: 1rem;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.career-detail-grid :where(dl) + .demo-action {
  margin-top: 1rem;
}

.audio-hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border-radius: 1.35rem;
  background: #162a40;
  color: #f7faff;
}

.audio-hero > :where(div) {
  position: relative;
  z-index: 1;
}

.audio-hero > :where(figure) {
  position: absolute;
  inset: 0;
}

.audio-hero :where(figure img) {
  object-position: 75% 58%;
}

.audio-hero :where(figure)::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d2035f7 0%, #10263ced 22%, #162a4080 52%, #162a4008 84%);
  content: "";
}

.audio-hero :where(.demo-eyebrow) {
  color: #badcfd;
}

.audio-hero .demo-action {
  border-radius: 0.6rem;
  background: #c4e3ff;
  color: #12263c;
}

.audio-hero .demo-action:hover {
  background: #edf6ff;
}

.audio-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font: 640 0.86rem / 1.4 var(--font-ui);
}

.audio-actions :where(a:not(.demo-action)) {
  text-underline-offset: 0.25em;
}

.audio-range :where(nav) {
  margin-bottom: 1rem;
}

:is(.audio-range, .ritual-steps) :where(nav a) {
  flex-direction: row;
  align-items: center;
}

[data-demo="loods"] .demo-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

[data-demo="loods"] .demo-product-grid :where(article) {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 0.9rem;
  background: var(--color-surface);
}

[data-demo="loods"] .demo-product-grid :where(figure) {
  aspect-ratio: 1.25;
}

[data-demo="loods"] .demo-product-copy {
  padding: 0.15rem 0.8rem 0.9rem;
}

[data-demo="loods"] .demo-card-title {
  font-size: clamp(1rem, 1.7vw, 1.65rem);
}

.audio-story,
.ritual-guide .demo-story {
  overflow: hidden;
  border-radius: 1.4rem;
}

.ritual-steps :where(nav a) {
  border-radius: 3rem;
}

.ritual-guide .demo-story :where(label) {
  width: min(100%, 25rem);
}

@media (max-width: 60rem) {
  [data-demo="loods"] .demo-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .energy-comparison :where(article dl > div) {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }
  .career-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 45rem) {
  :is(.demo-case-study, .career-hero, .audio-hero, .career-detail-grid, .energy-comparison) {
    grid-template-columns: minmax(0, 1fr);
  }
  :is(.career-hero, .audio-hero) :where(figure) {
    aspect-ratio: 1.7;
  }
  .audio-hero > :where(figure) {
    position: relative;
  }
  .audio-hero :where(figure)::after {
    content: none;
  }
  .career-job {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 34rem) {
  .career-sectors > :where(div),
  .audio-range :where(nav),
  .ritual-steps :where(nav) {
    grid-template-columns: minmax(0, 1fr);
  }
  :is(.career-hero, .audio-hero) :where(h1) {
    font-size: clamp(2.25rem, 8.5vw, 3.3rem);
  }
}

.demo-catalogue {
  --catalogue-muted: color-mix(in srgb, var(--color-text) 89%, var(--color-page));
  margin-block-start: clamp(1.15rem, 4vw, 3rem);
}
.demo-catalogue-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.7rem);
  padding: clamp(0.85rem, 3.1vw, 2.5rem);
  border-radius: min(var(--radius), 0.9rem);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}
.demo-catalogue-intro h1 {
  font-size: clamp(2rem, 5vw, 4.75rem);
  line-height: 1.04;
}
.demo-catalogue-intro p {
  max-width: 47ch;
  margin-block: 0.5rem;
  color: var(--catalogue-muted);
}
.demo-catalogue-intro figure {
  display: block;
  min-width: 0;
  margin: 0;
  aspect-ratio: 2.35;
  overflow: clip;
  border-radius: min(var(--radius), 0.55rem);
}
.demo-catalogue-intro figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.demo-catalogue-intro a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: 680 0.83rem / 1.3 var(--font-ui);
  margin-block-start: 0.5rem;
}
.demo-catalogue-shelf {
  display: grid;
  align-items: start;
  gap: 0.75rem clamp(1rem, 3vw, 2rem);
  margin-block-start: clamp(1rem, 2.7vw, 2.4rem);
}
.demo-catalogue-shelf .demo-filters:not([hidden]) {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 0.7rem;
}
.demo-catalogue-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}
.demo-catalogue-categories label {
  margin: 0;
  position: relative;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 620;
  border-radius: 0.5rem;
}
.demo-catalogue-categories input {
  position: absolute;
  inset: 0;
  opacity: 0;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  cursor: pointer;
}
.demo-catalogue-categories label:has(input:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.demo-catalogue-categories label:has(input:checked) span {
  text-decoration-thickness: 1px;
  text-decoration-line: underline;
  text-underline-offset: 0.16em;
}
.demo-catalogue-facets > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.55rem;
  cursor: pointer;
  font: 650 0.84rem / 1.2 var(--font-ui);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: 0.5rem;
  padding-inline: 0.62rem;
  width: fit-content;
}
.demo-catalogue-facets summary::-webkit-details-marker {
  display: none;
}
.demo-catalogue-facets[open] summary svg:last-child {
  transform: rotate(180deg);
}
.demo-catalogue-facet-body {
  display: grid;
  margin-block-start: 0.55rem;
  gap: 0.55rem 1rem;
  padding: 0.72rem;
  border: 1px solid var(--color-line);
  border-radius: min(var(--radius), 0.5rem);
  background: var(--color-surface);
}
.demo-catalogue-facet-body legend {
  font-size: 0.88rem;
}
.demo-catalogue-facet-body label {
  font-size: 0.8rem;
  border-radius: 0.38rem;
}
.demo-catalogue-facet-body input {
  accent-color: var(--color-accent);
}
.demo-catalogue-results {
  min-width: 0;
}
.demo-catalogue-toolbar:not([hidden]) {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 0.5rem 0.8rem;
  align-items: end;
  flex-wrap: wrap;
  padding-block: 0 0.65rem;
  margin-block: 0 0.8rem;
  border-block-end: 1px solid var(--color-line);
}
.demo-catalogue-toolbar p {
  margin: 0;
  min-height: 2.55rem;
  display: flex;
  align-items: center;
}
.demo-catalogue[data-layout="sound-shelf"] .demo-catalogue-intro {
  grid-template-columns: minmax(0, 1fr);
  background: var(--color-band);
  color: var(--color-band-text);
}
.demo-catalogue[data-layout="sound-shelf"] .demo-catalogue-intro p {
  color: inherit;
}
.demo-catalogue[data-layout="sound-shelf"] .demo-product-grid a {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
  align-items: center;
  height: 100%;
}
.demo-catalogue[data-layout="sound-shelf"] .demo-product-grid :where(a) figure {
  height: 100%;
  aspect-ratio: 1;
}
.demo-catalogue[data-layout="routine"] .demo-catalogue-intro {
  background: var(--color-page);
  border: 0;
  padding-inline: 0;
}
.demo-catalogue[data-layout="routine"] .demo-catalogue-intro figure {
  aspect-ratio: 1.8;
  border-radius: 2rem 2rem 0 2rem;
}
.demo-catalogue[data-layout="routine"] .demo-catalogue-categories label {
  border: 0;
  border-radius: 2rem;
  background: var(--color-surface);
}
.demo-catalogue[data-layout="routine"] .demo-catalogue-categories label:has(input:checked) {
  background: var(--color-band);
  color: var(--color-band-text);
}
.demo-catalogue .demo-product-grid[data-visible-products="1"] {
  grid-template-columns: minmax(0, min(100%, 36rem));
}
.demo-catalogue .demo-product-grid[data-visible-products="1"] article:not([hidden]) > a {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1fr);
  align-items: center;
}
.demo-catalogue .demo-product-grid[data-visible-products="1"] article:not([hidden]) > a > figure {
  max-block-size: 13rem;
  height: 100%;
  aspect-ratio: 1;
}
@media (min-width: 50rem) {
  .demo-catalogue[data-layout="sound-shelf"] .demo-catalogue-shelf {
    grid-template-columns: minmax(11rem, 0.72fr) minmax(0, 3.6fr);
  }
  .demo-catalogue[data-layout="sound-shelf"] .demo-catalogue-categories {
    display: grid;
  }
  .demo-catalogue[data-layout="sound-shelf"] .demo-catalogue-categories label {
    width: 100%;
  }
  .demo-catalogue[data-layout="sound-shelf"] .demo-catalogue-facet-body label {
    display: flex;
  }
  .demo-catalogue[data-layout="paintwork"] .demo-catalogue-facet-body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  }
}
@media (max-width: 42rem) {
  .demo-catalogue-intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo-catalogue-intro figure,
  .demo-catalogue[data-layout="routine"] .demo-catalogue-intro figure {
    aspect-ratio: 3;
  }
  .demo-catalogue[data-layout="paintwork"] .demo-catalogue-intro figure {
    display: none;
  }
  .demo-catalogue[data-layout="sound-shelf"] .demo-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Give the purchase controls room without stretching a product’s whole summary. */
.demo-product-info .demo-purchase-quantity {
  grid-column: 1 / -1;
  justify-self: start;
  inline-size: 4.65rem;
}
.demo-purchase-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: stretch;
}
.demo-purchase-controls .demo-action {
  justify-content: center;
  min-inline-size: 0;
  width: 100%;
}
.demo-price-before {
  color: var(--color-text-soft);
  font-size: 0.78em;
  font-weight: 500;
}
.demo-merch-label {
  position: absolute;
  inset: 0.6rem auto auto 0.6rem;
  z-index: 1;
  max-width: calc(100% - 4.5rem);
  border-radius: 0.35rem;
  padding: 0.36rem 0.53rem;
  color: var(--color-band-text);
  background: var(--color-band);
  font: 700 0.73rem / 1.2 var(--font-ui);
}
.demo-offer-contents {
  margin: 0.95rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: min(var(--radius), 0.7rem);
}
.demo-offer-contents h2 {
  margin: 0 0 0.45rem;
  font: 700 0.93rem / 1.3 var(--font-ui);
}
.demo-offer-contents ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}
.demo-order .commerce-recommendations {
  margin-block: 1rem;
}
.demo-product > .commerce-recommendations {
  margin-block: 1.5rem 0;
  width: min(100%, 41rem);
}

.demo-product {
  --shop-line: var(--color-line);
  --shop-wash: color-mix(in srgb, var(--color-accent) 8%, var(--color-page));
  --shop-muted: var(--color-text-soft);
  --product-rounding: min(var(--radius), 0.9rem);
}
.demo-product-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  align-items: center;
  margin: 0 0 clamp(0.9rem, 2vw, 1.8rem);
  font: 550 0.86rem / 1.4 var(--font-ui);
}
.demo-product-crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  text-underline-offset: 0.18em;
}
.demo-product-info .product-benefit-list,
.demo-product-info .product-delivery {
  margin-block-start: 1rem;
}
.demo-product .product-section-links {
  margin-block: clamp(1.5rem, 4vw, 3.5rem) 1.2rem;
}
.demo-product-facts > h2 {
  margin: 0 0 0.8rem;
}
.demo-product-facts details {
  max-width: 55rem;
  margin-block: 1rem 1.5rem;
}
.demo-product-facts details summary {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-weight: 650;
  min-height: 2.75rem;
  cursor: pointer;
  list-style: none;
}
.demo-product-facts details[open] summary svg {
  transform: rotate(180deg);
}
.demo-product-facts details p {
  max-width: 64ch;
  margin-top: 0.2rem;
}
.demo-product
  :is(.product-review-compose, .product-delivery, .demo-product-facts)
  summary::-webkit-details-marker {
  display: none;
}
.demo-product .shop-button {
  padding: 0.62rem 1rem;
  border: 0;
  border-radius: var(--product-rounding);
  background: var(--color-band);
  color: var(--color-band-text);
  font: 650 0.9rem / 1.35 var(--font-ui);
}
.demo-product .shop-button:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
