/* why-nails-cosmetics.css — conversion components for the
 * /why-nails-cosmetics partner landing page.
 *
 * Builds on the shared .about-redesign base (typography, .ab-wrap,
 * .ab-section, .ab-split, .ab-eyebrow, .ab-h2, .ab-intro__*) loaded from
 * about-style-green.css. No hero (the home page owns that) and no
 * decorative photos — structure carries the page.
 *
 * NOTE: legacy global h1/h2 rules set a dark colour, so headings on dark
 * backgrounds set colour explicitly rather than relying on inheritance.
 */

.why-page {
  --why-accent: var(--color-accent);          /* brand green */
  --why-ink: #1a1a1a;
  --why-dark: #141210;
}

/* --- Buttons -------------------------------------------------------- */
.why-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--motion-duration-fast) var(--motion-ease-out),
              background-color var(--motion-duration-fast) var(--motion-ease-out),
              color var(--motion-duration-fast) var(--motion-ease-out);
}

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

/* Button text colours use !important to override the legacy
 * `.entry-content a:not(.mfn-link):not(.button)` colour rule, which is
 * combined in after this file and otherwise forces links to #1b1b1b. */
.why-btn--primary {
  background: var(--why-accent);
  color: #10130a !important;
}

.why-btn--primary:hover {
  background: var(--color-accent-hover);
  color: #10130a !important;
}

/* Outline button for LIGHT backgrounds */
.why-btn--outline {
  border: 1.5px solid rgba(26, 26, 26, 0.25);
  color: var(--why-ink) !important;
}

.why-btn--outline:hover {
  border-color: var(--why-ink);
  background: var(--why-ink);
  color: #fff !important;
}

/* Ghost button for DARK backgrounds */
.why-btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff !important;
}

.why-btn--ghost:hover {
  background: #fff;
  color: var(--why-ink) !important;
}

/* --- Intro (replaces hero) ----------------------------------------- */
.why-intro__inner {
  max-width: 860px;
}

.why-intro__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.why-intro__proof {
  margin-top: var(--space-lg);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--main-color);
}

/* --- Feature heads (centered) -------------------------------------- */
.why-feature__head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 60px);
  text-align: center;
}

/* --- Split body + checklist card ----------------------------------- */
.ab-split .ab-split__body > p:last-child {
  margin-bottom: 0;
}

.why-listcard {
  padding: clamp(28px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--ab-line, rgba(26, 26, 26, 0.1));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.why-listcard__title {
  display: block;
  margin-bottom: var(--space-lg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--main-color);
}

/* --- Checklist ------------------------------------------------------ */
.why-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.why-checklist li {
  position: relative;
  padding-left: 34px;
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--why-ink);
}

.why-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--why-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310130a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* --- Quality badges ------------------------------------------------- */
.why-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.why-badges li {
  padding: var(--space-xl) var(--space-lg);
  background: #fff;
  border: 1px solid var(--ab-line, rgba(26, 26, 26, 0.1));
  border-radius: var(--radius-md);
  border-top: 3px solid var(--why-accent);
}

.why-badges strong {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 17px;
  color: var(--why-ink);
}

.why-badges span {
  font-size: 14px;
  color: var(--ab-muted, #5c5650);
}

/* --- Shipping highlight strip -------------------------------------- */
.why-ship__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.why-ship__figure {
  text-align: center;
  padding: clamp(20px, 3vw, 36px) clamp(28px, 4vw, 56px);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--ab-line, rgba(26, 26, 26, 0.1));
}

.why-ship__num {
  display: block;
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 600;
  line-height: 1;
  color: var(--main-color);
}

.why-ship__unit {
  display: block;
  margin-top: var(--space-xs);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ab-muted, #5c5650);
}

/* --- Range: big number + product chips ----------------------------- */
.why-range {
  text-align: center;
}

.why-range__big {
  color: var(--why-accent);
}

.why-chips {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  max-width: 880px;
}

.why-chips li {
  padding: 10px 20px;
  background: #fff;
  border: 1px solid var(--ab-line, rgba(26, 26, 26, 0.1));
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 500;
  color: var(--why-ink);
}

.why-range .why-btn {
  margin-top: var(--space-xl);
}

/* --- Support card grid --------------------------------------------- */
.why-support__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.why-support__grid li {
  padding: var(--space-xl);
  border: 1px solid var(--ab-line, rgba(26, 26, 26, 0.1));
  border-radius: var(--radius-md);
  background: #fff;
}

.why-support__grid strong {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: 18px;
  color: var(--why-ink);
}

.why-support__grid span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ab-muted, #5c5650);
}

/* --- Closing CTA band (dark) --------------------------------------- */
.why-cta {
  background: var(--why-dark);
  color: #fff;
  padding-block: clamp(64px, 10vw, 128px);
  text-align: center;
}

.why-cta__inner {
  max-width: 760px;
}

.why-cta__eyebrow {
  color: var(--why-accent);
}

.why-cta__title {
  margin: 0 0 var(--space-md);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;            /* override legacy global h2 colour on dark band */
}

.why-cta__lede {
  max-width: 540px;
  margin: 0 auto var(--space-xl);
  font-size: clamp(17px, 1.5vw, 20px);
  color: rgba(255, 255, 255, 0.82);
}

.why-cta__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 980px) {
  .why-badges {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-support__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .why-ship__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .why-badges,
  .why-support__grid {
    grid-template-columns: 1fr;
  }
  .why-intro__ctas .why-btn,
  .why-cta__ctas .why-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
