.page-products {
  --pd-hair: rgba(36, 31, 28, 0.12);
  --pd-hair-strong: rgba(36, 31, 28, 0.26);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-products h1,
.page-products h2,
.page-products h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.28;
  margin: 0;
  letter-spacing: 0.01em;
}

.page-products p {
  margin: 0;
  line-height: 1.75;
}

.page-products a {
  color: inherit;
}

.page-products .pd-head {
  max-width: 62ch;
  margin-bottom: 26px;
}

.page-products .pd-head h2 {
  font-size: clamp(24px, 4.6vw, 36px);
  margin-bottom: 12px;
}

.page-products .pd-lede {
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- hero ---------- */

.page-products .pd-hero {
  position: relative;
  padding: calc(var(--header-offset) + 28px) 0 0;
  background-image:
    linear-gradient(180deg, rgba(237, 227, 208, 0.7), rgba(247, 241, 230, 0) 72%),
    repeating-linear-gradient(to right, rgba(36, 31, 28, 0.07) 0 1px, transparent 1px 96px);
}

.page-products .pd-hero-inner {
  display: grid;
  gap: 28px;
  align-items: end;
  padding-bottom: 30px;
}

.page-products .pd-hero .crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.page-products .pd-hero .crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--pd-hair-strong);
}

.page-products .pd-hero .crumbs a {
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 174, 122, 0.7);
}

.page-products .pd-hero .eyebrow {
  margin-bottom: 12px;
}

.page-products .pd-hero-copy h1 {
  font-size: clamp(28px, 6.4vw, 50px);
  margin-bottom: 16px;
  max-width: 20ch;
}

.page-products .pd-hero-lede {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 54ch;
}

.page-products .pd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 24px;
}

.page-products .pd-stats {
  background: var(--paper-2);
  border: 1px solid var(--pd-hair);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-soft);
}

.page-products .pd-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--pd-hair);
}

.page-products .pd-stat:first-child {
  border-top: 0;
  padding-top: 0;
}

.page-products .pd-stat-num {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--ink);
  min-width: 78px;
}

.page-products .pd-stat-label {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.page-products .pd-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0 16px;
  border-top: 1px solid var(--pd-hair);
  border-bottom: 1px solid var(--pd-hair);
  scrollbar-width: thin;
}

.page-products .pd-rail a {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 15px;
  border-radius: var(--pill);
  border: 1px solid var(--pd-hair-strong);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-products .pd-rail a:hover,
.page-products .pd-rail a:focus-visible {
  background: var(--paper-2);
  border-color: var(--autumn);
}

/* ---------- sections shared ---------- */

.page-products .section {
  padding: 48px 0;
}

.page-products .section--tight {
  padding: 32px 0;
}

/* ---------- overview ---------- */

.page-products .pd-overview {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(237, 227, 208, 0.42) 100%);
}

.page-products .pd-overview-grid {
  display: grid;
  gap: 24px;
}

.page-products .pd-overview-media {
  margin: 0;
}

.page-products .pd-overview-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-products .pd-svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .pd-svc-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 16px 0;
  border-top: 1px solid var(--pd-hair);
}

.page-products .pd-svc-list li:last-child {
  border-bottom: 1px solid var(--pd-hair);
}

.page-products .pd-svc-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding-top: 5px;
}

.page-products .pd-svc-name {
  font-size: 17.5px;
  margin-bottom: 6px;
}

.page-products .pd-svc-list p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- membership ---------- */

.page-products .pd-tier-grid {
  display: grid;
  gap: 18px;
}

.page-products .pd-tier {
  --tier: var(--spring);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 20px;
  border: 1px solid var(--pd-hair);
  border-top: 6px solid var(--tier);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}

.page-products .pd-tier[data-season="spring"] {
  --tier: var(--spring);
  background: linear-gradient(180deg, rgba(231, 198, 204, 0.42), rgba(237, 227, 208, 0.9) 64%);
}

.page-products .pd-tier[data-season="summer"] {
  --tier: var(--summer);
  background: linear-gradient(180deg, rgba(78, 143, 168, 0.2), rgba(237, 227, 208, 0.9) 64%);
}

.page-products .pd-tier[data-season="winter"] {
  --tier: var(--winter);
  background: linear-gradient(180deg, rgba(45, 74, 93, 0.2), rgba(237, 227, 208, 0.9) 64%);
}

.page-products .pd-tier-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.page-products .pd-tier h3 {
  font-size: 26px;
  letter-spacing: 0.08em;
}

.page-products .pd-tier-sum {
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--pd-hair-strong);
  padding-bottom: 12px;
}

.page-products .pd-tier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
}

.page-products .pd-tier-list li {
  position: relative;
  padding-left: 16px;
  line-height: 1.6;
}

.page-products .pd-tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tier);
}

.page-products .pd-panel {
  margin-top: auto;
  border-top: 1px solid var(--pd-hair-strong);
  padding-top: 12px;
}

.page-products .pd-panel summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-products .pd-panel summary::-webkit-details-marker {
  display: none;
}

.page-products .pd-panel summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-soft);
}

.page-products .pd-panel[open] summary::after {
  content: "–";
}

.page-products .pd-panel .panel-body {
  padding-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- client ---------- */

.page-products .pd-client-grid {
  display: grid;
  gap: 16px;
}

.page-products .pd-client {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border: 1px solid var(--pd-hair);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(36, 31, 28, 0.05);
}

.page-products .pd-client-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: var(--winter);
  color: var(--frost);
}

.page-products .pd-client:nth-child(2) .pd-client-tag {
  background: var(--summer);
  color: var(--paper);
}

.page-products .pd-client:nth-child(3) .pd-client-tag {
  background: var(--autumn-gold);
  color: var(--ink);
}

.page-products .pd-client h3 {
  font-size: 22px;
}

.page-products .pd-client p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.page-products .pd-client-fit {
  border-top: 1px dashed var(--pd-hair-strong);
  padding-top: 10px;
  font-size: 13.5px;
}

.page-products .pd-client .btn--quiet {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- compare spread ---------- */

.page-products .pd-compare {
  background: linear-gradient(180deg, rgba(237, 227, 208, 0.5), rgba(247, 241, 230, 0) 80%);
}

.page-products .pd-spread {
  display: grid;
  gap: 18px;
  position: relative;
}

.page-products .pd-page {
  padding: 16px 16px 20px;
  border: 1px solid var(--pd-hair);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.page-products .pd-page--mobile {
  background: linear-gradient(180deg, rgba(221, 231, 231, 0.7), var(--paper) 62%);
}

.page-products .pd-page-tab {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.page-products .pd-page img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--pd-hair);
  object-fit: cover;
}

.page-products .pd-page dl {
  margin: 16px 0 0;
  display: grid;
  gap: 9px;
}

.page-products .pd-page dl > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--pd-hair);
  font-size: 14px;
}

.page-products .pd-page dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding-top: 3px;
}

.page-products .pd-page dd {
  margin: 0;
  line-height: 1.6;
}

.page-products .pd-switch {
  margin-top: 22px;
  padding: 22px 20px;
  border: 1px solid var(--pd-hair-strong);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
}

.page-products .pd-switch h3 {
  font-size: 20px;
  margin-bottom: 14px;
}

.page-products .pd-switch-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .pd-switch-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.6;
}

.page-products .pd-switch-steps span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--pd-hair-strong);
  color: var(--ink-soft);
}

.page-products .pd-switch-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.page-products .pd-switch-note a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--spring);
}

/* ---------- fix ---------- */

.page-products .pd-fix-grid {
  display: grid;
  gap: 18px;
}

.page-products .pd-fix-sub {
  font-size: 15px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.page-products .pd-symptom {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .pd-symptom li {
  padding: 14px 16px;
  border-left: 5px solid var(--autumn);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.page-products .pd-fix-card {
  padding: 22px 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--winter);
  color: var(--frost);
}

.page-products .pd-fix-card h3 {
  font-size: 21px;
  color: var(--frost);
  margin-bottom: 16px;
}

.page-products .pd-fix-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pd-fix;
  display: grid;
  gap: 16px;
}

.page-products .pd-fix-card li {
  counter-increment: pd-fix;
  position: relative;
  padding-left: 34px;
}

.page-products .pd-fix-card li::before {
  content: counter(pd-fix, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--winter);
  background: var(--frost);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.page-products .pd-fix-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.page-products .pd-fix-card p {
  font-size: 14px;
  color: rgba(221, 231, 231, 0.86);
}

/* ---------- flow ---------- */

.page-products .pd-flow-grid {
  display: grid;
  gap: 22px;
}

.page-products .pd-flow-media {
  margin: 0;
}

.page-products .pd-flow-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.page-products .pd-flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .pd-flow-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 18px 14px 12px;
  border: 1px solid var(--pd-hair);
  border-radius: var(--radius);
  background: var(--paper);
}

.page-products .pd-flow-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--ink);
}

.page-products .pd-flow-num--spring { background: var(--spring); color: var(--ink); }
.page-products .pd-flow-num--summer { background: var(--summer); }
.page-products .pd-flow-num--autumn { background: var(--autumn); }
.page-products .pd-flow-num--winter { background: var(--winter); }

.page-products .pd-flow-list h3 {
  font-size: 16.5px;
  margin-bottom: 4px;
}

.page-products .pd-flow-list p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- scenes ---------- */

.page-products .pd-scenes {
  background: linear-gradient(180deg, rgba(237, 227, 208, 0.55), rgba(247, 241, 230, 0) 88%);
}

.page-products .pd-scene-grid {
  display: grid;
  gap: 14px;
}

.page-products .pd-scene {
  --scene: var(--spring);
  padding: 20px 18px;
  border: 1px solid var(--pd-hair);
  border-top: 5px solid var(--scene);
  border-radius: var(--radius);
  background: var(--paper);
}

.page-products .pd-scene h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.page-products .pd-scene p {
  font-size: 14px;
  color: var(--ink-soft);
}

.page-products .pd-scene--spring { --scene: var(--spring); }
.page-products .pd-scene--summer { --scene: var(--summer); }
.page-products .pd-scene--autumn { --scene: var(--autumn); }
.page-products .pd-scene--winter { --scene: var(--winter); }

.page-products .pd-scenes-foot {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.page-products .pd-scenes-foot a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--summer-yellow);
}

/* ---------- responsive ---------- */

@media (min-width: 720px) {
  .page-products .section {
    padding: 64px 0;
  }

  .page-products .pd-hero {
    padding-top: calc(var(--header-offset) + 40px);
  }

  .page-products .pd-hero-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 36px;
    padding-bottom: 40px;
  }

  .page-products .pd-overview-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 32px;
    align-items: start;
  }

  .page-products .pd-overview-media {
    position: sticky;
    top: 96px;
  }

  .page-products .pd-tier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-products .pd-client-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }

  .page-products .pd-client:nth-child(2) {
    transform: translateY(26px);
  }

  .page-products .pd-client:nth-child(3) {
    transform: translateY(52px);
  }

  .page-products .pd-client-grid {
    padding-bottom: 56px;
  }

  .page-products .pd-spread {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 0;
    align-items: start;
  }

  .page-products .pd-spread::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 53%;
    width: 1px;
    background: var(--pd-hair-strong);
    pointer-events: none;
  }

  .page-products .pd-page--desktop {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    padding-right: 26px;
  }

  .page-products .pd-page--mobile {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    padding-left: 26px;
  }

  .page-products .pd-fix-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px;
    align-items: start;
  }

  .page-products .pd-flow-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 28px;
    align-items: center;
  }

  .page-products .pd-flow-list li {
    border-radius: var(--pill);
    padding: 12px 22px 12px 12px;
  }

  .page-products .pd-scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .page-products .pd-hero-copy h1 {
    max-width: 22ch;
  }

  .page-products .pd-lede {
    font-size: 16px;
  }

  .page-products .pd-scene-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-products .pd-svc-list li {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 18px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .pd-client:nth-child(2),
  .page-products .pd-client:nth-child(3) {
    transform: none;
  }

  .page-products .pd-rail a {
    transition: none;
  }
}
