/* ============================================================================
   Peppertint — case study theme. California cream + cobalt blue + coral.
   Editorial, product-forward, sunny. Scoped to .ptcase.
   ============================================================================ */
.ptcase {
  --pt-cobalt: #1f5fd6;      /* vibrant cobalt blue */
  --pt-cobalt-deep: #163f93;
  --pt-coral: #e8533f;       /* warm coral red */
  --pt-sand: #f3e7cf;        /* warm california sand */
  --pt-cream: #faf4e8;
  --pt-ink: #20242e;
  --pt-text: #5c5648;
  --pt-line: rgba(32,36,46,.12);
  position: relative; overflow: hidden; background: #fff;
  font-family: var(--font-sans); color: var(--pt-text);
}
.ptcase .wrap { position: relative; z-index: 1; }

/* ---- shared type ---- */
.ptcase .ptchapter { display: flex; align-items: baseline; gap: 16px; margin: 0 0 22px; }
.ptcase .ptchapter__no { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem,1.4rem + 2vw,3.2rem);
  line-height: 0.9; color: var(--pt-coral); letter-spacing: -0.03em; }
.ptsec--cobalt .ptchapter__no, .ptsec--coral .ptchapter__no { color: rgba(255,255,255,.5); }
.ptcase .pteyebrow { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--pt-cobalt); margin: 0; padding-top: 8px; }
.ptsec--cobalt .pteyebrow, .ptsec--coral .pteyebrow { color: #fff; }
.ptcase .pth2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem,1.2rem + 2vw,2.8rem);
  line-height: 1.18; letter-spacing: -0.025em; color: var(--pt-ink); margin: 0 0 24px; text-wrap: balance; }
.pth2--on { color: #fff; }
.ptcase__p { font-size: clamp(15.5px,1vw,17px); line-height: 1.95; color: var(--pt-text); margin: 0 0 20px; }
.ptcase__p:last-child { margin-bottom: 0; }
.ptsec--cobalt .ptcase__p, .ptsec--coral .ptcase__p { color: rgba(255,255,255,.86); }
.ptcase .ptcol { max-width: 760px; }

/* sections + spacing */
.ptsec { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); }
.ptcase .pb-gap { padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.ptcase .mt-gap { margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
.ptcase .ptshot, .ptcase [class*="__fig"], .ptcase [class*="__media"] { margin-block: 1rem; }
.ptsec--sand { background: var(--pt-sand); }
.ptsec--cream { background: var(--pt-cream); }
.ptsec--cobalt { background: var(--pt-cobalt); }
.ptsec--coral { background: var(--pt-coral); }

/* ---- Hero ---- */
.pthero { position: relative; overflow: hidden; padding-block: clamp(1.5rem,1rem + 2vw,2.5rem) 0; background: var(--pt-cream); }
.ptback { appearance: none; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--pt-text); margin-bottom: 1.6rem; transition: color var(--dur-fast); }
.ptback:hover { color: var(--pt-cobalt); }
.ptback [data-lucide] { width: 16px; height: 16px; }
.pthero__logo { display: block; width: auto; height: clamp(56px, 7vw, 84px); border-radius: 12px;
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-md); }
.pthero__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.ptchip { display: inline-flex; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px; color: #fff; background: var(--pt-coral); }
.pthero__cat { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--pt-cobalt); }
.pthero__year { font-family: var(--font-mono); font-size: 13px; color: var(--pt-text); }
.pthero__lede { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem,1.4rem + 3.4vw,4.4rem);
  line-height: 1.08; letter-spacing: -0.035em; color: var(--pt-ink); margin: 0; max-width: 1000px; text-wrap: balance; }
.pthero__sub { font-size: clamp(15.5px,1vw,17.5px); line-height: 1.75; color: var(--pt-text); margin: 28px 0 0; max-width: 720px; }
.pthero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pttag { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--pt-cobalt);
  background: #fff; border: 1px solid var(--pt-line); border-radius: 999px; padding: 6px 12px; }
.pthero__media { margin-top: clamp(2.5rem,2rem + 3vw,4rem); border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; overflow: hidden; }
.pthero__media img { width: 100%; height: auto; display: block; }

/* headline stat band */
.ptheadstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: clamp(2.5rem,2rem + 3vw,4rem);
  background: var(--pt-line); border: 1px solid var(--pt-line); border-radius: var(--radius-xl); overflow: hidden; }
.ptheadstat { background: var(--pt-cream); padding: clamp(22px,2.4vw,34px) 20px; text-align: center; }
.ptheadstat__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem,1.3rem + 2vw,3rem);
  line-height: 1; letter-spacing: -0.02em; color: var(--pt-cobalt); }
.ptheadstat__label { display: block; font-size: 12.5px; color: var(--pt-text); margin-top: 10px; font-family: var(--font-mono); letter-spacing: .04em; }

/* ---- generic figure ---- */
.ptshot { border-radius: var(--radius-xl); overflow: hidden; background: #fff;
  box-shadow: 0 28px 60px -34px rgba(32,36,46,.4); border: 1px solid var(--pt-line); }
.ptshot img { width: 100%; height: auto; display: block; }
.ptshot__cap { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--pt-text);
  padding: 14px 18px; background: var(--pt-cream); border-top: 1px solid var(--pt-line); }
.ptshot__cap::before { content: ""; width: 22px; height: 1px; background: var(--pt-coral); flex: none; }

/* image gallery */
.ptgallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.ptgallery .ptshot { margin: 0; }
.ptgallery--2 { grid-template-columns: 1fr 1fr; }

/* ---- Challenge question ---- */
.ptquestion { margin-top: clamp(2rem,1.5rem + 2vw,3rem); padding: clamp(28px,3vw,48px); background: var(--pt-cobalt);
  border-radius: var(--radius-2xl); }
.ptquestion__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); margin: 0 0 16px; }
.ptquestion__text { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem,1.1rem + 1.8vw,2.4rem);
  line-height: 1.3; color: #fff; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }

/* ---- SKU axes ---- */
.ptaxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(2.5rem,2rem + 3vw,4rem); }
.ptaxis { background: #fff; border: 1px solid var(--pt-line); border-radius: var(--radius-2xl); padding: 30px 28px; }
.ptaxis__ic { width: 52px; height: 52px; border-radius: var(--radius-lg); display: grid; place-items: center;
  background: var(--pt-sand); color: var(--pt-cobalt); margin-bottom: 18px; }
.ptaxis__ic [data-lucide] { width: 25px; height: 25px; }
.ptaxis__t { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--pt-ink); margin: 0 0 16px; }
.ptaxis__items { display: flex; flex-wrap: wrap; gap: 8px; }
.ptaxis__items span { font-family: var(--font-mono); font-size: 12px; color: var(--pt-cobalt); background: var(--pt-cream);
  border: 1px solid var(--pt-line); border-radius: 999px; padding: 6px 12px; }

/* shape data bars */
.ptdata { margin-top: clamp(2.5rem,2rem + 3vw,4rem); background: var(--pt-ink); border-radius: var(--radius-2xl); padding: clamp(28px,3vw,44px); }
.ptdata__head { margin-bottom: 28px; }
.ptdata__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem,1rem + 1vw,1.6rem); color: #fff; margin: 0; }
.ptdata__sub { font-family: var(--font-mono); font-size: 12.5px; color: rgba(255,255,255,.55); margin: 8px 0 0; letter-spacing: .04em; }
.ptbar { display: grid; grid-template-columns: 110px 1fr 90px; gap: 16px; align-items: center; margin-bottom: 16px; }
.ptbar:last-child { margin-bottom: 0; }
.ptbar__name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff; }
.ptbar__track { height: 12px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.ptbar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pt-cobalt), var(--pt-coral)); }
.ptbar__val { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--pt-sand); text-align: right; }

/* ---- SEM table ---- */
.pttable { margin-top: clamp(2rem,1.5rem + 2vw,3rem); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-xl); overflow: hidden; }
.pttable__row { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1fr; gap: 14px; padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,.12); align-items: center; }
.pttable__row:last-child { border-bottom: 0; }
.pttable__row--head { background: rgba(0,0,0,.18); }
.pttable__row--head span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.pttable__row--hl { background: rgba(255,255,255,.12); }
.pttable__c { font-size: 14px; color: rgba(255,255,255,.9); }
.pttable__c--name { font-weight: 600; color: #fff; }
.pttable__c--ctr { font-family: var(--font-mono); font-weight: 700; color: var(--pt-sand); }
.pttable__badge { display: inline-block; margin-left: 8px; font-family: var(--font-mono); font-size: 10px; background: var(--pt-coral); color: #fff; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }

/* ---- stat band ---- */
.ptstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(2rem,1.5rem + 2vw,3rem); }
.ptstat { text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-xl); padding: 30px 16px; }
.ptstat__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem,1.3rem + 1.8vw,2.7rem); line-height: 1; color: #fff; letter-spacing: -0.02em; }
.ptstat__label { display: block; font-size: 12px; color: rgba(255,255,255,.78); margin-top: 10px; font-family: var(--font-mono); letter-spacing: .03em; }

/* ---- results grid ---- */
.ptresgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(2rem,1.5rem + 2vw,3rem); }
.ptres { background: var(--pt-cream); border: 1px solid var(--pt-line); border-radius: var(--radius-lg); padding: 26px 20px; text-align: center; }
.ptres__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem,1.1rem + 1.2vw,2.1rem); color: var(--pt-cobalt); letter-spacing: -0.02em; }
.ptres__label { display: block; font-size: 12px; color: var(--pt-text); margin-top: 8px; font-family: var(--font-mono); }
.ptmarkets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.ptmarket { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--pt-line); border-radius: var(--radius-md); padding: 16px 18px; }
.ptmarket__rank { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--pt-coral); }
.ptmarket__name { font-size: 13.5px; color: var(--pt-ink); font-weight: 500; }
.ptbestsellers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ptbestsellers span { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--pt-ink);
  background: var(--pt-sand); border-radius: 999px; padding: 8px 16px; }
.ptdevice { font-family: var(--font-mono); font-size: 12.5px; color: var(--pt-text); margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.ptdevice [data-lucide] { width: 16px; height: 16px; color: var(--pt-cobalt); flex: none; }
.ptsublabel { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pt-text); margin: clamp(1.5rem,1rem + 2vw,2.5rem) 0 0; }

/* ---- Insight quote ---- */
.ptinsight { max-width: 880px; margin: 0 auto; text-align: center; }
.ptinsight__mark { font-family: var(--font-display); font-size: 80px; line-height: .5; color: rgba(255,255,255,.5); }
.ptinsight__quote { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem,1.2rem + 2vw,2.6rem);
  line-height: 1.32; color: #fff; margin: 8px 0 28px; letter-spacing: -0.02em; text-wrap: balance; }
.ptinsight__body { font-size: clamp(14.5px,1vw,16px); line-height: 1.9; color: rgba(255,255,255,.9); margin: 0 auto; max-width: 680px; }

/* ---- CTA ---- */
.ptcta { position: relative; background: var(--pt-cobalt); padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); text-align: center; overflow: hidden; }
.ptcta__inner { position: relative; z-index: 1; }
.ptcta__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem,1.2rem + 2vw,2.7rem); color: #fff; margin: 0 0 28px; text-wrap: balance; }
.ptbtn { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans);
  font-weight: 600; font-size: 16px; color: var(--pt-cobalt); background: #fff; border: 0; height: 56px; padding: 0 30px;
  border-radius: 999px; box-shadow: 0 16px 32px -14px rgba(0,0,0,.4); transition: all var(--dur-base) var(--ease-out); }
.ptbtn:hover { transform: translateY(-2px); background: var(--pt-sand); }
.ptbtn [data-lucide] { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .ptheadstats, .ptstats, .ptresgrid { grid-template-columns: 1fr 1fr; }
  .ptgallery, .ptgallery--2 { grid-template-columns: 1fr 1fr; }
  .ptaxes { grid-template-columns: 1fr; }
  .ptmarkets { grid-template-columns: 1fr 1fr; }
  .pttable__row { grid-template-columns: 1.6fr 1fr 1fr; }
  .pttable__row .pttable__c--cost { display: none; }
  .ptbar { grid-template-columns: 90px 1fr 70px; }
}
@media (max-width: 520px) {
  .ptheadstats, .ptstats, .ptresgrid, .ptgallery, .ptgallery--2, .ptmarkets { grid-template-columns: 1fr; }
}
