/* Shared improvements for inner pages and end-to-end flows */

body.page-loaded main {
  animation: page-rise-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  color: hsl(var(--clr-primary-coral-dark));
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-visual-strip,
.flow-strip,
.support-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.page-visual-card,
.flow-step-card,
.support-mini-card {
  position: relative;
  padding: 1.25rem;
  border: 1px solid hsla(var(--clr-primary-plum), 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.page-visual-card::after,
.flow-step-card::after {
  content: '';
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: hsla(var(--clr-accent-butter), 0.5);
  filter: blur(8px);
}

.page-visual-icon,
.flow-step-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.8rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 1.3rem;
}

.page-visual-card strong,
.flow-step-card strong,
.support-mini-card strong {
  position: relative;
  z-index: 1;
  display: block;
  color: hsl(var(--clr-primary-plum));
  font-family: var(--font-heading);
}

.page-visual-card span:not(.page-visual-icon),
.flow-step-card span:not(.flow-step-icon),
.support-mini-card span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.25rem;
  color: hsl(var(--clr-text-muted));
  font-size: 0.88rem;
}

.blend-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 3rem 0 1rem;
}

.blend-guide-card {
  padding: 1.4rem;
  border: 1px solid hsla(var(--clr-primary-plum), 0.08);
  border-radius: 26px;
  background: linear-gradient(145deg, #fff, hsla(var(--clr-bg-sand), 0.72));
  box-shadow: var(--shadow-sm);
}

.blend-guide-card img {
  width: 88px;
  height: 88px;
  margin-bottom: 1rem;
  border-radius: 18px;
  object-fit: cover;
}

.blend-guide-card h3 {
  color: hsl(var(--clr-primary-plum));
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.blend-guide-card p {
  color: hsl(var(--clr-text-muted));
  font-size: 0.92rem;
}

.quick-benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.2rem 0 1.6rem;
}

.quick-benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid hsla(var(--clr-primary-plum), 0.08);
  border-radius: 999px;
  background: #fff;
  color: hsl(var(--clr-primary-plum));
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.phase-timeline-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.6rem 0;
}

.phase-timeline-mini span {
  padding: 0.7rem;
  border-radius: 16px;
  background: hsla(var(--clr-accent-sage), 0.18);
  color: hsl(var(--clr-primary-plum));
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0 auto 2rem;
  max-width: 760px;
}

.checkout-progress span {
  padding: 0.75rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: hsl(var(--clr-text-muted));
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.checkout-progress span.active {
  background: hsl(var(--clr-primary-plum));
  color: #fff;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed hsla(var(--clr-primary-plum), 0.22);
  border-radius: 28px;
  background: hsla(var(--clr-bg-sand), 0.7);
  text-align: center;
}

.empty-state h2,
.empty-state h3 {
  color: hsl(var(--clr-primary-plum));
  margin-bottom: 0.6rem;
}

.empty-state p {
  color: hsl(var(--clr-text-muted));
  margin: 0 auto 1.4rem;
  max-width: 520px;
}

.mobile-sticky-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid hsla(var(--clr-primary-plum), 0.08);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-sticky-cta strong {
  display: block;
  color: hsl(var(--clr-primary-plum));
  font-family: var(--font-heading);
  font-size: 0.92rem;
}

.mobile-sticky-cta span {
  color: hsl(var(--clr-text-muted));
  font-size: 0.78rem;
  font-weight: 700;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  align-items: start;
  margin: 3rem 0 5rem;
}

.article-hero-img {
  width: 100%;
  max-height: 430px;
  border-radius: 32px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.article-body {
  padding: 2rem 0;
}

.article-body h2 {
  color: hsl(var(--clr-primary-plum));
  margin: 2rem 0 0.8rem;
}

.article-body p,
.article-body li {
  color: hsl(var(--clr-text-muted));
  font-size: 1rem;
  line-height: 1.75;
}

.article-body ul {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 1rem 1.2rem;
}

.article-sidebar {
  position: sticky;
  top: 110px;
  padding: 1.5rem;
  border-radius: 26px;
}

.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1rem 0;
  color: hsl(var(--clr-text-muted));
  font-size: 0.88rem;
  font-weight: 700;
}

.policy-toc {
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  border: 1px solid hsla(var(--clr-primary-plum), 0.08);
  border-radius: 20px;
  background: #fff;
}

.policy-toc strong {
  display: block;
  margin-bottom: 0.55rem;
  color: hsl(var(--clr-primary-plum));
  font-family: var(--font-heading);
}

.policy-toc a {
  display: inline-flex;
  margin: 0.25rem 0.6rem 0.25rem 0;
  color: hsl(var(--clr-primary-coral-dark));
  font-size: 0.9rem;
  font-weight: 700;
}

.password-toggle-wrap {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: hsl(var(--clr-primary-coral-dark));
  font-weight: 800;
  cursor: pointer;
}

@keyframes page-rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .page-visual-strip,
  .flow-strip,
  .support-strip,
  .blend-guide-grid,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .phase-timeline-mini,
  .checkout-progress {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  body.has-mobile-sticky {
    padding-bottom: 92px;
  }

  .mobile-sticky-cta {
    display: flex;
  }
}

.cookie-consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 110;
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid hsla(var(--clr-primary-plum), 0.08);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.95);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-consent-banner.active {
  display: flex;
}

.cookie-consent-banner p {
  flex: 1;
  margin: 0;
  color: hsl(var(--clr-primary-plum));
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.cookie-consent-banner button {
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent-banner button {
    width: 100%;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: hsl(var(--clr-text-muted));
}

.breadcrumb a {
  color: hsl(var(--clr-text-muted));
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: hsl(var(--clr-primary-coral-dark));
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  color: hsl(var(--clr-border));
}

.breadcrumb li:last-child {
  color: hsl(var(--clr-primary-plum));
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: hsl(var(--clr-primary-plum));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-to-top.active {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

@media print {
  .navbar,
  .mobile-sticky-cta,
  .cookie-consent-banner,
  .cart-drawer,
  .success-actions button,
  .success-actions .btn-text,
  footer {
    display: none !important;
  }

  main {
    margin: 0;
    padding: 0;
  }

  body {
    background: #fff;
  }

  .card-glass {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .success-layout,
  .article-shell,
  .checkout-grid,
  .dashboard-grid {
    display: block !important;
  }

  .success-side-card,
  .article-sidebar,
  .order-summary-box,
  .dashboard-sidebar {
    display: none !important;
  }

  .success-card,
  .order-detail-tile,
  .success-item {
    page-break-inside: avoid;
  }
}
