/* ShipPlus D page (Figma "ShipplusD" 601:1221 desktop, 639:3913 mobile) */

.navy { color: var(--navy); }

/* ---------- Hero ---------- */
.spd-hero {
  min-height: 776px;
  display: flex;
  align-items: center;
  padding: 96px 0;
  background: url("../assets/spd-hero-bg.webp") center / cover no-repeat,
    linear-gradient(180deg, #f2f6fb, #ffffff);
}
.spd-hero-content { max-width: 585px; }
.spd-hero h1 {
  font-size: 56px;
  line-height: 64px;
  font-weight: 700;
  color: var(--navy);
}
.spd-hero h1 .teal { color: #19b5a5; }
.spd-hero-sub {
  margin-top: 16px;
  font-size: 20px;
  line-height: 32px;
  color: var(--ink);
  max-width: 576px;
}
.spd-badges {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.spd-badge {
  width: 162px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(230, 236, 245, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(11, 31, 77, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.spd-badge-big {
  font-size: 31px;
  line-height: 40px;
  font-weight: 700;
  color: var(--navy);
}
.spd-badge-icon { width: 40px; height: 40px; }
.spd-badge-label {
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  color: var(--ink);
}
.spd-hero-cta { margin-top: 32px; padding-bottom: 24px; }
.spd-hero .hero-download { margin-top: 8px; }
.spd-hero .hero-download p {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin-bottom: 8px;
}

/* ---------- Package types ---------- */
.spd-packages {
  padding: 80px 0;
  background: linear-gradient(180deg, #091a41, #01a497);
}
.spd-pkg-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.spd-pkg-card {
  background: #fff;
  border: 1px solid rgba(230, 236, 245, 0.5);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.spd-pkg-card > img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 16px; }
.spd-pkg-card h3 {
  font-size: 25px;
  line-height: 32px;
  font-weight: 700;
  color: var(--ink);
}
.spd-pkg-card p {
  margin-top: 4px;
  font-size: 20px;
  line-height: 32px;
  color: #040b1b;
}

/* ---------- Why shops choose ---------- */
/* NOTE: .spd-whyshop-inner / .spd-whyshop-image / .spd-benefit-grid / .spd-benefit-card
   below are shared with shipplus-hub.html's "Services" section (hub.css) — keep them
   intact; ShipPlus D's own layout uses the dedicated .spd-whyshop-bg overlay further down. */
.spd-whyshop { padding: 80px 0; background: #fff; }
.spd-whyshop .section-head { margin-bottom: 64px; }
.spd-whyshop .section-head h2 { color: var(--ink); }
.spd-whyshop-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.spd-whyshop-image { flex: 1; }
.spd-whyshop-image img {
  width: 100%;
  border-radius: 32px;
}
.spd-benefit-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}
.spd-benefit-card {
  background: #f6f8fe;
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.spd-benefit-card h3 {
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
  color: var(--ink);
  align-self: flex-start;
}
.spd-benefit-card p {
  font-size: 20px;
  line-height: 32px;
  color: var(--ink);
  align-self: flex-start;
}
.spd-benefit-card > img { width: 96px; height: 96px; margin-top: 8px; }

/* ---------- ShipPlus D "why shop" — full-frame photo background ---------- */
/* Figma: section 587:8145 has its own full-bleed image fill (1923x1008);
   title + cards float on top at the same relative position as the design. */
.spd-whyshop { padding: 0; }
.spd-whyshop-bg {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 1923 / 1008;
  background: url("../assets/spd-whyshop-bg.webp") center / cover no-repeat;
  container-type: inline-size;
}
.spd-whyshop-title {
  position: absolute;
  top: 7.94%;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
}
.spd-whyshop-title .navy { color: var(--ink); }
.spd-whyshop-bg .spd-benefit-grid {
  position: absolute;
  left: 52.36%;
  top: 19.05%;
  width: 31%;
  height: 50.2%;
  gap: 3.2% 4%;
}
.spd-whyshop-bg .spd-benefit-card {
  background: rgba(246, 248, 254, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.25cqw, 24px);
  gap: clamp(1px, 0.1cqw, 2px);
}
.spd-whyshop-bg .spd-benefit-card h3 {
  font-size: clamp(13px, 1.05cqw, 20px);
  line-height: clamp(18px, 1.67cqw, 32px);
}
.spd-whyshop-bg .spd-benefit-card p {
  font-size: clamp(12px, 1.05cqw, 20px);
  line-height: clamp(16px, 1.67cqw, 32px);
}
.spd-whyshop-bg .spd-benefit-card > img {
  width: clamp(40px, 5cqw, 96px);
  height: clamp(40px, 5cqw, 96px);
  margin-top: clamp(2px, 0.4cqw, 8px);
}
.spd-whyshop-bg .spd-benefit-card h3,
.spd-whyshop-bg .spd-benefit-card p { align-self: center; text-align: center; }

/* ---------- Steps ---------- */
.spd-steps { padding: 80px 0; background: var(--navy); }
.spd-steps .section-head { margin-bottom: 64px; }
.spd-steps-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.spd-steps-grid::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 6px;
  background: #fff;
}
.spd-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.spd-step-num {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f6f8fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  line-height: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.spd-step h3 {
  font-size: 25px;
  line-height: 32px;
  font-weight: 700;
  color: var(--teal-light);
  margin-bottom: 8px;
}
.spd-step p {
  font-size: 18px;
  line-height: 24px;
  color: #fff;
  max-width: 320px;
}

/* ---------- Comparison ---------- */
.spd-compare {
  padding: 80px 0;
  background: url("../assets/spd-compare-bg.webp") center / cover no-repeat #f6f8fe;
}
.spd-compare .section-head { margin-bottom: 64px; }
.spd-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  gap: 32px;
  justify-content: center;
}
.spd-compare-card { border-radius: 16px; }
.spd-compare-old {
  background: #fff;
  border: 1px solid #ea5455;
  padding: 60px 32px 32px;
}
.spd-compare-badge-old {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 228, 230, 0.6);
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 16px;
}
.spd-compare-badge-old img { width: 20px; height: 20px; }
.spd-compare-old ul,
.spd-compare-new ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  margin: 0;
}
.spd-compare-old li,
.spd-compare-new li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
}
.spd-compare-old li { color: #ea5455; }
.spd-compare-old li img,
.spd-compare-new li img { width: 20px; height: 20px; margin-top: 6px; flex-shrink: 0; }
.spd-compare-new {
  background: var(--white-warm);
  border: 1px solid var(--navy);
  overflow: hidden;
}
.spd-compare-header {
  background: var(--navy);
  padding: 11px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 25px;
  line-height: 32px;
  font-weight: 700;
  color: var(--white-warm);
}
.spd-compare-header img { width: 22px; height: 22px; }
.spd-compare-body { padding: 24px 32px 32px; }
.spd-compare-badge-new {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #6ee7b7;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.spd-compare-badge-new img { width: 18px; height: 18px; }
.spd-compare-new li { color: var(--navy); }

/* ---------- FAQ ---------- */
.spd-faq {
  padding: 80px 0;
  background: linear-gradient(37deg, #091a41, #01a497);
}
.spd-faq .section-head { margin-bottom: 32px; }
.spd-faq-sub { color: #fff; }
.spd-faq-search {
  max-width: 896px;
  margin: 0 auto 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spd-faq-search img { width: 20px; height: 20px; }
.spd-faq-search span {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--white-warm);
}
.spd-faq-list {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.spd-faq-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 181, 168, 0.4);
  border-radius: 16px;
  padding: 26px 32px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.spd-faq-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #00b5a8;
}
.spd-faq-item.open {
  background: rgba(255, 255, 255, 0.09);
  border-color: #00b5a8;
  padding: 28px 32px 32px;
}
.spd-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.spd-faq-q span {
  font-size: 20px;
  line-height: 32px;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s ease;
}
.spd-faq-item.open .spd-faq-q span {
  color: #00b5a8 !important;
}
.spd-faq-q img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.spd-faq-item .faq-icon-minus {
  display: none;
}
.spd-faq-item .faq-icon-plus {
  display: block;
}
.spd-faq-item.open .faq-icon-minus {
  display: block;
}
.spd-faq-item.open .faq-icon-plus {
  display: none;
}
.spd-faq-item .spd-faq-a {
  display: none;
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  cursor: text;
}
.spd-faq-item.open .spd-faq-a {
  display: block;
}
.spd-faq-cta { text-align: center; margin-top: 48px; }

/* ---------- Register CTA ---------- */
.spd-register {
  padding: 80px 0;
  background: linear-gradient(0deg, #091a41, #22598b);
  text-align: center;
}
.spd-register h2 {
  font-size: 39px;
  line-height: 59px;
  font-weight: 700;
  color: #fff;
}
.spd-register p {
  margin: 16px auto 32px;
  max-width: 710px;
  font-size: 20px;
  line-height: 32px;
  color: #fff;
}
.spd-register-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.btn-white-outline {
  background: #fff;
  border: 1px solid var(--teal);
  color: var(--teal);
}
.btn-arrow-teal { width: 20px; height: 20px; }

/* ---------- Mobile (Figma 639:3913, 390px) ---------- */
@media (max-width: 767px) {
  .spd-hero {
    min-height: 0;
    padding: 40px 0;
    background: url("../assets/spd-hero-bg-m.webp") top center / cover no-repeat;
    align-items: flex-start;
  }
  .spd-hero-content { max-width: none; }
  .spd-hero h1 { font-size: 32px; line-height: 40px; }
  .spd-hero-sub { margin-top: 16px; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--slate); }
  .spd-hero-cta { margin-top: 24px; padding-bottom: 0; }
  .spd-hero-cta .btn { width: 100%; }
  .spd-hero .hero-download { margin-top: 24px; }
  .spd-badges { gap: 8px; margin-top: 24px; order: 5; }
  .spd-hero-content { display: flex; flex-direction: column; }
  .spd-hero h1 { order: 1; }
  .spd-hero-sub { order: 2; }
  .spd-hero-cta { order: 3; }
  .spd-hero .hero-download { order: 4; }
  .spd-hero-img-m { order: 6; margin-top: 24px; }
  .spd-hero-img-m img { width: 100%; border-radius: 16px; }
  .spd-badge { flex: 1; width: auto; padding: 14px 8px; }
  .spd-badge-big { font-size: 20px; line-height: 28px; }
  .spd-badge-icon { width: 24px; height: 24px; }
  .spd-badge-label { font-size: 12px; line-height: 18px; }

  .spd-packages { padding: 48px 0; }
  .spd-packages .section-head { margin-bottom: 24px; }
  .spd-packages .section-head h2 { font-size: 24px; line-height: 32px; }
  .spd-packages .section-head p { font-size: 15px; line-height: 22px; }
  .spd-pkg-grid { grid-template-columns: 1fr; gap: 16px; }
  .spd-pkg-card h3 { font-family: var(--font-latin); font-size: 20px; }
  .spd-pkg-card p { font-size: 18px; line-height: 24px; }

  .spd-whyshop { padding: 0; }
  .spd-whyshop .section-head { margin-bottom: 32px; }
  .spd-whyshop .section-head h2 { font-size: 24px; line-height: 32px; }
  .spd-whyshop-inner { flex-direction: column; gap: 24px; }

  .spd-whyshop-bg {
    aspect-ratio: unset;
    background: url("../assets/spd-whyshop-bg.webp") center / cover no-repeat;
    padding: 48px 20px 56px;
  }
  .spd-whyshop-title {
    position: static;
    font-size: 24px;
    line-height: 32px;
    margin-bottom: 24px;
    text-align: center;
  }
  .spd-whyshop-bg .spd-benefit-grid {
    position: static;
    width: 100%;
    height: auto;
    padding: 0 16px;
  }
  .spd-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
  }
  .spd-benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(11, 31, 77, 0.08);
  }
  .spd-benefit-card > img {
    width: 36px;
    height: 36px;
    order: unset;
    margin-top: auto;
    padding-top: 6px;
  }
  .spd-benefit-card h3 {
    font-size: 15px;
    line-height: 22px;
    align-self: center;
    text-align: center;
    font-weight: 700;
    color: #091a41;
    margin: 0;
  }
  .spd-benefit-card p {
    font-size: 12px;
    line-height: 17px;
    font-weight: 500;
    color: #475569;
    align-self: center;
    text-align: center;
    margin: 0;
  }

  .spd-steps { padding: 48px 0; }
  .spd-steps .section-head { margin-bottom: 24px; }
  .spd-steps .section-head h2 { font-size: 24px; line-height: 32px; }
  .spd-steps .section-head p { font-size: 16px; line-height: 24px; opacity: 0.8; }
  .spd-steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .spd-steps-grid::before { display: none; }
  .spd-step { flex-direction: row; text-align: left; gap: 16px; align-items: flex-start; }
  .spd-step-num {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-bottom: 0;
    background: var(--teal);
    color: #fff;
    font-size: 20px;
    line-height: 30px;
  }
  .spd-step > div + h3 { margin-top: 0; }
  .spd-step-body { flex: 1; }
  .spd-step h3 { font-size: 18px; line-height: 27px; margin-bottom: 4px; }
  .spd-step p { font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, 0.8); max-width: none; }

  .spd-compare {
    padding: 48px 0;
    background-image: url("../assets/spd-compare-bg-m.webp");
  }
  .spd-compare .section-head { margin-bottom: 24px; }
  .spd-compare .section-head h2 { font-size: 24px; line-height: 32px; }
  .spd-compare-sub {
    font-family: var(--font-thai) !important;
    font-size: 15px !important;
    line-height: 22px !important;
    color: #4b5563 !important;
  }
  .spd-compare-grid { grid-template-columns: 1fr; gap: 24px; }
  .spd-compare-old { padding: 40px 24px 24px; }
  .spd-compare-header { font-size: 24px; }

  .spd-faq { padding: 48px 0; }
  .spd-faq .section-head { margin-bottom: 24px; }
  .spd-faq .section-head h2 { font-size: 24px; line-height: 32px; }
  .spd-faq-item { padding: 18px 20px; border-radius: 14px; }
  .spd-faq-item.open { padding: 20px 20px 22px; }
  .spd-faq-q span { font-size: 15px; line-height: 22px; }
  .spd-faq-item.open .spd-faq-q span { color: #00b5a8 !important; }
  .spd-faq-a { font-size: 13px; line-height: 20px; margin-top: 12px; }
  .spd-faq-cta { margin-top: 32px; }
  .spd-faq-cta .btn { width: 100%; }

  .spd-register { padding: 48px 0; }
  .spd-register h2 { font-size: 24px; line-height: 32px; }
  .spd-register p { font-size: 14px; line-height: 21px; margin: 20px 0; }
  .spd-register-buttons { flex-direction: column; gap: 20px; }
  .spd-register-buttons .btn { width: 100%; }
}

/* Wrap the step text (h3 + p) on mobile rows */
@media (max-width: 767px) {
  .spd-step { display: grid; grid-template-columns: 48px 1fr; }
  .spd-step h3, .spd-step p { grid-column: 2; }
  .spd-step-num { grid-row: 1 / span 2; }
}
