/* ==========================================================================
   DPP REDESIGN — "THE FRANK CO" (on-brand)
   Built directly from FrankCo_Brand_Guidelines_FINAL_FLAT.pdf:
   Cream background, Espresso text (never black), Flame as the primary
   accent/CTA/dot, Fuchsia reserved for The Chain sub-brand moments
   (digital link, journey/map, "Powered by"), Sage for sustainability-
   specific callouts only, Petal/Blush for soft card fills, Poppins
   across the type scale exactly as specified in the guide.
   The Economic operator and Authority tiers are rendered as visibly
   locked: their content is blurred behind a frosted panel, per request.
   CSS ONLY — no HTML has been changed. Load this AFTER any inline
   <style> blocks already in the markup; selectors carry extra
   specificity on purpose so they win the cascade either way.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;800&display=swap');

:root{
  /* -- primary -- */
  --cream:     #FFFFFF;
  --espresso:  #000000;
  --flame:     #E84A1A;
  --fuchsia:   #C4336E;

  /* -- secondary -- */
  --petal:     #F4D0E0;
  --blush:     #F2C4B8;
  --sage:      #C8D0B8;
  --mid:       #888888;
  --border:    #F0F0F0;

  /* -- derived tints (kept within palette family, not new hues) -- */
  --sage-deep:   #A9B490;
  --flame-tint:  #FCE4DA;
  --fuchsia-tint:#F6DDE7;

  --font: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

.app-wrapper.dpp-v2{
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.app-wrapper.dpp-v2 *{ box-sizing: border-box; }

/* Type scale, straight from the guide */
.app-wrapper.dpp-v2 h2{
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  color: var(--espresso);
  margin: 0 0 .4em;
  line-height: 1.25;
}
.app-wrapper.dpp-v2 h3{
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--espresso);
  margin: 0 0 .5em;
}
.app-wrapper.dpp-v2 p{ margin: 0 0 .85em; color: var(--espresso); }
.app-wrapper.dpp-v2 strong{ color: var(--espresso); font-weight: 600; }
.app-wrapper.dpp-v2 a{ color: var(--flame); }

#auto-load-screen p{
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  text-align: center;
  color: var(--mid);
  padding: 3rem 1rem;
}

/* ---------- header ---------- */
header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
header .logo{
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
header .logo::after{
  content: '.';
  color: var(--flame);
  font-weight: 800;
}
header .powered{
  font-family: var(--font);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fuchsia);
}

/* ---------- hero ---------- */
.hero{
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--espresso);
  /* full-bleed background, content still lines up with the rest of the
     page's 960px column — no wrapper div needed, the inline padding is
     just clamped so it never exceeds that width */
  padding-block: 2.5rem 2.75rem;
  padding-inline: max(1.5rem, calc((100% - 960px) / 2));
}
.hero-image{ margin: 0 0 1.75rem; }
.slider-wrapper{ border-radius: 18px; overflow: hidden; background: var(--blush); }
.slide-container{ display: none; }
.slide-container.active{ display: block; }
.slide-container img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.hero-title{
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.85rem);
  color: var(--cream);
}
.hero-sub{
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(250, 240, 235, 0.72);
  max-width: 50ch;
  margin-top: .5rem;
}
.hero-divider{
  height: 3px;
  border-radius: 999px;
  background: var(--flame);
  width: 56px;
  margin: 1.5rem 0;
}
.chip-row{ display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.1rem; }
.chip{
  font-family: var(--font);
  font-weight: 300;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mid);
  background: #fff;
  border: 1px solid var(--border);
  padding: .5rem .8rem;
  border-radius: 10px;
}
.chip b{
  display: block;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--espresso);
  margin-top: .15rem;
}
.date-row{ display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.date-pill{
  font-weight: 500;
  font-size: .72rem;
  color: var(--espresso);
  background: var(--petal);
  padding: .35rem .8rem;
  border-radius: 999px;
}
.link-line{ display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tag{
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--fuchsia);
  padding: .25rem .6rem;
  border-radius: 999px;
}
.digital-link-display, .mono{ font-family: var(--font); font-weight: 400; font-size: .82rem; color: var(--petal); }
.batch-row.dpp-batch-tags{ display: flex; flex-wrap: wrap; gap: .45rem; }
.batch-pill{
  font-weight: 500;
  font-size: .72rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--mid);
  padding: .3rem .75rem;
  border-radius: 999px;
}
.batch-pill.active{ background: var(--fuchsia); border-color: var(--fuchsia); color: #fff; }

/* ---------- tier nav ---------- */
.tier-nav{
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #000000;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  overflow-x: auto;
}
.tier-btn{
  font-family: var(--font);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--mid);
  background: #fff;
  border: 1px solid var(--border);
  padding: .5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex; align-items: center; gap: .4rem;
  white-space: nowrap;
}
.tier-btn.active-public{ background: var(--flame); border-color: var(--flame); color: #fff; }
.tier-nav-note{
  margin-left: auto;
  font-weight: 300;
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--mid);
  white-space: nowrap;
  padding-left: .75rem;
}

/* ---------- sections ---------- */
.section{ max-width: 960px; margin: 0 auto; padding: 3rem 1.5rem; }
.section.on-cream{ background: transparent; }
.section.on-rose{ background: var(--petal); max-width: none; }
.section.on-rose > *{ max-width: 900px; margin-left: auto; margin-right: auto; }
.section-head{ margin-bottom: 1.75rem; }
.eyebrow{
  display: inline-block;
  font-family: var(--font);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: .6rem;
}
.desc{ max-width: 62ch; color: var(--mid); }

.grid-2{ display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-3{ display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px){
  .grid-2{ grid-template-columns: 1fr 1fr; }
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------- material composition (sustainability = Sage) ---------- */
.mat-block.material-index{ padding: 1rem 0; border-bottom: 1px solid var(--border); }
.mat-block.material-index:first-child{ padding-top: 0; }
.mat-title{ font-weight: 600; font-size: .92rem; color: var(--espresso); margin-bottom: .55rem; }
.bar-track.material-bar{
  height: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.bar-fill.material-bar-fill{
  height: 100%;
  border-radius: 999px;
  background: var(--sage-deep);
}
.read-more-btn{
  margin-top: .55rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: .76rem;
  color: var(--flame);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.material-description{
  margin-top: .65rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border-radius: 14px;
  border-left: 3px solid var(--sage-deep);
  font-size: .88rem;
  color: var(--mid);
}
.material-description p{ margin: 0 0 .6em; color: var(--mid); }
.material-description strong{ color: var(--espresso); }

.headline-callout{
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
}
.headline-callout .num{
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 2.4rem;
  color: var(--sage-deep);
  flex-shrink: 0;
}
.headline-callout .label{ font-size: .88rem; color: var(--mid); max-width: 40ch; }

/* ---------- cards (Petal/Blush per guide: card backgrounds, soft fills) ---------- */
.card{ background: var(--blush); border-radius: 16px; padding: 1.35rem 1.5rem; }
.card-label{
  font-weight: 500;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--espresso);
  opacity: .6;
  margin-bottom: .4rem;
}
.card-value{ font-weight: 700; font-size: 1.1rem; color: var(--espresso); margin-bottom: .3rem; }
.card-note{ font-size: .84rem; color: var(--mid); }
.card-note p{ margin: 0 0 .6em; color: var(--mid); }
.icon-row-card{ display: flex; gap: 1rem; align-items: flex-start; }
.icon-circ{
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--flame); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700;
}

/* Carbon / water / EIM sections sit on-rose (Petal) per template — give their
   cards a plain white face so they read as data against the section tint */
.section.on-rose .card{ background: #fff; }

/* ---------- batches / journey (The Chain = Fuchsia) ---------- */
.dpp-batch-order-section .container{ padding: 0; }
.text-muted.small{ font-weight: 300 !important; letter-spacing: .02em; font-size: .82rem !important; color: var(--mid) !important; }
.dpp-batch-tabs .dpp-batch-tab{
  font-family: var(--font);
  font-weight: 500;
  font-size: .76rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--espresso);
  padding: .5rem 1.1rem;
  border-radius: 999px;
}
.dpp-batch-tabs .dpp-batch-tab.active{ background: var(--fuchsia); border-color: var(--fuchsia); color: #fff; }
.journey-section .supply-chain-map{ border-radius: 18px; overflow: hidden; }
.supply-tabs .tab-menu{
  display: flex; gap: .5rem; flex-wrap: wrap; list-style: none; margin: 0 0 1.4rem; padding: 0;
}
.supply-tabs .tab-menu li{
  font-family: var(--font);
  font-weight: 500;
  font-size: .8rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--mid);
  cursor: pointer;
}
.supply-tabs .tab-menu li.active{ background: var(--fuchsia); border-color: var(--fuchsia); color: #fff; }
.supply-node.tier2{ background: transparent; border-radius: 14px; padding: 1.1rem 1.25rem; }

/* ---------- care & repair ---------- */
.dpp-cr{ background: var(--petal); padding: 3rem 1.5rem; }
.dpp-cr__inner{ max-width: 900px; margin: 0 auto; }
.dpp-cr__head{ margin-bottom: 2rem; }
.dpp-cr__eyebrow{
  font-family: var(--font); font-weight: 500; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--flame); margin: 0 0 .6rem; display: block;
}
.dpp-cr__title{ font-family: var(--font); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.5rem,2.5vw,2.1rem); margin: 0 0 .5rem; color: var(--espresso); }
.dpp-cr__desc{ max-width: 62ch; color: var(--mid); }
.dpp-cr__stack{ display: grid; gap: 1.25rem; }
.dpp-cr__card{ background: #fff; border-radius: 18px; padding: 1.85rem; }
.dpp-cr__badge{
  display: inline-block; font-family: var(--font); font-weight: 600; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--flame); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.dpp-cr__card-title{ font-weight: 700; font-size: 1.25rem; margin: 0 0 .3rem; color: var(--espresso); }
.dpp-cr__lead, .dpp-cr__subtitle{ font-weight: 300; color: var(--mid); font-size: .9rem; }
.dpp-cr__icons{ display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 1.25rem 0; }
.dpp-cr__icon{ display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 78px; text-align: center; }
.dpp-cr__icon-mark{ width: 36px; height: 36px; color: var(--flame); background: var(--flame-tint); border-radius: 50%; padding: 7px; }
.dpp-cr__icon-mark svg{ width: 100%; height: 100%; }
.dpp-cr__icon-label{ font-weight: 400; font-size: .68rem; color: var(--mid); line-height: 1.3; }
.dpp-cr__bullets{ list-style: none; margin: 1rem 0 0; padding: 0; }
.dpp-cr__bullets li{ padding: .55rem 0; font-size: .88rem; color: var(--mid); border-top: 1px solid var(--border); }
.dpp-cr__bullets li strong{ color: var(--espresso); }
.dpp-cr__steps{ margin-top: 1rem; display: grid; gap: 1.1rem; }
.dpp-cr__step-head{ display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.dpp-cr__step-num{
  font-family: var(--font); font-weight: 700; font-size: .78rem; width: 24px; height: 24px; border-radius: 50%;
  background: var(--espresso); color: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dpp-cr__step-title{ font-weight: 600; font-size: .95rem; margin: 0; color: var(--espresso); }
.dpp-cr__step-body{ font-size: .87rem; color: var(--mid); margin: 0; }
.dpp-cr .dpp-cr__cta{
  margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  background: var(--flame-tint); border-radius: 18px; padding: 1.3rem;
}
.dpp-cr__cta-title{ font-weight: 700; margin: 0; color: var(--espresso); }
.dpp-cr__cta-text{ font-size: .85rem; color: var(--mid); margin: .2rem 0 0; }
.dpp-cr__cta-btn{
  font-family: var(--font); font-weight: 600; font-size: .8rem; letter-spacing: .02em;
  background: var(--flame); color: #fff; border: none; border-radius: 999px; padding: .7rem 1.3rem; cursor: pointer;
}
.dpp-cr .dpp-cr__cta-status{ font-weight: 300; color: var(--mid) !important; font-size: .82rem !important; }
.dpp-cr .dpp-cr__cta-status[data-tone="error"]{ color: var(--flame) !important; }
.dpp-cr .dpp-cr__nearby-item{ background: #fff !important; border-radius: 12px !important; border: 1px solid var(--border) !important; }
.dpp-cr .dpp-cr__nearby-title{ color: var(--espresso) !important; }
.dpp-cr .dpp-cr__nearby-link{ color: var(--flame) !important; }
.dpp-cr__rich.dpp-cr__eol p{ font-size: .9rem; color: var(--mid); }
.dpp-cr__rich.dpp-cr__eol strong{ color: var(--espresso); }

/* ---------- learn more / audit ---------- */
.learn-more{
  font-family: var(--font); font-weight: 500; font-size: .82rem; color: var(--flame); cursor: pointer; display: inline-block;
}
#audit-info{ margin-top: 1rem; padding: 1.4rem; background: #fff; border-radius: 16px; }
#audit-info h2{ font-size: 1.2rem; }

/* ---------- locked tiers — visibly gated, per request ---------- */
.locked-section{
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
}
.locked-head{ margin-bottom: 1.5rem; max-width: 68ch; }
.locked-head .eyebrow{ color: var(--fuchsia); }
.lock-badge{
  display: inline-block;
  font-family: var(--font); font-weight: 600; font-size: .74rem; letter-spacing: .06em;
  background: var(--espresso); color: var(--cream); padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.locked-authority .lock-badge{ background: var(--fuchsia); }

/* the actual gated content: blurred and dimmed behind the badge/CTA */
.locked-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  filter: blur(4px);
  opacity: .65;
  pointer-events: none;
  user-select: none;
  transition: filter .25s ease, opacity .25s ease;
}
@media (min-width: 640px){ .locked-grid{ grid-template-columns: 1fr 1fr 1fr; } }
.locked-card{
  background: #fff;
  border-radius: 14px;
  padding: 1.15rem;
}
/* optional: hovering the whole locked section eases the blur slightly,
   enough to signal "there's real data under here" without revealing it */
.locked-section:hover .locked-grid{ filter: blur(3px); opacity: .72; }

.unlock-cta{
  position: relative;
  z-index: 2;
  margin-top: -1.5rem;
  margin-bottom: 1rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  background: rgba(250,240,235,.85);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
}
.unlock-btn, .unlock-authority-btn{
  font-family: var(--font); font-weight: 600; font-size: .8rem; letter-spacing: .02em;
  background: var(--flame); color: #fff !important; padding: .8rem 1.5rem; border-radius: 999px; text-decoration: none; display: inline-block;
}
.unlock-authority-btn{ background: var(--fuchsia); }
.unlock-note{ font-size: .78rem; color: var(--mid); max-width: 38ch; }

/* ---------- footer ---------- */
footer{
  max-width: 960px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem;
}
footer .foot-link{ font-weight: 500; color: var(--fuchsia); margin-bottom: .6rem; }
footer p{ font-size: .84rem; color: var(--mid); }
footer .copy{ font-weight: 300; letter-spacing: .04em; font-size: .74rem; color: var(--mid); opacity: .8; margin-top: 1rem; }

/* ---------- focus / motion ---------- */
.app-wrapper.dpp-v2 :focus-visible{ outline: 2px solid var(--flame); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){
  .app-wrapper.dpp-v2 *{ transition: none !important; scroll-behavior: auto !important; }
  .locked-grid{ filter: blur(4px) !important; opacity: .65 !important; }
}