/*
 * v2 site layout. Loaded after pd-tokens.css and pd.css, and reuses their
 * tokens (--pd-accent, --pd-warm, --pd-radius ...) so the palette stays in one
 * place. New components are prefixed ps- to keep them apart from the ported
 * Shopify pd- components.
 */

/* Palette hooks on top of pd-tokens.css. A theme overrides these plus the
   Horizon/pd tokens; nothing below hardcodes a brand colour. */
:root {
  --ps-accent-rgb: 14 124 134;
  --ps-dark-rgb: 16 51 58;
  --ps-surface-rgb: 253 251 247;
  --ps-on-accent: #ffffff;
  --ps-highlight: #f3c48c;
  --ps-warm-hover: #eb9a50;
  --ps-pattern: var(--pd-accent);
  --ps-pattern-dark: #ffffff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  overflow-x: clip;
}

/* ------------------------------------------------------ doodle backgrounds
   Tiling pet doodles (build-pattern.mjs) laid faintly behind sections so
   large flat areas read as a pet business rather than a template. The ?v in
   these URLs must follow ASSET_VERSION in build.mjs. */

.ps-hero,
.ps-pagehero,
.pd-section--tint,
.pd-cta,
.ps-footer {
  position: relative;
  isolation: isolate;
}

.ps-hero::before,
.ps-pagehero::before,
.pd-section--tint::before,
.pd-cta::before,
.ps-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* The SVG is only used as a mask, so the doodles take whatever colour the
     palette sets in --ps-pattern. */
  background: var(--ps-pattern);
  -webkit-mask: url("pd-pattern.svg?v=9") 0 0 / 240px repeat;
  mask: url("pd-pattern.svg?v=9") 0 0 / 240px repeat;
  opacity: 0.09;
}

/* Heroes: full strength at the edges, easing to faint behind the headline so
   the copy stays clean. */
.ps-hero::before,
.ps-pagehero::before {
  opacity: 0.12;
  -webkit-mask-image: url("pd-pattern.svg?v=9"), radial-gradient(ellipse 32% 42% at 28% 42%, rgb(0 0 0 / 0.2), #000 100%);
  mask-image: url("pd-pattern.svg?v=9"), radial-gradient(ellipse 32% 42% at 28% 42%, rgb(0 0 0 / 0.2), #000 100%);
  -webkit-mask-size: 240px, 100% 100%;
  mask-size: 240px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.pd-section--tint::before {
  -webkit-mask-position: 120px 70px;
  mask-position: 120px 70px;
  opacity: 0.08;
}

.pd-cta::before,
.ps-footer::before {
  background: var(--ps-pattern-dark);
  opacity: 0.07;
}

/* pd.css hardcodes the original teal/orange in a few effects. */
.pd-step__num {
  color: var(--ps-on-accent);
  box-shadow: 0 0 0 6px rgb(var(--ps-accent-rgb) / 0.1);
}

.pd-quote input:focus-visible,
.pd-quote select:focus-visible,
.pd-quote textarea:focus-visible {
  box-shadow: 0 0 0 3px rgb(var(--ps-accent-rgb) / 0.16);
}

.pd-quote__submit {
  color: var(--ps-on-accent);
}

.pd-cta::after {
  background: color-mix(in srgb, var(--pd-warm) 16%, transparent);
}

.pd-cta > * {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------- buttons */

.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: var(--pd-accent);
  color: var(--ps-on-accent);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgb(var(--ps-accent-rgb) / 0.22);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.ps-btn:hover {
  background: var(--pd-accent-hover);
  color: var(--ps-on-accent);
  transform: translateY(-2px);
}

.ps-btn svg {
  flex: none;
}

.ps-btn--sm {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.9375rem;
  border-radius: 10px;
  box-shadow: none;
}

.ps-btn--warm {
  background: var(--pd-warm);
  color: var(--color-foreground);
  box-shadow: none;
}

.ps-btn--warm:hover {
  background: var(--ps-warm-hover);
  color: var(--color-foreground);
}

.ps-btn--ghost,
.ps-btn--outline {
  background: var(--pd-card);
  color: var(--color-foreground);
  border-color: var(--pd-rule-strong);
  box-shadow: var(--pd-shadow-sm);
}

.ps-btn--ghost:hover,
.ps-btn--outline:hover {
  background: var(--pd-card);
  color: var(--pd-accent);
  border-color: var(--pd-accent);
}

.ps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ps-actions--center {
  justify-content: center;
  margin-top: 40px;
}

@media (max-width: 480px) {
  .ps-actions .ps-btn {
    flex: 1 1 100%;
  }
}

.ps-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------ section head */

.ps-head {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.ps-head .pd-lede {
  margin-bottom: 0;
}

.ps-head--center {
  text-align: center;
}

.ps-head--center .pd-h2,
.ps-head--center .pd-lede {
  margin-inline: auto;
  max-width: 34ch;
}

.ps-head--center .pd-lede {
  max-width: 60ch;
}

/* ----------------------------------------------------------------- header */

.ps-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(var(--ps-surface-rgb) / 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--pd-rule);
}

.ps-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.ps-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-foreground);
  flex: none;
}

.ps-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--pd-accent);
  color: var(--ps-on-accent);
}

.ps-brand__text {
  font-family: var(--font-heading--family);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  line-height: 1;
}

.ps-brand__text span {
  color: var(--pd-accent);
}

.ps-brand--light {
  color: #fff;
}

.ps-brand--light .ps-brand__text span {
  color: var(--ps-highlight);
}

.ps-nav {
  display: none;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  margin-inline: auto;
}

.ps-nav a {
  position: relative;
  color: var(--color-foreground);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding-block: 6px;
}

.ps-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--pd-warm);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.ps-nav a:hover::after,
.ps-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.ps-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.ps-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--color-foreground);
  text-decoration: none;
  white-space: nowrap;
}

.ps-menu {
  position: static;
}

.ps-menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--pd-rule-strong);
  color: var(--color-foreground);
  cursor: pointer;
  list-style: none;
}

.ps-menu summary::-webkit-details-marker {
  display: none;
}

.ps-menu[open] summary {
  background: var(--color-foreground);
  color: #fff;
}

.ps-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: grid;
  padding: 10px 20px 22px;
  background: var(--color-background);
  border-bottom: 1px solid var(--pd-rule);
  box-shadow: var(--pd-shadow-lg);
}

.ps-menu__panel a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--pd-rule);
  color: var(--color-foreground);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
}

.ps-menu__panel a[aria-current="page"] {
  color: var(--pd-accent);
}

.ps-menu__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500 !important;
  font-size: 0.9375rem !important;
  color: var(--pd-muted) !important;
}

@media (max-width: 520px) {
  .ps-header__actions .ps-btn--sm {
    display: none;
  }

  .ps-header__phone span {
    display: none;
  }
}

@media (min-width: 1040px) {
  .ps-nav {
    display: flex;
  }

  .ps-menu {
    display: none;
  }

  .ps-header__actions {
    margin-left: 0;
  }
}

/* ------------------------------------------------------------- mobile bar */

.ps-mobilebar {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 76px;
  }

  .ps-mobilebar {
    position: fixed;
    z-index: 70;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgb(var(--ps-surface-rgb) / 0.97);
    border-top: 1px solid var(--pd-rule);
    box-shadow: 0 -6px 24px rgb(var(--ps-dark-rgb) / 0.1);
  }

  .ps-mobilebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
  }

  .ps-mobilebar__main {
    flex: 1;
    background: var(--pd-accent);
    color: var(--ps-on-accent);
  }

  .ps-mobilebar__alt {
    flex: 0 0 38%;
    border: 1.5px solid var(--pd-rule-strong);
    color: var(--color-foreground);
    background: var(--pd-card);
  }
}

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

.ps-hero {
  position: relative;
  padding-block: clamp(36px, 6vw, 84px) clamp(64px, 8vw, 110px);
  background:
    radial-gradient(60% 70% at 100% 0%, var(--pd-warm-soft) 0%, transparent 70%),
    var(--color-background);
}

.ps-hero__grid {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 940px) {
  .ps-hero__grid {
    grid-template-columns: 1.02fr 0.98fr;
  }
}

.ps-hero__title {
  font-family: var(--font-heading--family);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.ps-hero__sub {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.6;
  color: var(--pd-muted);
  max-width: 50ch;
  margin: 0;
}

.ps-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.ps-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-foreground);
}

.ps-points svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--pd-accent);
  color: var(--ps-on-accent);
}

.ps-hero__media {
  position: relative;
}

.ps-slides {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--pd-radius-lg);
  overflow: hidden;
  background: var(--pd-tint);
  box-shadow: var(--pd-shadow-lg);
}

.ps-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: ps-fade 24s infinite;
}

/* Shifted back 1.2s so the first slide is already faded in on load. */
.ps-slides img:nth-child(1) { animation-delay: -1.2s; }
.ps-slides img:nth-child(2) { animation-delay: 4.8s; }
.ps-slides img:nth-child(3) { animation-delay: 10.8s; }
.ps-slides img:nth-child(4) { animation-delay: 16.8s; }

/* Four slides x 6s. Each is fully visible for ~5s with a 1s crossfade. The
   first slide starts visible so there is never an empty frame on load. */
@keyframes ps-fade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  25% { opacity: 1; }
  29% { opacity: 0; }
  100% { opacity: 0; }
}

.ps-slides img:first-child {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ps-slides img {
    animation: none;
  }
}

.ps-hero__badge {
  position: absolute;
  left: clamp(-10px, -1.5vw, 0px);
  bottom: -26px;
  display: grid;
  gap: 2px;
  padding: 16px 22px;
  border-radius: 16px;
  background: var(--color-foreground);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--pd-shadow-lg);
}

.ps-hero__badge-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ps-highlight);
  font-weight: 600;
}

.ps-hero__badge-price {
  font-family: var(--font-heading--family);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.1;
}

.ps-hero__badge-note {
  font-size: 0.8125rem;
  opacity: 0.8;
}

@media (max-width: 939px) {
  .ps-hero__badge {
    left: 16px;
  }
}

/* rating (only rendered when REVIEWS is filled in) */
.ps-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--color-foreground);
  text-decoration: none;
  font-size: 0.9375rem;
}

.ps-rating__stars {
  display: inline-flex;
  color: #f2a900;
}

/* ------------------------------------------------------------------ tiles */

.ps-tiles {
  position: relative;
  z-index: 2;
  margin-top: clamp(-56px, -5vw, -36px);
}

.ps-tiles__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .ps-tiles__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.ps-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--pd-radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--color-foreground);
  box-shadow: var(--pd-shadow-md);
  isolation: isolate;
}

.ps-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.4s ease;
}

.ps-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(var(--ps-dark-rgb) / 0) 35%, rgb(var(--ps-dark-rgb) / 0.88) 100%);
}

.ps-tile:hover img {
  transform: scale(1.05);
}

.ps-tile__num {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-heading--family);
  font-weight: 800;
  font-size: 0.8125rem;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.9);
  color: var(--color-foreground);
}

.ps-tile__text {
  position: absolute;
  left: 16px;
  right: 52px;
  bottom: 16px;
  display: grid;
  gap: 2px;
}

.ps-tile__label {
  font-family: var(--font-heading--family);
  font-weight: 800;
  font-size: clamp(1.125rem, 2.2vw, 1.45rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.ps-tile__sub {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.ps-tile__arrow {
  position: absolute;
  right: 14px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pd-warm);
  color: var(--color-foreground);
  transition: transform 0.2s ease;
}

.ps-tile:hover .ps-tile__arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------- features */

.ps-features {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.ps-feature {
  text-align: center;
  padding: 30px 22px;
  border-radius: var(--pd-radius);
  background: var(--pd-card);
  border: 1px solid var(--pd-rule);
  box-shadow: var(--pd-shadow-sm);
}

.ps-feature__icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: var(--pd-warm-soft);
  color: var(--pd-warm-ink);
}

.ps-feature h3 {
  font-size: 1.1875rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.ps-feature p {
  margin: 0;
  color: var(--pd-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ range */

.ps-range {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ps-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--pd-radius);
  overflow: hidden;
  background: var(--pd-card);
  border: 1px solid var(--pd-rule);
  box-shadow: var(--pd-shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ps-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pd-shadow-md);
}

.ps-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.ps-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-card__media--product {
  background: #fff;
  border-bottom: 1px solid var(--pd-rule);
}

.ps-card__media--product img {
  object-fit: contain;
  padding: 14px;
}

.ps-card__body {
  display: grid;
  gap: 4px;
  padding: 20px 20px 22px;
  flex: 1;
  align-content: start;
}

.ps-card__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pd-warm-ink);
}

.ps-card__name {
  font-family: var(--font-heading--family);
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--color-foreground);
  letter-spacing: -0.01em;
}

.ps-card__weight {
  font-size: 0.875rem;
  color: var(--pd-muted);
}

.ps-card__price + .ps-card__weight {
  font-size: 0.75rem;
}

.ps-card__price {
  justify-self: start;
  margin-top: 10px;
  font-family: var(--font-heading--family);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--pd-warm-ink);
  background: var(--pd-warm-soft);
  border-radius: 999px;
  padding: 4px 13px;
}

.ps-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--pd-accent);
}

/* --------------------------------------------------------------- split */

.ps-split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 900px) {
  .ps-split {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.ps-split__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.6;
  object-fit: cover;
  border-radius: var(--pd-radius-lg);
  box-shadow: var(--pd-shadow-lg);
}

.ps-split .ps-head {
  margin-bottom: 26px;
}

.ps-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.ps-benefits li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ps-benefits__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--pd-card);
  color: var(--pd-accent);
  box-shadow: var(--pd-shadow-sm);
}

.ps-benefits h3 {
  margin: 2px 0 4px;
  font-size: 1.125rem;
}

.ps-benefits p {
  margin: 0;
  color: var(--pd-muted);
  font-size: 0.9375rem;
}

/* ----------------------------------------------------------------- faq */

.ps-faqwrap {
  display: grid;
  gap: 32px;
}

@media (min-width: 960px) {
  .ps-faqwrap {
    grid-template-columns: 0.75fr 1.25fr;
    align-items: start;
  }

  .ps-faqwrap > div:first-child {
    position: sticky;
    top: 110px;
  }
}

.ps-faqwrap .pd-faq__list {
  max-width: none;
}

.ps-faqwrap__aside {
  color: var(--pd-muted);
  margin: 0;
  max-width: 40ch;
}

/* ------------------------------------------------------------- areas */

.ps-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ps-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px 9px 11px;
  border-radius: 999px;
  background: var(--pd-card);
  border: 1px solid var(--pd-rule);
  color: var(--color-foreground);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ps-chips a svg {
  width: 15px;
  height: 15px;
  color: var(--pd-warm-ink);
}

.ps-chips a:hover {
  border-color: var(--pd-accent);
  color: var(--pd-accent);
}

/* ---------------------------------------------------------- cta band */

.ps-cta-section {
  padding-block: clamp(40px, 6vw, 72px);
}

/* ------------------------------------------------------------ quote */

/* Phones get the form straight after the heading; the steps and contact
   options follow it. On desktop they sit in a column beside the form. */
.ps-quotewrap {
  display: grid;
  gap: 28px;
  align-items: start;
  grid-template-areas: "head" "form" "info";
}

.ps-quotewrap__head { grid-area: head; }
.ps-quotewrap__form { grid-area: form; }
.ps-quotewrap__info { grid-area: info; }

.ps-quotewrap__head .ps-head {
  margin-bottom: 0;
}

@media (min-width: 980px) {
  .ps-quotewrap {
    grid-template-columns: 0.85fr 1.15fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: "head form" "info form";
    column-gap: clamp(32px, 5vw, 60px);
    row-gap: 32px;
  }
}

.ps-next {
  list-style: none;
  counter-reset: ps-next;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.ps-next li {
  position: relative;
  counter-increment: ps-next;
  display: grid;
  gap: 2px;
  padding-left: 48px;
}

.ps-next li::before {
  content: counter(ps-next);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pd-accent);
  color: var(--ps-on-accent);
  font-family: var(--font-heading--family);
  font-weight: 700;
}

.ps-next strong {
  color: var(--color-foreground);
  font-size: 1.0625rem;
}

.ps-next span {
  color: var(--pd-muted);
  font-size: 0.9375rem;
}

.ps-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ps-contact a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--pd-card);
  border: 1px solid var(--pd-rule);
  color: var(--pd-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
  transition: border-color 0.15s ease;
}

.ps-contact a:hover {
  border-color: var(--pd-accent);
}

.ps-contact a > span:last-child {
  display: grid;
}

.ps-contact strong {
  color: var(--color-foreground);
}

.ps-contact__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--pd-warm-soft);
  color: var(--pd-warm-ink);
}

.pd-quote__hint-inline {
  font-weight: 400;
  color: var(--pd-muted);
}

.ps-upload {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 10px !important;
  padding: 16px;
  border: 1.5px dashed var(--pd-rule-strong);
  border-radius: 12px;
  background: var(--color-background);
  color: var(--color-foreground);
  font-size: 0.9375rem !important;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ps-upload:hover {
  border-color: var(--pd-accent);
  background: rgb(var(--ps-accent-rgb) / 0.04);
}

.ps-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  padding: 0 !important;
}

.ps-upload:focus-within {
  border-color: var(--pd-accent);
  box-shadow: 0 0 0 3px rgb(var(--ps-accent-rgb) / 0.16);
}

.ps-upload__msg {
  font-size: 0.8125rem;
  color: var(--pd-warm-ink);
  min-height: 1em;
}

.ps-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pd-quote__submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

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

.ps-pagehero {
  padding-block: clamp(28px, 4.5vw, 64px);
  background:
    radial-gradient(60% 80% at 100% 0%, var(--pd-warm-soft) 0%, transparent 70%),
    var(--color-background);
}

.ps-pagehero--slim {
  padding-block: 22px 0;
}

.ps-pagehero--slim .pd-crumbs {
  margin: 0;
}

.ps-pagehero__grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

@media (min-width: 940px) {
  .ps-pagehero--media .ps-pagehero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.ps-pagehero__title {
  font-family: var(--font-heading--family);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 22ch;
  text-wrap: balance;
}

.ps-pagehero__intro {
  color: var(--pd-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 62ch;
}

.ps-pagehero__intro p {
  margin: 0 0 12px;
}

.ps-pagehero__intro p:last-child {
  margin-bottom: 0;
}

.ps-pagehero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
  border-radius: var(--pd-radius-lg);
  box-shadow: var(--pd-shadow-lg);
}

@media (max-width: 939px) {
  .ps-pagehero__media img {
    aspect-ratio: 4 / 3.4;
  }
}

/* ------------------------------------------------------------ products */

.ps-sizenav {
  list-style: none;
  margin: 0 0 clamp(32px, 4vw, 48px);
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ps-sizenav a {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--pd-card);
  border: 1px solid var(--pd-rule);
  border-left: 4px solid var(--pd-warm);
  color: var(--pd-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ps-sizenav a:hover {
  border-color: var(--pd-accent);
  transform: translateY(-2px);
}

.ps-sizenav strong {
  color: var(--color-foreground);
  font-size: 1rem;
}

.ps-products {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
}

.ps-product {
  display: grid;
  gap: 0;
  border-radius: var(--pd-radius-lg);
  overflow: hidden;
  background: var(--pd-card);
  border: 1px solid var(--pd-rule);
  box-shadow: var(--pd-shadow-md);
}

@media (min-width: 880px) {
  .ps-product {
    grid-template-columns: 0.85fr 1.15fr;
  }

  /* Alternate sides, keeping the wider column for the text either way. */
  .ps-product:nth-child(even) {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .ps-product:nth-child(even) .ps-product__media {
    order: 2;
  }
}

.ps-product__media {
  position: relative;
  min-height: 280px;
  background: var(--pd-tint);
}

.ps-product__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ps-product__media--product {
  background: #fff;
}

.ps-product__media--product img {
  object-fit: contain;
  padding: clamp(20px, 4vw, 48px);
}

@media (max-width: 879px) {
  .ps-product__media {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

.ps-product__body {
  padding: clamp(24px, 3.5vw, 42px);
}

.ps-product__tag {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pd-warm-ink);
}

.ps-product__name {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.ps-product__summary {
  color: var(--pd-muted);
  margin: 0 0 20px;
}

.ps-product .ps-actions {
  margin-top: 26px;
}

/* --------------------------------------------------------------- table */

.ps-tablewrap {
  overflow-x: auto;
  border-radius: var(--pd-radius);
  border: 1px solid var(--pd-rule);
  background: var(--pd-card);
  box-shadow: var(--pd-shadow-sm);
}

.ps-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.ps-table th,
.ps-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--pd-rule);
}

.ps-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-muted);
  background: var(--pd-tint);
}

.ps-table tbody th {
  color: var(--color-foreground);
}

.ps-table tbody tr:last-child > * {
  border-bottom: 0;
}

.ps-table__price {
  font-weight: 700;
  color: var(--pd-warm-ink);
  white-space: nowrap;
}

.ps-table a {
  font-weight: 600;
}

/* ------------------------------------------------------------- gallery */

.ps-gallerypage {
  padding-top: clamp(12px, 2vw, 24px);
}

.ps-masonry {
  columns: 3 260px;
  column-gap: 18px;
}

.ps-masonry figure {
  margin: 0 0 18px;
  break-inside: avoid;
}

.ps-masonry img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--pd-radius);
  box-shadow: var(--pd-shadow-md);
}

.ps-masonry figcaption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--pd-muted);
}

/* ------------------------------------------------------------- reviews */

.ps-reviewband {
  background: var(--color-foreground);
  color: #fff;
  padding-block: 26px;
}

.ps-reviewband__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
}

.ps-reviewband__score {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.0625rem;
}

/* -------------------------------------------------------------- thanks */

.ps-thanks {
  text-align: center;
  padding-block: clamp(30px, 6vw, 80px);
}

.ps-thanks .ps-pagehero__title,
.ps-thanks .ps-pagehero__intro {
  margin-inline: auto;
}

.ps-thanks__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--pd-accent);
  color: var(--ps-on-accent);
}

.ps-thanks__icon svg {
  width: 30px;
  height: 30px;
}

/* ------------------------------------------------------------- footer */

.ps-footer {
  background: var(--color-foreground);
  color: rgb(255 255 255 / 0.78);
  padding-block: clamp(48px, 6vw, 72px) 24px;
}

.ps-footer__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ps-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .ps-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  }
}

.ps-footer__blurb {
  margin: 16px 0 22px;
  max-width: 40ch;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ps-footer__label {
  margin: 4px 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ps-highlight);
}

.ps-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.9375rem;
}

.ps-footer a {
  color: rgb(255 255 255 / 0.86);
  text-decoration: none;
}

.ps-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.ps-footer__contact a,
.ps-footer__contact li > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  overflow-wrap: anywhere;
}

.ps-footer__contact svg {
  flex: none;
  color: var(--ps-highlight);
}

.ps-footer .ps-btn--warm {
  color: var(--color-foreground);
}

.ps-footer .ps-btn--warm:hover {
  text-decoration: none;
}

.ps-footer__legal {
  margin: 44px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .ps-btn,
  .ps-card,
  .ps-tile img,
  .ps-tile__arrow,
  .ps-sizenav a {
    transition: none;
  }

  .ps-btn:hover,
  .ps-card:hover,
  .ps-sizenav a:hover {
    transform: none;
  }

  .ps-tile:hover img {
    transform: none;
  }
}
