/* ==========================================================================
   Duckpawl — Brand Stylesheet
   A warm, clean, trustworthy pet brand: happy paws, fresh water, a tidy home.
   Scope: most rules live under `.dp` (the <main> wrapper).
   Signature touches: droplet motif, soft blob shapes, rounded "sticker" cards.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --dp-amber: #F4B740;       /* primary warm accent / CTAs */
  --dp-amber-dark: #E0A21F;  /* hover */
  --dp-teal: #2BB3A3;        /* clean / water secondary */
  --dp-teal-dark: #1E8C80;
  --dp-navy: #1F2A44;        /* headings / dark text */
  --dp-slate: #5B6472;       /* body / secondary text */
  --dp-cream: #FBF7F0;       /* page background */
  --dp-white: #FFFFFF;       /* cards */
  --dp-line: #ECE6DB;        /* hairline borders */
  --dp-mint: #EAF7F4;        /* soft teal tint section bg */
  --dp-sand: #FDF4E3;        /* soft amber tint */
  /* AA-compliant TEXT variants of the brand accents (>=4.5:1 on the tinted/light section
     backgrounds, worst case being --dp-sand). The plain accents above stay reserved for
     decorative fills, borders, hovers and gradients, so darkening text never muddies them. */
  --dp-amber-text: #9A6410;  /* eyebrow + step numbers — ~4.6:1 on sand, ~5.0:1 on white */
  --dp-teal-text: #1A7D6F;   /* in-content links, badges, focus ring — ~4.6:1 on cream/mint */

  /* Typography */
  --dp-font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --dp-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --dp-fs-hero: clamp(2.2rem, 1.45rem + 3.3vw, 3.5rem);
  --dp-fs-h2:   clamp(1.65rem, 1.2rem + 1.9vw, 2.4rem);
  --dp-fs-h3:   clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --dp-fs-lead: clamp(1.05rem, 1rem + 0.45vw, 1.25rem);
  --dp-fs-base: 1.0625rem;
  --dp-fs-sm:   0.875rem;
  --dp-fs-xs:   0.78rem;

  /* Radii — soft, rounded */
  --dp-radius-sm: 12px;
  --dp-radius: 16px;
  --dp-radius-lg: 22px;
  --dp-radius-pill: 999px;

  /* Spacing scale */
  --dp-sp-1: 0.25rem;
  --dp-sp-2: 0.5rem;
  --dp-sp-3: 0.75rem;
  --dp-sp-4: 1rem;
  --dp-sp-5: 1.5rem;
  --dp-sp-6: 2rem;
  --dp-sp-7: 3rem;
  --dp-sp-8: 4rem;

  /* Soft, gentle shadows */
  --dp-shadow-sm: 0 1px 2px rgba(31, 42, 68, 0.05),
                  0 2px 8px rgba(31, 42, 68, 0.05);
  --dp-shadow: 0 6px 18px rgba(31, 42, 68, 0.08),
               0 2px 6px rgba(31, 42, 68, 0.05);
  --dp-shadow-lg: 0 18px 48px rgba(31, 42, 68, 0.14),
                  0 6px 16px rgba(31, 42, 68, 0.07);

  /* Motion */
  --dp-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dp-transition: 180ms var(--dp-ease);
}

/* Smooth in-page scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   2. Base / reset (scoped to .dp)
   -------------------------------------------------------------------------- */
.dp,
.dp *,
.dp *::before,
.dp *::after {
  box-sizing: border-box;
}

.dp {
  font-family: var(--dp-font-body);
  font-size: var(--dp-fs-base);
  line-height: 1.6;
  color: var(--dp-slate);
  background: var(--dp-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.dp img,
.dp svg {
  max-width: 100%;
  height: auto;
}

.dp h1,
.dp h2,
.dp h3,
.dp h4 {
  font-family: var(--dp-font-head);
  color: var(--dp-navy);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}

.dp p {
  margin: 0 0 var(--dp-sp-4);
}

.dp a {
  color: var(--dp-teal-text);
  text-decoration: none;
  transition: color var(--dp-transition);
}

.dp a:hover {
  color: var(--dp-teal-text);
  text-decoration: underline;
}

/* Accessible focus ring */
.dp a:focus-visible,
.dp button:focus-visible,
.dp summary:focus-visible,
.dp input:focus-visible,
.dp select:focus-visible,
.dp .dp-btn:focus-visible {
  outline: 3px solid var(--dp-teal-text);
  outline-offset: 3px;
  border-radius: var(--dp-radius-sm);
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.dp-container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 5vw, 2rem);
}

.dp-section {
  padding-block: clamp(48px, 7vw, 96px);
}

.dp-section--tint {
  background: var(--dp-mint);
}

.dp-section--sand {
  background: var(--dp-sand);
}

/* Eyebrow — small uppercase amber label with a droplet dot motif */
.dp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--dp-font-head);
  font-weight: 600;
  font-size: var(--dp-fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dp-amber-text);
  margin: 0 0 var(--dp-sp-3);
}

.dp-eyebrow::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 0 50% 50% 50%;
  background: var(--dp-amber);
  transform: rotate(45deg);
}

/* Section heading + lead */
.dp-h2 {
  font-size: var(--dp-fs-h2);
  font-weight: 700;
  max-width: 20ch;
}

.dp-lead {
  font-size: var(--dp-fs-lead);
  color: var(--dp-slate);
  max-width: 60ch;
  margin-top: var(--dp-sp-3);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.dp-btn {
  --_btn-bg: var(--dp-white);
  --_btn-fg: var(--dp-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--dp-font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  padding: 0.85em 1.6em;
  border: 2px solid transparent;
  border-radius: var(--dp-radius-pill);
  background: var(--_btn-bg);
  color: var(--_btn-fg);
  cursor: pointer;
  transition: transform var(--dp-transition),
              box-shadow var(--dp-transition),
              background-color var(--dp-transition),
              border-color var(--dp-transition);
}

.dp-btn:hover {
  transform: translateY(-2px);
}

.dp-btn:active {
  transform: translateY(0);
}

.dp-btn--primary {
  --_btn-bg: var(--dp-amber);
  --_btn-fg: var(--dp-navy);
  box-shadow: 0 8px 18px rgba(224, 162, 31, 0.32);
}

.dp-btn--primary:hover {
  --_btn-bg: var(--dp-amber-dark);
  box-shadow: 0 12px 24px rgba(224, 162, 31, 0.38);
}

.dp-btn--ghost {
  --_btn-bg: transparent;
  --_btn-fg: var(--dp-navy);
  border-color: var(--dp-navy);
}

.dp-btn--ghost:hover {
  --_btn-bg: var(--dp-navy);
  --_btn-fg: var(--dp-white);
}

.dp-btn--lg {
  font-size: 1.1rem;
  padding: 1.05em 2em;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.dp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--dp-sand) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 110%, var(--dp-mint) 0%, transparent 50%),
    var(--dp-cream);
  padding-block: clamp(40px, 6vw, 84px);
}

/* Soft signature blob behind the hero media */
.dp-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8%;
  width: min(46vw, 520px);
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(43, 179, 163, 0.16), transparent 70%);
  border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%;
  pointer-events: none;
  z-index: 0;
}

.dp-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.dp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--dp-font-head);
  font-weight: 600;
  font-size: var(--dp-fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dp-amber-text);
  margin: 0 0 var(--dp-sp-4);
}

.dp-hero__eyebrow::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 0 50% 50% 50%;
  background: var(--dp-amber);
  transform: rotate(45deg);
}

.dp-hero__title {
  font-family: var(--dp-font-head);
  font-weight: 700;
  font-size: var(--dp-fs-hero);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--dp-navy);
  margin: 0;
  max-width: 16ch;
}

.dp-hero__subhead {
  font-size: var(--dp-fs-lead);
  color: var(--dp-slate);
  margin: var(--dp-sp-5) 0 0;
  max-width: 48ch;
}

.dp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dp-sp-4);
  margin-top: var(--dp-sp-6);
}

/* Hero CTAs are buttons, not prose links — keep them clean even when Astra's
   "underline content links" setting underlines .entry-content anchors.
   That rule (.ast-single-post .entry-content a) is specificity 0,2,1; this
   selector is 0,3,1 so it wins deterministically, regardless of load order. */
.dp .dp-hero__cta a.dp-btn {
  text-decoration: none;
}

.dp-hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 0.9em;
  margin-top: var(--dp-sp-6);
  font-size: var(--dp-fs-sm);
  color: var(--dp-slate);
}

.dp-hero__trust > * {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

/* Dot separators between inline trust items */
.dp-hero__trust > * + *::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dp-amber);
  margin-right: 0.5em;
}

.dp-hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dp-hero__media img,
.dp-hero__media svg {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(0 24px 40px rgba(31, 42, 68, 0.12));
}

/* --------------------------------------------------------------------------
   6. Problem
   -------------------------------------------------------------------------- */
.dp-problem__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--dp-sp-5);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.dp-pain {
  position: relative;
  background: var(--dp-white);
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius);
  padding: var(--dp-sp-5) var(--dp-sp-5) var(--dp-sp-5) calc(var(--dp-sp-5) + 6px);
  box-shadow: var(--dp-shadow-sm);
  overflow: hidden;
  transition: transform var(--dp-transition), box-shadow var(--dp-transition);
}

/* Subtle amber left accent */
.dp-pain::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(var(--dp-amber), var(--dp-amber-dark));
}

.dp-pain:hover {
  transform: translateY(-3px);
  box-shadow: var(--dp-shadow);
}

.dp-pain__title {
  font-size: var(--dp-fs-h3);
  font-weight: 600;
  color: var(--dp-navy);
  margin: 0 0 var(--dp-sp-2);
}

.dp-pain__body {
  margin: 0;
  font-size: var(--dp-fs-base);
}

/* --------------------------------------------------------------------------
   7. Benefits (tint background)
   -------------------------------------------------------------------------- */
.dp-benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--dp-sp-5);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.dp-benefit {
  background: var(--dp-white);
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius-lg);
  padding: var(--dp-sp-6);
  box-shadow: var(--dp-shadow-sm);
  transition: transform var(--dp-transition), box-shadow var(--dp-transition);
}

.dp-benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--dp-shadow);
}

/* Tint circle behind the icon */
.dp-benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dp-mint);
  color: var(--dp-teal-dark);
  margin-bottom: var(--dp-sp-4);
}

.dp-benefit__icon img,
.dp-benefit__icon svg {
  width: 32px;
  height: 32px;
}

.dp-benefit__title {
  font-size: var(--dp-fs-h3);
  font-weight: 600;
  color: var(--dp-navy);
  margin: 0 0 var(--dp-sp-2);
}

.dp-benefit__body {
  margin: 0;
  font-size: var(--dp-fs-base);
}

/* --------------------------------------------------------------------------
   8. How it works
   -------------------------------------------------------------------------- */
.dp-how__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--dp-sp-6);
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.dp-step {
  position: relative;
  text-align: center;
  padding-inline: var(--dp-sp-3);
}

.dp-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--dp-sp-4);
  border-radius: 50%;
  background: var(--dp-sand);
  border: 2px solid var(--dp-amber);
  color: var(--dp-amber-text);
  font-family: var(--dp-font-head);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.dp-step__title {
  font-size: var(--dp-fs-h3);
  font-weight: 600;
  color: var(--dp-navy);
  margin: 0 0 var(--dp-sp-2);
}

.dp-step__body {
  margin: 0;
  font-size: var(--dp-fs-base);
}

/* --------------------------------------------------------------------------
   9. Buy box (WooCommerce, restyled on-brand)
   -------------------------------------------------------------------------- */
.dp-buy {
  background: var(--dp-sand);
}

.dp-buy__inner {
  max-width: 560px;
  margin-inline: auto;
  background: var(--dp-white);
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--dp-shadow-lg);
  text-align: center;
}

/* Price */
.dp-buy .price {
  display: block;
  font-family: var(--dp-font-head);
  font-weight: 700;
  color: var(--dp-navy);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 var(--dp-sp-5);
}

.dp-buy .price del {
  color: var(--dp-slate);
  font-weight: 500;
  font-size: 0.6em;
  opacity: 0.7;
  margin-right: 0.35em;
}

.dp-buy .price ins {
  text-decoration: none;
}

/* The Woo cart form */
.dp-buy form.cart {
  display: flex;
  flex-direction: column;
  gap: var(--dp-sp-4);
  margin: 0;
  text-align: left;
}

/* Variations table (size <select>) */
.dp-buy .variations {
  width: 100%;
  border-collapse: collapse;
}

.dp-buy .variations td,
.dp-buy .variations th {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}

.dp-buy .variations th {
  font-family: var(--dp-font-head);
  font-weight: 600;
  color: var(--dp-navy);
  font-size: var(--dp-fs-sm);
  margin-bottom: var(--dp-sp-2);
}

.dp-buy .variations td.value {
  margin-bottom: var(--dp-sp-4);
}

.dp-buy .variations select,
.dp-buy select {
  width: 100%;
  font-family: var(--dp-font-body);
  font-size: var(--dp-fs-base);
  color: var(--dp-navy);
  background: var(--dp-white);
  border: 1.5px solid var(--dp-line);
  border-radius: var(--dp-radius-sm);
  padding: 0.75em 1em;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--dp-slate) 50%),
    linear-gradient(135deg, var(--dp-slate) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: border-color var(--dp-transition);
}

.dp-buy .variations select:hover,
.dp-buy select:hover {
  border-color: var(--dp-teal);
}

/* Quantity input */
.dp-buy .quantity {
  display: inline-flex;
  align-items: center;
}

.dp-buy .quantity input.qty,
.dp-buy input[type="number"] {
  width: 84px;
  font-family: var(--dp-font-head);
  font-weight: 600;
  font-size: var(--dp-fs-base);
  text-align: center;
  color: var(--dp-navy);
  background: var(--dp-white);
  border: 1.5px solid var(--dp-line);
  border-radius: var(--dp-radius-sm);
  padding: 0.7em 0.5em;
}

/* Add-to-cart button — made to look like .dp-btn--primary.dp-btn--lg */
.dp-buy .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--dp-font-head);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1;
  text-align: center;
  padding: 1.05em 2em;
  border: 2px solid transparent;
  border-radius: var(--dp-radius-pill);
  background: var(--dp-amber);
  color: var(--dp-navy);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(224, 162, 31, 0.32);
  transition: transform var(--dp-transition),
              box-shadow var(--dp-transition),
              background-color var(--dp-transition);
}

.dp-buy .single_add_to_cart_button:hover {
  background: var(--dp-amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(224, 162, 31, 0.38);
}

.dp-buy .single_add_to_cart_button:active {
  transform: translateY(0);
}

/* WooCommerce stock / meta tidy-up inside the buy box */
.dp-buy .stock,
.dp-buy .product_meta {
  font-size: var(--dp-fs-sm);
  color: var(--dp-slate);
}

/* Trust cues injected under the buy button by duckpawl-storefront.php */
.dp-buy__reassure {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em 1.2em;
  margin: var(--dp-sp-4) 0 0;
  padding: 0;
  font-family: var(--dp-font-head);
  font-weight: 600;
  font-size: var(--dp-fs-sm);
  color: var(--dp-navy);
}

.dp-buy__reassure li {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.dp-buy__reassure li::before {
  content: "\2713"; /* check mark */
  color: var(--dp-teal-text);
  font-weight: 700;
}

.dp-buy__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  margin: var(--dp-sp-3) 0 0;
  font-size: var(--dp-fs-xs);
  color: var(--dp-slate);
}

.dp-buy__secure .dp-buy__lock {
  flex: none;
  color: var(--dp-teal-text);
}

/* --------------------------------------------------------------------------
   10. Social proof / testimonials (tint background)
   -------------------------------------------------------------------------- */
.dp-social__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--dp-sp-5);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.dp-testimonial {
  background: var(--dp-white);
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius-lg);
  padding: var(--dp-sp-6);
  box-shadow: var(--dp-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--dp-sp-3);
}

.dp-testimonial__stars {
  color: var(--dp-amber);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.dp-testimonial__quote {
  font-size: var(--dp-fs-base);
  color: var(--dp-navy);
  margin: 0;
  flex: 1;
}

.dp-testimonial__name {
  font-family: var(--dp-font-head);
  font-weight: 600;
  color: var(--dp-navy);
  margin: 0;
}

.dp-testimonial__detail {
  font-size: var(--dp-fs-sm);
  color: var(--dp-slate);
  margin: 0;
}

/* Action row beneath the testimonials grid — button sits bottom-left. */
.dp-social__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--dp-sp-5);
}

/* --------------------------------------------------------------------------
   11. Sizing table
   -------------------------------------------------------------------------- */
.dp-sizing__wrap {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--dp-radius);
  border: 1px solid var(--dp-line);
  box-shadow: var(--dp-shadow-sm);
}

.dp-sizing__table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  background: var(--dp-white);
  font-size: var(--dp-fs-base);
}

.dp-sizing__table thead th {
  background: var(--dp-navy);
  color: var(--dp-white);
  font-family: var(--dp-font-head);
  font-weight: 600;
  font-size: var(--dp-fs-sm);
  text-align: left;
  padding: 0.9em 1.1em;
  white-space: nowrap;
}

.dp-sizing__table tbody td {
  padding: 0.85em 1.1em;
  border-top: 1px solid var(--dp-line);
  color: var(--dp-slate);
}

.dp-sizing__table tbody tr:nth-child(odd) td {
  background: var(--dp-cream);
}

.dp-sizing__table tbody td:first-child {
  font-weight: 600;
  color: var(--dp-navy);
}

.dp-sizing__foot {
  margin-top: var(--dp-sp-3);
  font-size: var(--dp-fs-xs);
  color: var(--dp-slate);
}

/* --------------------------------------------------------------------------
   12. FAQ (native <details>, custom marker, no JS)
   -------------------------------------------------------------------------- */
.dp-faq__list {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--dp-sp-3);
  max-width: 800px;
}

.dp-faq__item {
  background: var(--dp-white);
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow-sm);
  overflow: hidden;
}

.dp-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dp-sp-4);
  padding: var(--dp-sp-4) var(--dp-sp-5);
  font-family: var(--dp-font-head);
  font-weight: 600;
  font-size: var(--dp-fs-h3);
  color: var(--dp-navy);
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dp-transition);
}

/* Hide default disclosure markers */
.dp-faq__q::-webkit-details-marker {
  display: none;
}

.dp-faq__q::marker {
  content: "";
}

.dp-faq__q:hover {
  background: var(--dp-sand);
}

/* Custom +/- marker */
.dp-faq__q::after {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  position: relative;
  background:
    linear-gradient(var(--dp-teal-dark), var(--dp-teal-dark)),
    linear-gradient(var(--dp-teal-dark), var(--dp-teal-dark));
  background-size: 14px 2px, 2px 14px;
  background-position: center, center;
  background-repeat: no-repeat;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--dp-mint);
  transition: transform var(--dp-transition);
}

.dp-faq__item[open] .dp-faq__q::after {
  /* collapse vertical bar -> minus */
  background-size: 14px 2px, 2px 0;
  transform: rotate(180deg);
}

.dp-faq__a {
  padding: 0 var(--dp-sp-5) var(--dp-sp-5);
  margin: 0;
  color: var(--dp-slate);
}

.dp-faq__a > :last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   13. Guarantee (sand background)
   -------------------------------------------------------------------------- */
.dp-guarantee__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  background: var(--dp-white);
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius-lg);
  padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: var(--dp-shadow);
}

.dp-guarantee__inner .dp-h2 {
  margin-inline: auto;
}

.dp-guarantee__inner p {
  margin-inline: auto;
  max-width: 52ch;
}

.dp-guarantee__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--dp-sp-3);
  margin-top: var(--dp-sp-5);
}

.dp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--dp-font-head);
  font-weight: 600;
  font-size: var(--dp-fs-sm);
  color: var(--dp-teal-text);
  background: var(--dp-mint);
  border: 1px solid rgba(43, 179, 163, 0.25);
  border-radius: var(--dp-radius-pill);
  padding: 0.55em 1.1em;
}

.dp-badge::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 0 50% 50% 50%;
  background: var(--dp-teal);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   14. Final CTA band
   -------------------------------------------------------------------------- */
.dp-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dp-navy), #2A3960);
  color: var(--dp-white);
  padding-block: clamp(56px, 8vw, 104px);
}

/* Soft droplet blob accent */
.dp-cta::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: -120px;
  right: -90px;
  background: radial-gradient(circle at 50% 50%, rgba(244, 183, 64, 0.22), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.dp-cta__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.dp-cta__title {
  font-family: var(--dp-font-head);
  font-weight: 700;
  font-size: var(--dp-fs-h2);
  color: var(--dp-white);
  margin: 0 0 var(--dp-sp-4);
}

.dp-cta__subhead {
  font-size: var(--dp-fs-lead);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--dp-sp-6);
}

/* --------------------------------------------------------------------------
   15. Footer note
   -------------------------------------------------------------------------- */
.dp-footer-note {
  font-size: var(--dp-fs-xs);
  color: var(--dp-slate);
  text-align: center;
  padding-block: var(--dp-sp-6);
}

.dp-footer-note a {
  color: var(--dp-slate);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   16. Responsive — tablet (>= 720px)
   -------------------------------------------------------------------------- */
@media (min-width: 720px) {
  .dp-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .dp-problem__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dp-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dp-social__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dp-how__steps {
    grid-template-columns: repeat(3, 1fr);
    position: relative;
  }

  /* Connecting line between steps on desktop */
  .dp-how__steps::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 16.6%;
    right: 16.6%;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--dp-amber) 0 8px,
      transparent 8px 16px
    );
    z-index: 0;
  }

}

/* --------------------------------------------------------------------------
   17. Responsive — desktop (>= 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .dp-problem__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dp-benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   17b. Review submission modal (rendered in wp_footer, OUTSIDE the .dp wrapper,
        so every rule here is self-contained and reads tokens from :root)
   -------------------------------------------------------------------------- */
.dp-modal-open {
  overflow: hidden;
}

.dp-review-modal[hidden] {
  display: none;
}

.dp-review-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.dp-review-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 42, 68, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: dpReviewFade 0.2s ease;
}

.dp-review-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 30rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--dp-white);
  border-radius: var(--dp-radius-lg);
  box-shadow: 0 24px 60px rgba(31, 42, 68, 0.28);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  animation: dpReviewIn 0.22s ease;
}

@keyframes dpReviewFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes dpReviewIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.dp-review-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--dp-slate);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dp-review-modal__close:hover {
  background: var(--dp-line);
  color: var(--dp-navy);
}

.dp-review-modal__title {
  font-family: var(--dp-font-head);
  font-weight: 700;
  color: var(--dp-navy);
  margin: 0 2rem 0 0;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.dp-review-modal__desc {
  color: var(--dp-slate);
  margin: 0.4rem 0 1rem;
  font-size: 0.95rem;
}

/* Star rating: natural order (1..5), painted by JS via .is-filled — keyboard arrows match
   the visual order and hover preview never fights CSS specificity. */
.dp-stars {
  border: 0;
  margin: 0;
  padding: 0;
}

.dp-stars__legend {
  font-family: var(--dp-font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dp-navy);
  padding: 0;
  margin-bottom: 0.35rem;
}

.dp-stars__row {
  display: inline-flex;
  gap: 0.1em;
}

.dp-stars__row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dp-stars__row label {
  font-size: 2rem;
  line-height: 1;
  color: #d6cdbd;
  cursor: pointer;
  transition: color 0.12s ease;
}

.dp-stars__row label::before {
  content: "\2605";
}

.dp-stars__row label.is-filled {
  color: var(--dp-amber);
}

.dp-stars__row input:focus-visible + label {
  outline: 2px solid var(--dp-navy);
  outline-offset: 3px;
  border-radius: 3px;
}

.dp-stars__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dp-field {
  display: block;
  margin-top: 1rem;
}

.dp-field__label {
  display: block;
  font-family: var(--dp-font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dp-navy);
  margin-bottom: 0.35rem;
}

.dp-field__opt {
  font-weight: 400;
  color: var(--dp-slate);
  font-size: 0.85em;
}

.dp-review-modal input[type="text"],
.dp-review-modal input[type="email"],
.dp-review-modal textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7em 0.85em;
  border: 1px solid var(--dp-line);
  border-radius: 12px;
  background: var(--dp-white);
  color: var(--dp-navy);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dp-review-modal input[type="text"]:focus,
.dp-review-modal input[type="email"]:focus,
.dp-review-modal textarea:focus {
  outline: none;
  border-color: var(--dp-amber);
  box-shadow: 0 0 0 3px rgba(244, 183, 64, 0.28);
}

.dp-review-modal textarea {
  resize: vertical;
  min-height: 5.5rem;
}

/* Honeypot: kept in the layout flow but pushed far offscreen for bots only. */
.dp-review-form__hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.dp-review-form__msg {
  min-height: 1.2em;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.dp-review-form__msg.is-error {
  color: #c0392b;
}

.dp-review-form__msg.is-success {
  color: #1e7e45;
  font-weight: 600;
}

.dp-review-form__actions {
  margin-top: 1.1rem;
}

.dp-review-form__submit {
  width: 100%;
}

.dp-review-form__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .dp-review-modal__overlay,
  .dp-review-modal__dialog {
    animation: none;
  }

  .dp-review-modal *,
  .dp-review-modal *::before {
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   18. Reduced motion safety
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .dp *,
  .dp *::before,
  .dp *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .dp-btn:hover,
  .dp-pain:hover,
  .dp-benefit:hover,
  .dp-buy .single_add_to_cart_button:hover {
    transform: none;
  }
}
