/* ===================== SECTION HEADER ===================== */
.pp-section {
  padding: 64px 80px;
  max-width: 1440px;
  margin: 0 auto;
}

.pp-section-head {
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: center;
}

.pp-section-eyebrow {
  font: 600 12px/1 'Poppins', sans-serif !important;
  letter-spacing: .14em;
  color: #3E5EE2;
  margin-bottom: 14px;
  text-transform: none !important;
}

.pp-section-title {
  font: 600 var(--tw-fs-h2, 44px)/var(--tw-lh-heading, 1.2) 'Poppins', sans-serif !important;
  color: #190750;
  letter-spacing: -.018em;
  margin: 0;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

.pp-section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: #190750;
  opacity: .82;
  margin: 18px auto 0;
  max-width: 920px;
  text-wrap: balance;
}

/* ===================== RETHINK section ===================== */
.pp-rethink {
  background: #fff;
}

/* ===================== OS — anatomy layout ===================== */
.pp-os.pp-os-anatomy {
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(180deg, #fff 0%, #F8F6FE 100%);
  border: 1px solid #DCE2FA;
  border-radius: 32px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(25, 7, 80, .06);
  display: grid;
  grid-template-columns: 0.85fr 1.6fr;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

/* soft brand accent in the bg */
.pp-os.pp-os-anatomy::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 520px;
  height: 586px;
  background: linear-gradient(135deg, rgba(62, 94, 226, .10), rgba(117, 38, 197, .06));
  border-radius: 50% 50% 40% 60% / 50% 60% 40% 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

/* === LEFT: Traditional (compact) === */
.pp-os-old {
  background: #fff;
  border: 1px solid #E5E7EA;
  border-radius: 24px;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  position: relative;
}

.pp-os-old-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/1 'Poppins', sans-serif !important;
  letter-spacing: .14em;
  color: #190750;
  opacity: .7;
  padding: 6px 12px;
  background: #F5EEFC;
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
  text-transform: none !important;
}

.pp-os-old-h {
  font: 600 26px/1.15 'Poppins', sans-serif;
  color: #190750;
  margin: 0 0 18px;
  letter-spacing: -.005em;
}

.pp-os-old-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pp-os-old-list li {
  border-bottom: 1px solid #EDF0FC;
  padding: 12px 0;
  font-size: 15px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: #190750;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, .7, .2, 1);
}

.pp-rethink.is-in .pp-os-old-list li {
  opacity: 1;
  transform: translateX(0);
}

.pp-os-old-list li:last-child {
  border-bottom: 0;
}

.pp-rethink-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #190750;
  opacity: .5;
}

/* SVG x stroke draw animations */
.pp-anim-svg {
  width: 24px;
  height: 24px;
}

.pp-anim-svg polyline,
.pp-anim-svg line {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

.pp-rethink.is-in .pp-anim-svg polyline,
.pp-rethink.is-in .pp-anim-svg line {
  animation: pp-draw-mark .55s cubic-bezier(.22, .7, .2, 1) forwards;
}

.pp-rethink.is-in .pp-os-old-list li:nth-child(1) .pp-anim-svg line:nth-child(1) { animation-delay: 0ms; }
.pp-rethink.is-in .pp-os-old-list li:nth-child(1) .pp-anim-svg line:nth-child(2) { animation-delay: 120ms; }
.pp-rethink.is-in .pp-os-old-list li:nth-child(2) .pp-anim-svg line:nth-child(1) { animation-delay: 70ms; }
.pp-rethink.is-in .pp-os-old-list li:nth-child(2) .pp-anim-svg line:nth-child(2) { animation-delay: 190ms; }
.pp-rethink.is-in .pp-os-old-list li:nth-child(3) .pp-anim-svg line:nth-child(1) { animation-delay: 140ms; }
.pp-rethink.is-in .pp-os-old-list li:nth-child(3) .pp-anim-svg line:nth-child(2) { animation-delay: 260ms; }
.pp-rethink.is-in .pp-os-old-list li:nth-child(4) .pp-anim-svg line:nth-child(1) { animation-delay: 210ms; }
.pp-rethink.is-in .pp-os-old-list li:nth-child(4) .pp-anim-svg line:nth-child(2) { animation-delay: 330ms; }

.pp-rethink.is-in .pp-os-old-list li:nth-child(1) { transition-delay: 0ms; }
.pp-rethink.is-in .pp-os-old-list li:nth-child(2) { transition-delay: 100ms; }
.pp-rethink.is-in .pp-os-old-list li:nth-child(3) { transition-delay: 200ms; }
.pp-rethink.is-in .pp-os-old-list li:nth-child(4) { transition-delay: 300ms; }

@keyframes pp-draw-mark {
  to { stroke-dashoffset: 0; }
}

.pp-os-old-foot {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #E5E7EA;
  font: 500 12px/1.4 'Poppins', sans-serif;
  color: #190750;
  opacity: .6;
  letter-spacing: .04em;
}

/* === RIGHT: Tastewise OS (3-layer architecture stack) === */
.pp-os-new {
  position: relative;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: stretch;
  box-shadow: 0 16px 40px rgba(62, 94, 226, .10);
}

.pp-os-new::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, #3E5EE2 0%, #7526C5 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pp-os-new-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/1 'Poppins', sans-serif !important;
  letter-spacing: .14em;
  color: #fff;
  padding: 6px 12px;
  background: linear-gradient(135deg, #3E5EE2, #7526C5);
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 4px;
  text-transform: none !important;
}

.pp-os-new-h {
  font: 600 26px/1.15 'Poppins', sans-serif;
  color: #190750;
  margin: 0 0 8px;
  letter-spacing: -.005em;
}

.pp-os-new-foot {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed #E5E7EA;
  font: 500 12px/1.4 'Poppins', sans-serif;
  color: #190750;
  opacity: .78;
  letter-spacing: .02em;
}

/* === Stack steps === */
.pp-os-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.pp-os-stack-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 18px 20px;
  background: #FAFBFF;
  border: 1px solid #EDF0FC;
  border-radius: 14px;
  align-items: center;
  transition: background .18s ease, border-color .18s ease, transform .18s cubic-bezier(.2, .8, .2, 1);
}

.pp-os-stack-step:hover {
  background: #fff;
  border-color: #DCE2FA;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(25, 7, 80, .04);
}

.pp-os-stack-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 13px/1 'Poppins', sans-serif;
  letter-spacing: .06em;
  color: #fff;
  background: linear-gradient(135deg, #3E5EE2, #7526C5);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(62, 94, 226, .20);
}

.pp-os-stack-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pp-os-stack-label {
  font: 600 11.5px/1 'Poppins', sans-serif !important;
  letter-spacing: .14em;
  color: #3E5EE2;
  text-transform: none !important;
}

/* Connector between layers */
.pp-os-stack-connector {
  width: 2px;
  height: 18px;
  background: linear-gradient(180deg, #7526C5 0%, #3E5EE2 100%);
  margin: 0 auto;
  opacity: .25;
  border-radius: 2px;
}

/* Active statement under each layer label */
.pp-os-stack-statement {
  font: 500 14.5px/1.5 'Poppins', sans-serif;
  color: #190750;
  opacity: .86;
  margin-top: 4px;
  max-width: 60ch;
}

/* ----- Responsive Rules ----- */
@media (max-width: 991px) {
  .pp-os.pp-os-anatomy {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .pp-section {
    padding: 48px 24px;
  }
}

/* ----- Responsive Rules (extended) ----- */

/* iPad */
@media (max-width: 1024px) {
  .pp-section { padding: 48px 32px; }
  .pp-section-title { font-size: 36px !important; }
  .pp-os.pp-os-anatomy { padding: 24px; gap: 16px; }
}

@media (max-width: 991px) {
  .pp-os.pp-os-anatomy { grid-template-columns: 1fr; padding: 24px; }
  .pp-section { padding: 48px 24px; }
}

/* Mobile */
@media (max-width: 767px) {
  .pp-section { padding: 36px 16px; }
  .pp-section-title { font-size: 26px !important; letter-spacing: -.01em; }
  .pp-section-sub { font-size: 15px; margin-top: 12px; }
  .pp-section-head { margin-bottom: 28px; }
  .pp-os.pp-os-anatomy { padding: 16px; gap: 14px; border-radius: 20px; }
  .pp-os-old { padding: 20px 18px; border-radius: 16px; }
  .pp-os-new { padding: 20px 18px; border-radius: 16px; }
  .pp-os-old-h, .pp-os-new-h { font-size: 20px; }
  .pp-os-stack-step { grid-template-columns: 36px 1fr; gap: 12px; padding: 14px; border-radius: 10px; }
  .pp-os-stack-num { width: 36px; height: 36px; border-radius: 8px; font-size: 12px; }
  .pp-os-stack-statement { font-size: 13.5px; }
}
