/*
 * 角色：Start a Bag Factory Solutions 页面专属样式
 * 规则：只写此页面特有的组件样式，Token 全部引用 Global.css 的变量
 * 禁止：不得定义 :root{}，不得写死颜色/间距数值，不得使用 !important
 */

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   S1 — HERO
   ============================================================ */

.sbf-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sbf-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sbf-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.sbf-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(11, 13, 16, 0.92) 0%,
    rgba(11, 13, 16, 0.65) 55%,
    rgba(11, 13, 16, 0.30) 100%
  );
}

.sbf-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.025) 59px, rgba(255,255,255,0.025) 60px);
  pointer-events: none;
}

.sbf-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-6);
  max-width: 820px;
}

.sbf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 1em;
  background: rgba(215, 25, 32, 0.08);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(215, 25, 32, 0.35);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  width: fit-content;
}

.sbf-hero__title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin: 0;
  text-wrap: pretty;
}

.sbf-hero__title em {
  font-style: normal;
  color: var(--brand-mid);
}

.sbf-hero__subtitle {
  font-size: clamp(var(--text-base), 1.6vw, var(--text-md));
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
  text-wrap: pretty;
}

/* Trust bar */
.sbf-hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: var(--sp-2) var(--sp-3);
  width: fit-content;
  max-width: 100%;
}

.sbf-hero__trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 var(--sp-2);
}

.sbf-hero__trust-item:first-child {
  padding-left: 0;
}

.sbf-hero__trust-num {
  font-family: 'DM Mono', monospace;
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.sbf-hero__trust-unit {
  font-size: 0.65em;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 2px;
}

.sbf-hero__trust-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  white-space: nowrap;
}

.sbf-hero__trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.sbf-hero__cta-group {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   S2 — WHO THIS IS FOR
   ============================================================ */

.sbf-who {
  padding: var(--sp-7) 0;
}

.sbf-who .section-header {
  max-width: 720px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.sbf-who__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.sbf-who__card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sbf-who__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.sbf-who__card-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-tint);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.sbf-who__card-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.3;
}

.sbf-who__card-desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.sbf-who__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  margin-top: auto;
  padding-top: var(--sp-1);
  border-top: 1px solid var(--gray-100);
  transition: gap 0.2s ease, color 0.2s ease;
}

.sbf-who__card-link:hover {
  gap: 10px;
  color: var(--brand-dark);
}

.sbf-who__card-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ============================================================
   S3 — THREE STARTER CONFIGURATIONS
   ============================================================ */

.sbf-configs {
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--gray-100);
}

.sbf-configs .section-header {
  max-width: 720px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.sbf-configs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  align-items: start;
}

.sbf-configs__card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sbf-configs__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--brand);
}

.sbf-configs__card--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-card);
  position: relative;
}

/* Card image */
.sbf-configs__card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gray-50);
}

.sbf-configs__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sbf-configs__card:hover .sbf-configs__card-img img {
  transform: scale(1.03);
}

/* Card body */
.sbf-configs__card-body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

/* Tier badge */
.sbf-configs__tier {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.85em;
  background: var(--gray-50);
  color: var(--gray-600);
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.sbf-configs__tier--featured {
  background: var(--brand-tint);
  color: var(--brand);
  border-color: rgba(215, 25, 32, 0.20);
}

.sbf-configs__card-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
  line-height: 1.3;
}

.sbf-configs__card-desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

/* Spec list */
.sbf-configs__spec-list {
  list-style: none;
  margin: var(--sp-1) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--gray-100);
  flex: 1;
}

.sbf-configs__spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.sbf-configs__spec-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  flex-shrink: 0;
}

.sbf-configs__spec-val {
  font-size: var(--text-sm);
  color: var(--gray-800);
  font-family: 'DM Mono', monospace;
  text-align: right;
  line-height: 1.4;
}

.sbf-configs__spec-val--cta {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  color: var(--brand);
  font-size: var(--text-xs);
}

/* CTA button inside card */
.sbf-configs__card-body .btn {
  margin-top: var(--sp-2);
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Disclaimer */
.sbf-configs__disclaimer {
  margin-top: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--gray-400);
  text-align: center;
  line-height: 1.7;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   S4 — BAG TYPE FINDER
   ============================================================ */

.sbf-finder {
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--gray-100);
}

.sbf-finder .section-header {
  max-width: 720px;
  margin: 0 auto var(--sp-5);
  text-align: center;
}

.sbf-finder__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gray-100);
  border-radius: var(--r-lg);
}

.sbf-finder__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.sbf-finder__table thead tr {
  background: var(--charcoal);
}

.sbf-finder__table thead th {
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.sbf-finder__table thead th:first-child {
  border-radius: var(--r-lg) 0 0 0;
}

.sbf-finder__table thead th:last-child {
  border-radius: 0 var(--r-lg) 0 0;
}

.sbf-finder__table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.18s ease;
}

.sbf-finder__table tbody tr:last-child {
  border-bottom: none;
}

.sbf-finder__table tbody tr:hover {
  background: var(--brand-subtle);
}

.sbf-finder__table tbody td {
  padding: var(--sp-2) var(--sp-3);
  color: var(--gray-800);
  vertical-align: middle;
  line-height: 1.5;
}

.sbf-finder__bag-name {
  font-weight: 600;
  color: var(--gray-800);
}

.sbf-finder__layer-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.75em;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
}

.sbf-finder__row-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 14px;
  border: 1px solid rgba(215, 25, 32, 0.25);
  border-radius: 100px;
  transition: background 0.18s ease, border-color 0.18s ease, gap 0.18s ease;
}

.sbf-finder__row-cta:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  gap: 8px;
}

.sbf-finder__row-cta:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.sbf-finder__footer {
  margin-top: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.sbf-finder__footer p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin: 0;
}

/* ============================================================
   S5 — WHY ONE SUPPLIER  (section-dark)
   ============================================================ */

.sbf-why {
  padding: var(--sp-7) 0;
}

.sbf-why .section-header {
  max-width: 720px;
  margin: 0 auto var(--sp-6);
  text-align: center;
}

.sbf-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

/* Dark-surface card — NOT using .cred-item or .why-card */
.sbf-why__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.sbf-why__card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.sbf-why__card-icon {
  width: 44px;
  height: 44px;
  background: rgba(215, 25, 32, 0.15);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-mid);
  flex-shrink: 0;
}

.sbf-why__card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.35;
}

.sbf-why__card-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin: 0;
}

.sbf-why__footer {
  margin-top: var(--sp-6);
  display: flex;
  justify-content: center;
}

/* ============================================================
   S6 — FAQ  (section-light)
   ============================================================ */

.sbf-faq {
  padding: var(--sp-7) 0;
}

.sbf-faq .section-header {
  max-width: 720px;
  margin: 0 auto var(--sp-5);
  text-align: center;
}

.sbf-faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Remove native marker */
.sbf-faq__item summary {
  list-style: none;
}
.sbf-faq__item summary::-webkit-details-marker {
  display: none;
}

.sbf-faq__item {
  border-bottom: 1px solid var(--gray-100);
}

.sbf-faq__item:first-child {
  border-top: 1px solid var(--gray-100);
}

.sbf-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  user-select: none;
  line-height: 1.45;
  transition: color 0.18s ease;
}

.sbf-faq__q:hover {
  color: var(--brand);
}

.sbf-faq__q:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.sbf-faq__chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.25s ease, color 0.18s ease;
}

.sbf-faq__item[open] .sbf-faq__chevron {
  transform: rotate(180deg);
  color: var(--brand);
}

.sbf-faq__a {
  padding-bottom: var(--sp-3);
}

.sbf-faq__a p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.75;
  margin: 0;
}

/* ============================================================
   S7 — FINAL CTA  (section-dark)
   ============================================================ */

.sbf-cta {
  padding: var(--sp-8) 0;
}

.sbf-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-3);
  max-width: 680px;
  margin: 0 auto;
}

.sbf-cta__title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}

.sbf-cta__sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.70;
  margin: 0;
  max-width: 560px;
}

.sbf-cta__group {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--sp-1);
}

/* ============================================================
   RESPONSIVE — 960px 折叠为单列
   ============================================================ */

@media (max-width: 960px) {

  /* Hero */
  .sbf-hero {
    min-height: 100svh;
  }

  .sbf-hero__trust {
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  .sbf-hero__trust-divider {
    display: none;
  }

  .sbf-hero__trust-item {
    padding: 0;
  }

  .sbf-hero__cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .sbf-hero__cta-group .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Who */
  .sbf-who__grid {
    grid-template-columns: 1fr;
  }

  /* Configs */
  .sbf-configs__grid {
    grid-template-columns: 1fr;
  }

  .sbf-configs__card--featured {
    order: -1;
  }

  /* Finder table — card layout on mobile */
  .sbf-finder__table thead {
    display: none;
  }

  .sbf-finder__table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-3);
    border-bottom: 1px solid var(--gray-100);
  }

  .sbf-finder__table tbody td {
    padding: 4px 0;
    font-size: var(--text-xs);
  }

  .sbf-finder__table tbody td:first-child {
    grid-column: 1 / -1;
  }

  .sbf-finder__table tbody td:last-child {
    grid-column: 1 / -1;
  }

  .sbf-finder__table tbody td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--gray-400);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: block;
    margin-bottom: 2px;
  }

  /* Why */
  .sbf-why__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* CTA */
  .sbf-cta__group {
    flex-direction: column;
    align-items: center;
  }

  .sbf-cta__group .btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {

  .sbf-who__card {
    padding: var(--sp-3);
  }

  .sbf-configs__card-body {
    padding: var(--sp-3);
  }

  .sbf-why__grid {
    grid-template-columns: 1fr;
  }

  .sbf-finder__footer {
    flex-direction: column;
    text-align: center;
  }

  .sbf-finder__footer .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
