:root {
  --plum: #7d1152;
  --plum-dark: #5c0d3d;
}

/* prevent CSS grid blowout: grid items default to min-width:auto (content-based),
   which can force tracks wider than their container on narrow screens */
.stat-mini-grid > *, .brand-split-grid > *,
.coop-grid > *, .directions-grid > *, .final-cta-grid-4 > * { min-width: 0; }

.retail-back-btn { padding: 10px 22px; font-size: 0.9rem; white-space: nowrap; }
.nav-actions-group { display: flex; align-items: center; gap: 10px; margin-left: 32px; }
.opt-partner-btn { padding: 12px 24px; white-space: nowrap; animation: pulseGlow 1.8s ease-in-out infinite; }
@media (max-width: 699px) {
  .nav-actions-group { display: none; }
}
@media (max-width: 780px) {
  .retail-back-btn { padding: 6px 10px; font-size: 0.66rem; }
  .opt-partner-btn { padding: 6px 10px; font-size: 0.66rem; }
  .opt-partner-btn .btn-label-full { display: none; }
  .opt-partner-btn .btn-label-short { display: inline; }
  .nav-actions-group { gap: 8px; margin-left: 10px; }
  .nav-links { gap: 6px; }
  .nav-links a { font-size: 0.58rem; }
  .logo-text { font-size: 0.68rem; }
  .nav-left { gap: 10px; }
}
@media (min-width: 781px) and (max-width: 955px) {
  .retail-back-btn { padding: 6px 10px; font-size: 0.64rem; }
  .opt-partner-btn { padding: 6px 10px; font-size: 0.64rem; }
  .opt-partner-btn .btn-label-full { display: none; }
  .opt-partner-btn .btn-label-short { display: inline; }
  .nav-actions-group { gap: 6px; margin-left: 8px; }
  .nav-links { gap: 5px; }
  .nav-links a { font-size: 0.6rem; }
  .logo-text { font-size: 0.7rem; }
  .nav-left { gap: 10px; }
}
@media (min-width: 956px) and (max-width: 1023px) {
  .retail-back-btn { padding: 8px 12px; font-size: 0.74rem; }
  .opt-partner-btn { padding: 8px 12px; font-size: 0.74rem; }
  .opt-partner-btn .btn-label-full { display: none; }
  .opt-partner-btn .btn-label-short { display: inline; }
  .nav-actions-group { gap: 8px; margin-left: 14px; }
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 0.68rem; }
}
@media (min-width: 1024px) and (max-width: 1299px) {
  .retail-back-btn { padding: 8px 14px; font-size: 0.76rem; }
  .opt-partner-btn { padding: 8px 16px; font-size: 0.76rem; }
  .opt-partner-btn .btn-label-full { display: none; }
  .opt-partner-btn .btn-label-short { display: inline; }
  .nav-actions-group { gap: 10px; margin-left: 16px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.7rem; }
  .logo-text { font-size: 0.86rem; }
}
@media (min-width: 1300px) {
  .nav-actions-group {
    position: absolute;
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
    margin-left: 0;
  }
}

/* B2B HERO — full-bleed background photo with left text overlay */
.b2b-hero-full {
  position: relative; padding: 0; aspect-ratio: 2400 / 720; overflow: hidden;
  background: var(--lavender-bg);
}
.b2b-hero-media { position: absolute; inset: 0; }
.b2b-hero-bg-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block; z-index: 0;
  transform: scale(1.1) translateX(10%);
}
.b2b-hero-overlay-content {
  position: absolute; inset: 0; z-index: 1;
  max-width: 50%;
  padding: 4% 3% 4% max(24px, calc((100vw - 1220px) / 2 + 24px));
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(10px, 1.4vw, 18px);
  background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 62%, rgba(255,255,255,0) 100%);
}
.b2b-hero-overlay-content h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.b2b-hero-overlay-content h1 span { color: var(--pink); }
.b2b-hero-sub { font-size: clamp(0.92rem, 1.3vw, 1.15rem); color: var(--ink-soft); max-width: 46ch; }

.checkmarks { display: flex; flex-wrap: wrap; gap: 10px; }
.checkmarks span {
  display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: clamp(0.76rem, 0.95vw, 0.88rem); color: var(--ink);
}
.checkmarks-chips > span {
  background: rgba(255,255,255,0.85); border: 1px solid #f0c9e0; border-radius: 999px;
  padding: 6px 14px 6px 6px;
}
.checkmarks .check-circle {
  width: 24px; height: 24px; border-radius: 50%; background: var(--pink);
  color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.checkmarks .check-circle svg { width: 14px; height: 14px; flex-shrink: 0; }

.stat-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px,1vw,14px); }
.stat-mini {
  background: white; border: 1px solid #f0dde8; border-radius: 16px;
  padding: clamp(10px,1.3vw,18px) clamp(8px,1vw,14px); text-align: center;
}
.stat-mini svg { width: clamp(22px,2.2vw,30px); height: clamp(22px,2.2vw,30px); color: var(--pink); margin: 0 auto 8px; display: block; }
.stat-mini b { display: block; font-size: clamp(0.68rem,0.85vw,0.82rem); font-weight: 800; color: var(--ink); line-height: 1.3; }

.eyebrow-light { color: white; opacity: 0.85; }

/* PRODUCTION UNDER YOUR BRAND — two-column layout, chip-style checkmarks */
.brand-split-section { background: var(--lavender-bg); padding: 72px 0; }
.brand-split-grid { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 40px; align-items: center; }
@media (min-width: 960px) and (max-width: 1360px) {
  .brand-split-grid { grid-template-columns: 1.25fr 1fr; gap: 28px; }
  .brand-checkmarks { gap: 8px; }
  .brand-checkmarks span { font-size: 0.82rem; }
  .brand-checkmarks .check-circle { width: 22px; height: 22px; }
}
.brand-split-text h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 800; margin: 10px 0 14px; line-height: 1.2; }
.brand-split-text h2 span { color: var(--pink); }
.brand-split-text > p { color: var(--ink-soft); margin-bottom: 22px; font-size: 1rem; }
.brand-checkmarks {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 28px;
}
.brand-checkmarks span { font-size: 0.9rem; }
.brand-checkmarks .check-circle { width: 26px; height: 26px; }
.brand-split-image img {
  width: 100%; height: auto; display: block;
  -webkit-mask-image: radial-gradient(ellipse 68% 68% at center, black 35%, transparent 95%);
  mask-image: radial-gradient(ellipse 68% 68% at center, black 35%, transparent 95%);
}

.mockup {
  background: white; border: 1px solid #ecdbe6; box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 14px; text-align: center; position: relative;
}
.mockup span { font-weight: 800; font-size: 0.7rem; color: var(--ink); line-height: 1.2; }
.mockup em { font-style: normal; font-size: 0.68rem; color: var(--ink-soft); margin-top: 4px; }
.mockup-pouch { border-radius: 10px 10px 26px 26px; }
.mockup-jar { border-radius: 16px; }
.mockup-xs { width: 56px; height: 76px; }
.mockup-sm { width: 68px; height: 96px; }
.mockup-md { width: 84px; height: 118px; }
.mockup-lg { width: 100px; height: 148px; }
.mockup-xl { width: 116px; height: 172px; }
.mockup-travel { width: 44px; height: 62px; }

/* POSSIBILITIES / FORMATS */
.format-row { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 24px; }
.format-item { flex: 1; min-width: 110px; text-align: center; position: relative; padding: 0 6px; }
.format-item:not(:last-child)::after {
  content: ''; position: absolute; top: 10%; bottom: 30%; right: -14px; width: 1px;
  background: rgba(0,0,0,0.07);
}
.format-item .mockup { margin: 0 auto 14px; }
.format-photo {
  width: 96px; height: 128px; object-fit: cover; object-position: center;
  margin: 0 auto 14px; display: block; border-radius: 14px;
}
.format-item b { display: block; font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.format-item span { color: var(--ink-soft); font-size: 0.82rem; }
.format-icon { font-size: 2.4rem; margin-bottom: 14px; }
.format-note { text-align: center; color: var(--ink-soft); font-size: 0.95rem; max-width: 56ch; margin: 0 auto; }

/* COOPERATION DIRECTIONS + TECHNOLOGIES — unified two-column section */
.directions-merged { background: var(--lavender-bg); padding: 72px 0; }
.directions-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }

.directions-left h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); font-weight: 800; margin-bottom: 28px; color: var(--ink); }
.coop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.coop-item { display: flex; align-items: center; gap: 12px; font-size: 0.94rem; color: var(--ink); }
.coop-icon { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--pink); }
.coop-icon svg { width: 100%; height: 100%; }

.directions-right {
  position: relative; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(92,13,61,0.95) 0%, rgba(125,17,82,0.88) 45%, rgba(125,17,82,0.62) 100%),
    url('/assets/devcard-granules.jpg');
  background-size: cover, cover;
  background-position: center, center;
  color: white;
  border-radius: 24px; padding: 40px;
}
.directions-right h3 { font-size: 1.4rem; font-weight: 800; margin: 8px 0 12px; }
.directions-right > p { opacity: 0.9; font-size: 0.95rem; line-height: 1.5; margin-bottom: 24px; }
.devcard-items { display: flex; flex-direction: column; gap: 16px; }
.devcard-item { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; font-weight: 600; }
.devcard-item span { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.devcard-item span svg { width: 100%; height: 100%; }

.directions-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.18); }
.directions-cta h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.directions-cta p { opacity: 0.85; font-size: 0.88rem; margin-bottom: 16px; }
.directions-cta .btn { width: 100%; justify-content: center; }

/* FINAL CTA */
.final-cta {
  background: linear-gradient(135deg, var(--plum-dark), var(--plum));
  color: white; padding: 72px 0;
}
.final-cta-grid-4 {
  display: grid; grid-template-columns: 1.1fr 1fr 1.15fr 0.9fr; gap: 40px; align-items: start;
}
.fc-col-title h2 { font-size: 1.75rem; font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.fc-col-title > p { opacity: 0.88; font-size: 0.94rem; line-height: 1.6; }

.perks-icon-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.perks-icon-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.92rem; font-weight: 600; }
.perk-icon {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.perk-icon svg { width: 18px; height: 18px; }

.fc-col-contacts h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.fc-col-contacts .contact-item {
  display: flex; align-items: center; gap: 10px; font-size: 0.9rem; opacity: 0.92; margin-bottom: 14px;
}
.fc-col-contacts .contact-item svg { flex-shrink: 0; opacity: 0.9; }
.fc-tagline { margin-top: 18px; font-weight: 700; font-size: 0.98rem; }

.fc-col-cta h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.fc-col-cta p { opacity: 0.85; font-size: 0.9rem; margin-bottom: 18px; }
.fc-col-cta .btn { white-space: nowrap; }

.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-inner p { font-size: 0.85rem; color: #6b6880; }

/* RESPONSIVE */
@media (max-width: 420px) {
  .b2b-hero-overlay-content h1 { font-size: 2.2rem; }
}
@media (max-width: 699px) {
  .b2b-hero-full { aspect-ratio: unset; }
  .b2b-hero-media { position: relative; }
  .b2b-hero-bg-image { position: static; width: 100%; height: 24vh; min-height: 140px; max-height: 220px; object-position: center 35%; transform: none; }
  .b2b-hero-overlay-content { position: static; max-width: 100%; padding: 24px 22px 28px; background: var(--lavender-bg); }
}
@media (min-width: 700px) and (max-width: 1365px) {
  .b2b-hero-full { aspect-ratio: 3 / 2; min-height: 0; }
  .b2b-hero-overlay-content { max-width: 72%; padding: 4% 3% 4% max(20px, calc((100vw - 1220px) / 2 + 20px)); }
  .b2b-hero-overlay-content h1 { font-size: clamp(1.5rem, 4.2vw, 2.2rem); }
  .b2b-hero-sub { font-size: clamp(0.76rem, 1.6vw, 0.9rem); }
  .checkmarks { gap: 6px; }
  .checkmarks span { font-size: 0.7rem; padding: 5px 10px 5px 5px; }
  .checkmarks .check-circle { width: 18px; height: 18px; }
  .checkmarks .check-circle svg { width: 10px; height: 10px; }
  .stat-mini-grid { gap: 8px; }
  .stat-mini { padding: 8px 6px; }
  .stat-mini b { font-size: 0.62rem; }
  .stat-mini svg { width: 20px; height: 20px; }
  .b2b-hero-bg-image { transform: scale(1.35) translateX(20%); }
}
@media (max-width: 960px) {
  b, strong, h3, h4 { overflow-wrap: break-word; }
  .stat-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-split-grid { grid-template-columns: 1fr; }
  .brand-sub-break { display: none; }
  .brand-split-image { order: -1; }
  .format-item::after { display: none; }
  .coop-grid { grid-template-columns: 1fr; }
  .directions-grid { grid-template-columns: 1fr; }
  .final-cta-grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .format-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; justify-content: unset; }
  .format-item { padding: 0; }
  .coop-grid {
    grid-template-columns: 1fr 1fr; gap: 14px;
  }
  .coop-item {
    background: white; border: 1px solid #f0dde8; border-radius: 16px;
    padding: 16px; align-items: flex-start; gap: 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  }
}

/* PARTNER MODAL */
.partner-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(23,21,35,0.55);
  align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.partner-modal-overlay.open { display: flex; }
.partner-modal {
  position: relative;
  max-width: 460px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  margin: auto;
}
.partner-modal-overlay .partner-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border: none; background: var(--pink-pale);
  border-radius: 50%; font-size: 1.3rem; line-height: 1; color: var(--ink-soft);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.partner-modal-overlay .partner-modal-close:hover { background: var(--pink-light); color: var(--pink-dark); }
.partner-modal h3 { padding-right: 30px; }

@media (min-width: 1300px) and (max-width: 1550px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.85rem; }
  .opt-partner-btn { padding: 12px 20px; }
}
