/*
 * File: log-delivery-proof.css
 * Delivery Proof � Tokens, reveal, icon base, hero, stats band.
 * Scoped under body.log-delivery-proof-page
 */

/* -- 1. CSS CUSTOM PROPERTIES -- */
body.log-delivery-proof-page {
  --plum-950: #2d0a35;
  --plum-900: #430f4a;
  --plum-800: #5c1760;
  --plum-700: #7a1f6e;
  --plum-600: #9b2f8a;
  --sage-700: #0c8f5e;
  --sage-600: #12b377;
  --sage-500: #1ddb95;
  --sage-400: #5eeec0;
  --paper: #f7f1ec;
  --paper-50: #fdfaf7;
  --blush-100: #f9e3f1;
  --ink-900: #241620;
  --ink-700: #4a3645;
  --gray-600: #7d6e79;
  --gray-400: #b6a8b2;
  --line: #e8dfe1;
  --white: #fff;
  --gold: #c9931a;
  --gold-lt: #f5c842;
  --shadow-sm: 0 2px 14px rgba(31, 14, 28, 0.07);
  --shadow-md: 0 16px 36px rgba(31, 14, 28, 0.12);
  --shadow-lg: 0 32px 64px rgba(31, 14, 28, 0.22);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Manrope", -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -- 2. ICON BASE -- */
body.log-delivery-proof-page .icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* -- 3. REDUCED MOTION -- */
@media (prefers-reduced-motion: reduce) {
  body.log-delivery-proof-page * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* -- 4. REVEAL ANIMATION -- */
body.log-delivery-proof-page .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

body.log-delivery-proof-page .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

body.log-delivery-proof-page .reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

body.log-delivery-proof-page .reveal-up.in {
  opacity: 1;
  transform: translateY(0);
}

/* -- 5. HERO SECTION -- */
body.log-delivery-proof-page .dp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fdfaf7 0%, #f4ede8 50%, #efe6f0 100%);
  /* WP core's ".is-layout-constrained > *" forces width:var(--theme-block-width)
     (near-viewport px); combined with the 88px side margins this overflowed the
     card ~88px past the right edge (bug82). Same fix as the About Us hero. */
  width: auto !important;
  margin: 20px 88px 0;
  margin-left: 88px !important;
  margin-right: 88px !important;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

/* Glow blobs */
body.log-delivery-proof-page .dp-hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(29, 219, 149, 0.14);
  filter: blur(100px);
  border-radius: 50%;
  top: -180px;
  left: -100px;
  pointer-events: none;
}

body.log-delivery-proof-page .dp-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  background: rgba(122, 31, 110, 0.07);
  filter: blur(90px);
  border-radius: 50%;
  bottom: -100px;
  right: -60px;
  pointer-events: none;
}

/* Decorative rings */
body.log-delivery-proof-page .hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(122, 31, 110, 0.06);
  pointer-events: none;
}

body.log-delivery-proof-page .hr1 {
  width: 560px;
  height: 560px;
  top: -220px;
  right: -160px;
}

body.log-delivery-proof-page .hr2 {
  width: 240px;
  height: 240px;
  bottom: -80px;
  left: 36%;
}

/* Left column */
body.log-delivery-proof-page .hero-left {
  position: relative;
  z-index: 2;
  padding: 56px 52px 56px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.log-delivery-proof-page .hero-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(29, 219, 149, 0.12);
  border: 1px solid rgba(29, 219, 149, 0.35);
  color: var(--sage-600);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 20px;
}

body.log-delivery-proof-page .hero-verified-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-600);
  flex-shrink: 0;
}

body.log-delivery-proof-page .hero-left h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0;
}

body.log-delivery-proof-page .hero-left h1 em {
  font-style: italic;
  color: var(--plum-700);
}

body.log-delivery-proof-page .hero-left p {
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--gray-600);
  max-width: 420px;
  margin-top: 14px;
}

body.log-delivery-proof-page .hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

body.log-delivery-proof-page .h-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--line);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}

body.log-delivery-proof-page .h-chip .icon {
  width: 12px;
  height: 12px;
  color: var(--sage-600);
}

/* Right column */
body.log-delivery-proof-page .hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px 40px 20px;
}

body.log-delivery-proof-page .hero-card-wrap {
  position: relative;
}

/* Floating stat badges */
body.log-delivery-proof-page .hc-float-badge {
  position: absolute;
  background: var(--white);
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(31, 14, 28, 0.2);
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.log-delivery-proof-page .hc-float-badge.f1 {
  top: -18px;
  right: -22px;
}

body.log-delivery-proof-page .hc-float-badge.f2 {
  bottom: 10px;
  left: -30px;
}

body.log-delivery-proof-page .hfb-num {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--plum-700);
}

body.log-delivery-proof-page .hfb-label {
  font-size: 10.5px;
  color: var(--gray-600);
  line-height: 1.3;
}

body.log-delivery-proof-page .hfb-icon {
  font-size: 20px;
}

/* Hero tracking card */
body.log-delivery-proof-page .hero-tracking-card {
  background: var(--white);
  border-radius: 18px;
  padding: 22px 24px;
  width: 340px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

body.log-delivery-proof-page .htc-browser {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

body.log-delivery-proof-page .htc-dots {
  display: flex;
  gap: 5px;
}

body.log-delivery-proof-page .htc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

body.log-delivery-proof-page .htc-dot:nth-child(1) {
  background: #ff5f57;
}

body.log-delivery-proof-page .htc-dot:nth-child(2) {
  background: #febc2e;
}

body.log-delivery-proof-page .htc-dot:nth-child(3) {
  background: #28c840;
}

body.log-delivery-proof-page .htc-url {
  flex: 1;
  background: var(--paper);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 5px;
}

body.log-delivery-proof-page .htc-usps-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

body.log-delivery-proof-page .htc-usps-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #333;
}

body.log-delivery-proof-page .htc-usps-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1a1e5e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
}

body.log-delivery-proof-page .htc-verified {
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 4px;
}

body.log-delivery-proof-page .htc-tn-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 4px;
}

body.log-delivery-proof-page .htc-tn {
  font-size: 13px;
  font-weight: 700;
  color: #1a5fb4;
  margin-bottom: 10px;
  word-break: break-all;
}

body.log-delivery-proof-page .htc-update {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  margin-bottom: 10px;
}

body.log-delivery-proof-page .htc-upd-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

body.log-delivery-proof-page .htc-upd-text {
  font-size: 11.5px;
  color: var(--ink-700);
  line-height: 1.5;
}

body.log-delivery-proof-page .htc-delivered {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 12px;
}

body.log-delivery-proof-page .htc-del-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.log-delivery-proof-page .htc-del-icon .icon {
  width: 11px;
  height: 11px;
  color: #fff;
  stroke-width: 2.5;
}

body.log-delivery-proof-page .htc-del-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #16a34a;
}

body.log-delivery-proof-page .htc-del-type {
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
}

body.log-delivery-proof-page .htc-del-location {
  font-size: 11px;
  color: var(--ink-700);
  margin-top: 3px;
}

body.log-delivery-proof-page .htc-med-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-700);
  margin-top: 10px;
}

/* -- 6. STATS BAND -- */
body.log-delivery-proof-page .stats-band {
  background: linear-gradient(120deg, var(--plum-700), var(--plum-800));
  margin: 18px 88px 0;
  margin-left: 88px !important;
  margin-right: 88px !important;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  width: auto;
}

body.log-delivery-proof-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

body.log-delivery-proof-page .stat-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.3s var(--ease);
}

body.log-delivery-proof-page .stat-cell:last-child {
  border-right: none;
}

body.log-delivery-proof-page .stat-cell:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.log-delivery-proof-page .stat-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}

body.log-delivery-proof-page .stat-cell:hover .stat-icon-wrap {
  transform: scale(1.08) rotate(-6deg);
}

body.log-delivery-proof-page .stat-icon-wrap .icon {
  width: 20px;
  height: 20px;
  color: var(--sage-400);
}

body.log-delivery-proof-page .stat-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

body.log-delivery-proof-page .stat-num span {
  color: var(--sage-400);
}

body.log-delivery-proof-page .stat-desc {
  font-size: 12px;
  color: #e3d6dc;
  margin-top: 2px;
}

/* -- 7. KEYFRAMES -- */
@keyframes dpFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

body.log-delivery-proof-page .hero-card-wrap {
  animation: dpFloat 4s ease-in-out infinite;
}

body.log-delivery-proof-page .hc-float-badge {
  animation: dpFloat 5s ease-in-out infinite;
}

body.log-delivery-proof-page .hc-float-badge.f2 {
  animation-delay: 1.4s;
}