/**
 * Delivery / Process page — Ban Teck Han Apple shell.
 * Journey timeline (not a flat 4-card grid).
 */

body.bth-apple-process {
  --bth-process-ink: #1d1d1f;
  --bth-process-muted: #6e6e73;
  --bth-process-soft: #86868b;
  --bth-process-red: #b91c1c;
  --bth-process-red-deep: #991b1b;
  --bth-process-line: rgba(185, 28, 28, 0.22);
  --bth-process-paper: #f3f1ee;
  --bth-process-wash: #ebe8e3;
  color: var(--bth-process-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(185, 28, 28, 0.09), transparent 58%),
    radial-gradient(900px 480px at 92% 8%, rgba(29, 29, 31, 0.05), transparent 55%),
    linear-gradient(180deg, #f7f6f4 0%, #fff 42%, #f7f6f4 100%);
}

.bth-process-main {
  position: relative;
  overflow: clip;
  color: var(--bth-process-ink);
  background: transparent;
}

.bth-process-main::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(72vh, 640px);
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.85), transparent 72%),
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 11px,
      rgba(29, 29, 31, 0.018) 11px,
      rgba(29, 29, 31, 0.018) 12px
    );
  mask-image: linear-gradient(180deg, #000 35%, transparent);
}

.bth-process-shell {
  position: relative;
  z-index: 1;
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 52px) 0 clamp(72px, 9vw, 112px);
}

/* —— Hero —— */
.bth-process-hero {
  position: relative;
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  margin: 0 0 clamp(48px, 7vw, 72px);
  padding: clamp(8px, 1.5vw, 12px) 0 clamp(8px, 2vw, 16px);
}

.bth-process-hero__copy {
  max-width: 640px;
}

.bth-process-eyebrow {
  margin: 0 0 12px;
  color: var(--bth-process-red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bth-process-title {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.bth-process-lead {
  margin: 16px 0 0;
  max-width: 540px;
  color: var(--bth-process-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}

.bth-process-route {
  position: relative;
  width: min(100%, 420px);
  height: 72px;
  margin-top: 8px;
  color: var(--bth-process-red);
}

.bth-process-route svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bth-process-route__path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  opacity: 0.55;
  animation: bth-process-dash 18s linear infinite;
}

.bth-process-route__solid {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: bth-process-draw 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.bth-process-route__dot {
  fill: currentColor;
  transform-origin: center;
  animation: bth-process-pulse 2.4s ease-in-out infinite;
}

.bth-process-route__dot--end {
  animation-delay: 0.6s;
}

@keyframes bth-process-dash {
  to {
    stroke-dashoffset: -360;
  }
}

@keyframes bth-process-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes bth-process-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.55;
  }
}

/* —— Journey timeline —— */
.bth-process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bth-process-step {
  --reveal-delay: 0s;
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: stretch;
  padding: 0 0 clamp(28px, 4vw, 40px);
}

.bth-process-step:last-child {
  padding-bottom: 0;
}

.bth-process-step__rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bth-process-step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(185, 28, 28, 0.28);
  color: var(--bth-process-red);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 28px rgba(185, 28, 28, 0.1);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.bth-process-step:hover .bth-process-step__num,
.bth-process-step:focus-within .bth-process-step__num {
  background: var(--bth-process-red);
  border-color: var(--bth-process-red);
  color: #fff;
  transform: scale(1.06);
}

.bth-process-step__rail::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(185, 28, 28, 0.35) 0%,
    rgba(185, 28, 28, 0.12) 55%,
    rgba(185, 28, 28, 0.04) 100%
  );
}

.bth-process-step:last-child .bth-process-step__rail::after {
  display: none;
}

.bth-process-step__body {
  position: relative;
  padding: clamp(20px, 2.8vw, 28px) clamp(20px, 3vw, 32px);
  border-radius: 22px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, var(--bth-process-paper) 100%);
  border: 1px solid rgba(29, 29, 31, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 44px rgba(29, 29, 31, 0.05);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.bth-process-step__body::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(180deg, var(--bth-process-red), rgba(185, 28, 28, 0.15));
  opacity: 0.85;
}

.bth-process-step:hover .bth-process-step__body,
.bth-process-step:focus-within .bth-process-step__body {
  transform: translateY(-3px);
  border-color: rgba(185, 28, 28, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 22px 50px rgba(29, 29, 31, 0.08);
}

.bth-process-step__top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.bth-process-step__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(185, 28, 28, 0.08);
  color: var(--bth-process-red);
  transition: background 0.25s ease, color 0.25s ease;
}

.bth-process-step:hover .bth-process-step__icon,
.bth-process-step:focus-within .bth-process-step__icon {
  background: var(--bth-process-red);
  color: #fff;
}

.bth-process-step__icon svg {
  width: 24px;
  height: 24px;
}

.bth-process-step__label {
  margin: 2px 0 6px;
  color: var(--bth-process-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bth-process-step__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.bth-process-step__text {
  margin: 0;
  max-width: 52ch;
  color: var(--bth-process-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* —— Assurance strip —— */
.bth-process-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 18px;
  align-items: start;
  margin: clamp(36px, 5vw, 52px) 0 0;
  padding: clamp(18px, 2.5vw, 24px) clamp(20px, 3vw, 28px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 29, 31, 0.06);
  backdrop-filter: blur(8px);
}

.bth-process-note__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bth-process-wash);
  color: var(--bth-process-ink);
}

.bth-process-note__mark svg {
  width: 20px;
  height: 20px;
}

.bth-process-note__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bth-process-note__text {
  margin: 0;
  color: var(--bth-process-muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* —— CTA —— */
.bth-process-cta {
  position: relative;
  overflow: hidden;
  margin-top: clamp(36px, 5vw, 48px);
  padding: clamp(32px, 4.5vw, 44px) clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(600px 280px at 88% 0%, rgba(185, 28, 28, 0.38), transparent 60%),
    radial-gradient(500px 240px at 8% 100%, rgba(255, 255, 255, 0.1), transparent 55%),
    linear-gradient(145deg, #141416 0%, #1d1d1f 48%, #2a1212 100%);
  color: #fff;
  text-align: left;
}

.bth-process-cta::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.bth-process-cta__title {
  position: relative;
  margin: 0;
  max-width: 16ch;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.bth-process-cta__lead {
  position: relative;
  margin: 12px 0 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.55;
}

.bth-process-cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.bth-process-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 13px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bth-process-cta__btn:hover,
.bth-process-cta__btn:focus-visible {
  transform: translateY(-1px);
}

.bth-process-cta__btn--primary {
  background: var(--bth-process-red);
  color: #fff;
}

.bth-process-cta__btn--primary:hover,
.bth-process-cta__btn--primary:focus-visible {
  background: var(--bth-process-red-deep);
  color: #fff;
}

.bth-process-cta__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: transparent;
}

.bth-process-cta__btn--ghost:hover,
.bth-process-cta__btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .bth-process-route__path,
  .bth-process-route__solid,
  .bth-process-route__dot {
    animation: none !important;
  }

  .bth-process-route__solid {
    stroke-dashoffset: 0;
  }

  .bth-process-step__body,
  .bth-process-step__num,
  .bth-process-cta__btn {
    transition: none !important;
  }

  .bth-process-step:hover .bth-process-step__body {
    transform: none;
  }
}

@media (max-width: 720px) {
  .bth-process-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .bth-process-step__num {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .bth-process-step__rail::after {
    top: 40px;
  }

  .bth-process-step__top {
    flex-direction: column;
    gap: 12px;
  }

  .bth-process-note {
    grid-template-columns: 1fr;
  }

  .bth-process-cta {
    text-align: left;
  }
}
