/* pages-sections.css — page-specific sections split from pages.css (B phase, 2026-06-19)
 * Contents: tp- (templates) / ap- (approval) / sp- (suppliers) /
 *           mp- (multi-process) / cf- (confirm), incl. responsive @media
 * Consumers: templates / approval / suppliers / multi_process / confirm
 * Loaded AFTER pages.css. Zero cascade-flip: 0 identical selectors overlap
 * with remainder; all state classes (.is-active/.active/.done) are prefix-qualified.
 */
.tp-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(234,179,8,0.08);
}
.tp-filter-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.tp-filter-group > label {
  font-weight: 600;
  color: var(--text);
  min-width: 48px;
  font-size: 14px;
}
.tp-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tp-chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tp-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tp-chip.is-active {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}
.tp-filter-search {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.tp-filter-search input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.tp-filter-search input:focus {
  border-color: var(--accent);
}
.tp-search-btn {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Template grid */
.tp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tp-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.tp-thumb {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.tp-thumb[data-color] { background-color: var(--bg); }
.tp-thumb-label {
  font-size: 56px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.tp-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0,0,0,0.75);
  color: #fff;
  letter-spacing: 0.02em;
}
.tp-tag-3d { background: rgba(15,118,110,0.85); }
.tp-tag-sheet { background: rgba(234,179,8,0.9); color: #111; }
.tp-tag-inj { background: rgba(126,34,206,0.85); }
.tp-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.tp-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.tp-params {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tp-params li {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.tp-params li strong {
  color: var(--text);
  font-weight: 500;
}
.tp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.tp-rating {
  color: var(--accent);
  font-weight: 600;
}
.tp-use-btn {
  margin-top: auto;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.tp-use-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tp-load-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Detail panel */
.tp-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.tp-detail-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tp-detail-preview {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tp-detail-angle {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 12px;
}
.tp-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tp-detail-thumb {
  height: 64px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s;
}
.tp-detail-thumb:hover { transform: scale(1.04); }
.tp-detail-info h3 {
  margin: 8px 0 4px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.tp-detail-info h4 {
  margin: 20px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tp-detail-desc {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  margin: 0 0 8px;
}
.tp-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tp-detail-table th, .tp-detail-table td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
  color: var(--text);
}
.tp-detail-table th {
  background: var(--bg);
  font-weight: 500;
  color: var(--muted);
  width: 25%;
}
.tp-dfm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tp-dfm-list li {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg);
}
.tp-dfm-pass { color: #15803d; }
.tp-dfm-warn { color: #b45309; }
.tp-customer-cases {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tp-case-mini {
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.tp-case-mini strong { color: var(--text); }
.tp-case-mini span { color: var(--muted); }
.tp-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tp-related-item {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s;
}
.tp-related-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tp-detail-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .tp-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tp-grid { grid-template-columns: 1fr; }
  .tp-filter-group { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════
   Approval — approval.html
   Prefix: ap-
   ══════════════════════════════════════════════════════ */

/* 5-step workflow */
.ap-workflow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.ap-step {
  flex: 1 1 180px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ap-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.ap-step h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.ap-step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.ap-step-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(234,179,8,0.12);
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
  margin-top: 4px;
}
.ap-step-arrow {
  align-self: center;
  font-size: 22px;
  color: var(--muted);
  padding: 0 4px;
}

/* Queue stats */
.ap-queue-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.ap-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ap-stat-card strong {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.ap-stat-card span {
  font-size: 13px;
  color: var(--muted);
}
.ap-stat-warn strong { color: #b45309; }
.ap-stat-info strong { color: #1e40af; }
.ap-stat-success strong { color: #15803d; }

/* Table */
.ap-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
}
.ap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 800px;
}
.ap-table th, .ap-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ap-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ap-table tbody tr:hover {
  background: var(--bg);
}
.ap-table tbody tr:last-child td { border-bottom: 0; }

/* Risk badges */
.ap-risk {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.ap-risk-low { background: rgba(34,197,94,0.12); color: #15803d; }
.ap-risk-med { background: rgba(234,179,8,0.18); color: #b45309; }
.ap-risk-high { background: rgba(239,68,68,0.12); color: #b91c1c; }
.ap-risk-black { background: rgba(0,0,0,0.85); color: #fff; }

/* Status badges */
.ap-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.ap-status-pending { background: rgba(234,179,8,0.18); color: #b45309; }
.ap-status-review { background: rgba(59,130,246,0.15); color: #1e40af; }
.ap-status-auto { background: rgba(34,197,94,0.12); color: #15803d; }
.ap-status-director { background: rgba(168,85,247,0.15); color: #7e22ce; }
.ap-status-blocked { background: rgba(239,68,68,0.12); color: #b91c1c; }

/* Action buttons */
.ap-btn-sm {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  margin-right: 4px;
  transition: all 0.15s;
}
.ap-btn-sm:hover { border-color: var(--accent); }
.ap-btn-pass { background: #15803d; color: #fff; border-color: #15803d; }
.ap-btn-pass:hover { background: #166534; }
.ap-btn-reject { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.ap-btn-reject:hover { background: #991b1b; }
.ap-btn-return { background: #b45309; color: #fff; border-color: #b45309; }
.ap-btn-return:hover { background: #92400e; }
.ap-btn-large {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 10px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  flex: 1;
}

/* Detail grid */
.ap-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
}
.ap-detail-card, .ap-rules-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.ap-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.ap-detail-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.ap-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.ap-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
}
.ap-detail-row span { color: var(--muted); }
.ap-detail-row strong { color: var(--text); font-weight: 500; }
.ap-detail-card h4, .ap-rules-panel h4 {
  margin: 20px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ap-credit-score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
}
.ap-credit-bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}
.ap-credit-fill {
  height: 100%;
  background: linear-gradient(90deg, #15803d 0%, #22c55e 100%);
  border-radius: 999px;
}
.ap-credit-num strong {
  font-size: 28px;
  font-weight: 700;
  color: #15803d;
}
.ap-credit-num span { color: var(--muted); font-size: 14px; margin-left: 2px; }
.ap-credit-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.ap-history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ap-history-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 13px;
}
.ap-history-list li span { color: var(--muted); }
.ap-history-list li strong { color: var(--text); font-weight: 500; }
.ap-history-list li em { color: var(--accent); font-style: normal; font-weight: 600; }
.ap-risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ap-risk-list li {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
}
.ap-risk-warn { background: rgba(234,179,8,0.12); color: #b45309; }
.ap-risk-info { background: rgba(59,130,246,0.1); color: #1e40af; }
.ap-recommend-card {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 10px;
  padding: 14px 16px;
}
.ap-recommend-card strong {
  color: #15803d;
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.ap-recommend-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}
.ap-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Rules panel */
.ap-rules-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.ap-rule-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ap-rule-card strong {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}
.ap-rule-card span {
  font-size: 12px;
  color: var(--muted);
}
.ap-blacklist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ap-blacklist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(239,68,68,0.06);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text);
}
.ap-blacklist li button {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
}
.ap-rules-save {
  width: 100%;
  margin-top: 12px;
  text-align: center;
  display: block;
}

@media (max-width: 960px) {
  .ap-detail-grid { grid-template-columns: 1fr; }
  .ap-queue-stats { grid-template-columns: repeat(2, 1fr); }
  .ap-workflow { flex-direction: column; }
  .ap-step-arrow { transform: rotate(90deg); padding: 4px 0; }
}
@media (max-width: 640px) {
  .ap-queue-stats { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   Suppliers — suppliers.html
   Prefix: sp-
   ══════════════════════════════════════════════════════ */

/* KPI strip */
.sp-kpi-grid {
  display: flex;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sp-kpi {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 8px 16px;
}
.sp-kpi strong {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.sp-kpi > span {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.sp-kpi small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.sp-kpi-divider {
  width: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Factory card */
.sp-factory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sp-factory-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.sp-factory-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
}
.sp-factory-head {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.sp-factory-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.sp-factory-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.sp-factory-loc {
  font-size: 12px;
  color: var(--muted);
}
.sp-online-dot {
  position: absolute;
  top: 4px;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.18);
}
.sp-online-dot-busy {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.18);
}
.sp-factory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sp-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.sp-factory-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.sp-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.sp-stat > span { color: var(--muted); min-width: 64px; }
.sp-stat > strong { color: var(--text); font-weight: 600; margin-left: auto; }
.sp-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}
.sp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, #fcd34d 100%);
  border-radius: 999px;
}
.sp-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.sp-stat-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-stat-row span { color: var(--muted); }
.sp-stat-row strong { color: var(--text); font-weight: 600; }
.sp-factory-rating {
  font-size: 13px;
  color: var(--accent);
}
.sp-factory-rating strong { font-weight: 700; }
.sp-factory-rating span {
  color: var(--muted);
  font-size: 12px;
  margin-left: 4px;
}
.sp-factory-actions {
  display: flex;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 12px;
}
.sp-btn-sm {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.sp-btn-sm:hover { border-color: var(--accent); }
.sp-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.sp-btn-primary:hover { background: #000; }

/* Factory detail */
.sp-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
}
.sp-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.sp-detail-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.sp-equipment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sp-equipment-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 13px;
}
.sp-equipment-list li span { color: var(--text); font-weight: 500; }
.sp-equipment-list li em { color: var(--muted); font-style: normal; }
.sp-certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.sp-cert-item {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
}
.sp-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  height: 120px;
  align-items: end;
  margin: 12px 0 24px;
}
.sp-cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
  font-size: 11px;
  color: var(--muted);
}
.sp-cal-day > span { font-weight: 500; }
.sp-cal-load {
  width: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, #fcd34d 100%);
  border-radius: 4px 4px 0 0;
  min-height: 6px;
}
.sp-cal-day em { font-style: normal; color: var(--text); font-weight: 600; }
.sp-cal-rest .sp-cal-load { display: none; }
.sp-chart-placeholder {
  height: 160px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--border);
}

/* Smart match */
.sp-match-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px;
}
.sp-match-form, .sp-match-results {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.sp-match-form h3, .sp-match-results h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.sp-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.sp-form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.sp-form-group select,
.sp-form-group input,
.sp-form-group textarea {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.sp-form-group select:focus,
.sp-form-group input:focus,
.sp-form-group textarea:focus {
  border-color: var(--accent);
}
.sp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sp-match-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
  position: relative;
}
.sp-match-gold {
  border-color: #fcd34d;
  background: linear-gradient(135deg, rgba(252,211,77,0.1) 0%, var(--card) 60%);
}
.sp-match-silver {
  border-color: #d4d4d8;
}
.sp-match-bronze {
  border-color: #fdba74;
}
.sp-match-rank {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.sp-match-gold .sp-match-rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.sp-match-silver .sp-match-rank { background: linear-gradient(135deg, #d4d4d8, #a1a1aa); }
.sp-match-bronze .sp-match-rank { background: linear-gradient(135deg, #fdba74, #ea580c); }
.sp-match-card h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.sp-match-loc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 12px;
}
.sp-match-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin-bottom: 12px;
}
.sp-match-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}
.sp-match-stats span { color: var(--muted); }
.sp-match-stats strong { color: var(--text); font-weight: 600; }
.sp-match-reasons { margin-bottom: 12px; }
.sp-match-reasons strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sp-match-reasons ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sp-match-reasons li {
  font-size: 12px;
  color: var(--text);
}

@media (max-width: 960px) {
  .sp-kpi-grid { flex-wrap: wrap; }
  .sp-kpi-divider { display: none; }
  .sp-kpi { flex: 0 0 50%; }
  .sp-factory-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-detail-grid, .sp-match-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sp-factory-grid { grid-template-columns: 1fr; }
  .sp-kpi { flex: 0 0 100%; }
  .sp-certs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════
   Multi-Process — multi_process.html
   Prefix: mp-
   ══════════════════════════════════════════════════════ */

/* Scenario cards */
.mp-scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mp-scenario-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.mp-scenario-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.mp-scenario-icon {
  font-size: 40px;
  margin-bottom: 8px;
}
.mp-scenario-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.mp-scenario-card p {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.mp-scenario-tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.mp-scenario-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Timeline */
.mp-flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 20px;
}
.mp-flow-timeline::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--border);
}
.mp-flow-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.mp-flow-num {
  position: absolute;
  left: -28px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 3px solid var(--bg);
}
.mp-flow-content {
  flex: 1;
}
.mp-flow-content h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.mp-flow-factory {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(234,179,8,0.18);
  color: #b45309;
  font-weight: 500;
  margin-bottom: 6px;
}
.mp-flow-content p {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.mp-flow-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text);
}

/* Compare */
.mp-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.mp-compare-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.mp-compare-recommended {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(234,179,8,0.05) 0%, var(--card) 70%);
  box-shadow: 0 8px 24px rgba(234,179,8,0.12);
}
.mp-compare-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
}
.mp-compare-tag-recommended {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: #111;
}
.mp-compare-tag-2 {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: -4px;
}
.mp-compare-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.mp-compare-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.mp-compare-price strong {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
}
.mp-compare-price span { color: var(--muted); font-size: 14px; }
.mp-compare-price-recommended strong { color: var(--accent); }
.mp-compare-savings {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mp-save-money {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
}
.mp-save-pct {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 12px;
  font-weight: 700;
}
.mp-compare-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}
.mp-compare-features li {
  padding: 4px 0;
}
.mp-compare-cta {
  margin-top: auto;
  padding-top: 8px;
}
.mp-compare-cta button {
  width: 100%;
}
.mp-compare-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.mp-summary-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mp-summary-item strong {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.mp-summary-item span {
  font-size: 13px;
  color: var(--muted);
}

/* Case library */
.mp-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mp-case-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mp-case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.mp-case-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: var(--bg);
}
.mp-case-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-case-body h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.mp-case-body p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.mp-case-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}
.mp-case-meta strong { color: var(--text); font-weight: 600; }

@media (max-width: 960px) {
  .mp-scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-compare-grid { grid-template-columns: 1fr; }
  .mp-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .mp-compare-summary { grid-template-columns: repeat(2, 1fr); }
  .mp-flow-timeline { padding-left: 0; }
  .mp-flow-timeline::before { display: none; }
  .mp-flow-step { flex-direction: column; }
  .mp-flow-num { position: static; margin-bottom: 4px; }
}
@media (max-width: 640px) {
  .mp-scenario-grid,
  .mp-cases-grid { grid-template-columns: 1fr; }
  .mp-compare-summary { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   Confirm — confirm.html
   Prefix: cf-
   ══════════════════════════════════════════════════════ */

/* Step indicator */
.cf-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 24px 0;
}
.cf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cf-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}
.cf-step-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.cf-step-done .cf-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}
.cf-step-done .cf-step-label { color: var(--text); }
.cf-step-active .cf-step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.06);
}
.cf-step-active .cf-step-label {
  color: var(--text);
  font-weight: 600;
}
.cf-step-line {
  flex: 0 0 60px;
  height: 2px;
  background: var(--border);
  margin: 0 8px 22px;
}
.cf-step-line-done { background: var(--accent); }
.cf-step-line-active {
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 100%);
}

/* Main grid */
.cf-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.cf-main-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.cf-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.cf-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cf-card-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Order summary */
.cf-summary {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
}
.cf-summary-thumb, .cf-sticky-thumb {
  aspect-ratio: 4/3;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  text-align: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
}
.cf-summary-thumb small, .cf-sticky-thumb small {
  font-size: 11px;
  background: rgba(0,0,0,0.55);
  padding: 2px 8px;
  border-radius: 4px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.cf-summary-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}
.cf-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.cf-info-row:last-child { border-bottom: 0; }
.cf-info-row span { color: var(--muted); }
.cf-info-row strong { color: var(--text); font-weight: 500; }

/* Pricing */
.cf-pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cf-pricing-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: var(--text);
}
.cf-pricing-subtotal {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-weight: 500;
}
.cf-pricing-discount strong { color: #15803d; }
.cf-pricing-shipping strong em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}
.cf-pricing-total {
  padding-top: 10px;
  border-top: 2px solid var(--primary);
  font-size: 16px;
  font-weight: 700;
}
.cf-pricing-total strong { color: var(--accent); }

/* Address cards */
.cf-addresses {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cf-address-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  align-items: flex-start;
}
.cf-address-card:hover { border-color: var(--accent); }
.cf-address-card input { margin-top: 4px; accent-color: var(--accent); }
.cf-address-active {
  border-color: var(--accent);
  background: rgba(234,179,8,0.04);
}
.cf-address-content { flex: 1; }
.cf-address-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.cf-address-head strong { color: var(--text); font-size: 14px; }
.cf-address-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--accent);
  color: #111;
  font-weight: 600;
}
.cf-address-tag-type {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}
.cf-address-content p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.cf-add-address {
  padding: 12px;
  border: 1.5px dashed var(--border);
  background: transparent;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.cf-add-address:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Payment cards */
.cf-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cf-payment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.cf-payment-card:hover { border-color: var(--accent); }
.cf-payment-card input { accent-color: var(--accent); }
.cf-payment-active {
  border-color: var(--accent);
  background: rgba(234,179,8,0.04);
}
.cf-payment-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.cf-payment-card strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.cf-payment-card span {
  font-size: 11px;
  color: var(--muted);
}

/* Agreements */
.cf-agreements {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cf-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
}
.cf-agreement input { margin-top: 3px; accent-color: var(--accent); }
.cf-agreement a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.cf-agreement-optional {
  background: transparent;
  color: var(--muted);
}

/* Sticky summary */
.cf-main-right {
  position: sticky;
  top: 24px;
}
.cf-sticky-card {
  background: var(--card);
  border: 1.5px solid var(--accent);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(234,179,8,0.1);
}
.cf-sticky-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.cf-sticky-thumb {
  width: 100%;
  margin-bottom: 16px;
}
.cf-sticky-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.cf-sticky-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
}
.cf-sticky-row span { color: var(--muted); }
.cf-sticky-row strong { color: var(--text); font-weight: 500; }
.cf-sticky-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.cf-sticky-pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cf-sticky-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text);
}
.cf-sticky-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.cf-sticky-total strong { color: var(--accent); font-size: 24px; }
.cf-sticky-eta {
  margin: 12px 0 16px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cf-sticky-eta strong { color: var(--text); }
.cf-cta-button {
  width: 100%;
  padding: 14px 20px;
  background: var(--accent);
  color: #111;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.cf-cta-button:hover { background: #fcd34d; }
.cf-cta-secondary {
  width: 100%;
  margin-top: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.cf-cta-secondary:hover { border-color: var(--accent); }
.cf-sticky-trust {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  gap: 8px;
}
.cf-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 18px;
  color: var(--text);
  flex: 1;
}
.cf-trust-item small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}

@media (max-width: 960px) {
  .cf-main-grid { grid-template-columns: 1fr; }
  .cf-main-right { position: static; }
  .cf-summary { grid-template-columns: 1fr; }
  .cf-summary-info { grid-template-columns: 1fr; }
  .cf-payment-grid { grid-template-columns: 1fr; }
  .cf-step-line { flex: 0 0 30px; }
}
@media (max-width: 640px) {
  .cf-step-indicator { gap: 4px; }
  .cf-step-line { flex: 0 0 16px; margin: 0 4px 22px; }
  .cf-step-label { font-size: 11px; }
}

/* ══════════════════════════════════════════════════════
   RESOURCES PAGE — res- prefix
   ══════════════════════════════════════════════════════ */

/* ── Section 1: Featured grid ── */
.res-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.res-featured-main {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
}
.res-featured-main:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.res-featured-img {
  position: relative;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
}
.res-featured-img[data-color="#0f766e"] { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }
.res-featured-img[data-color="#7c2d12"] { background: linear-gradient(135deg, #7c2d12 0%, #f97316 100%); }
.res-featured-img[data-color="#1e40af"] { background: linear-gradient(135deg, #1e40af 0%, #60a5fa 100%); }
.res-featured-img[data-color="#1e3a8a"] { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.res-featured-img[data-color="#9d174d"] { background: linear-gradient(135deg, #9d174d 0%, #ec4899 100%); }
.res-img-label { background: rgba(0,0,0,.25); padding: 6px 14px; border-radius: 6px; backdrop-filter: blur(8px); }
.res-featured-body { padding: 28px; }
.res-date { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; }
.res-featured-body h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 8px 0 12px;
  color: var(--text);
  line-height: 1.3;
}
.res-featured-body p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.res-link { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.res-link:hover { color: var(--accent-hover); }

/* Sidebar */
.res-featured-side {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.res-featured-side h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.res-mini-list { list-style: none; padding: 0; margin: 0; }
.res-mini-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.res-mini-list li:last-child { border-bottom: none; }
.res-mini-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.res-mini-list h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 4px 0;
  line-height: 1.4;
}
.res-mini-meta { font-size: 12px; color: var(--text3); }
.res-mini-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* ── Section 2: Category tabs ── */
.res-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.res-tab {
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: var(--transition);
  font-family: inherit;
}
.res-tab:hover { border-color: var(--accent); color: var(--text); }
.res-tab.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Section 3: Article grid ── */
.res-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.res-article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.res-article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.res-article-img {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  font-size: 13px;
}
.res-article-img[data-color="#0f766e"] { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }
.res-article-img[data-color="#7c2d12"] { background: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%); }
.res-article-img[data-color="#1e40af"] { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); }
.res-article-img[data-color="#1e3a8a"] { background: linear-gradient(135deg, #1e3a8a 0%, #6366f1 100%); }
.res-article-img[data-color="#9d174d"] { background: linear-gradient(135deg, #9d174d 0%, #f43f5e 100%); }
.res-article-img[data-color="#374151"] { background: linear-gradient(135deg, #374151 0%, #6b7280 100%); }
.res-article-img[data-color="#4d7c0f"] { background: linear-gradient(135deg, #4d7c0f 0%, #84cc16 100%); }
.res-article-img[data-color="#0c4a6e"] { background: linear-gradient(135deg, #0c4a6e 0%, #0ea5e9 100%); }
.res-article-img[data-color="#581c87"] { background: linear-gradient(135deg, #581c87 0%, #a855f7 100%); }

.res-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255,255,255,.95);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .5px;
  backdrop-filter: blur(4px);
}
.res-tag-cyan { color: #0e7490; }
.res-tag-green { color: #15803d; }
.res-tag-violet { color: #6d28d9; }
.res-tag-pink { color: #be185d; }

.res-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  border: 2px solid rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.res-play:hover { background: rgba(0,0,0,.7); transform: translate(-50%, -50%) scale(1.05); }

.res-article-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.res-article-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.res-article-body > p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.res-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
}
.res-author { display: flex; align-items: center; gap: 6px; }
.res-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.res-avatar[data-color="#f59e0b"] { background: #f59e0b; }
.res-avatar[data-color="#3b82f6"] { background: #3b82f6; }
.res-avatar[data-color="#10b981"] { background: #10b981; }
.res-avatar[data-color="#ef4444"] { background: #ef4444; }
.res-avatar[data-color="#8b5cf6"] { background: #8b5cf6; }
.res-avatar[data-color="#0ea5e9"] { background: #0ea5e9; }
.res-avatar[data-color="#ec4899"] { background: #ec4899; }
.res-avatar[data-color="#14b8a6"] { background: #14b8a6; }
.res-avatar[data-color="#f97316"] { background: #f97316; }
.res-meta-right { display: flex; gap: 6px; }

/* ── Section 4: Download resources ── */
.res-download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.res-download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}
.res-download-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.res-download-card:hover .res-dl-arrow { animation: resDlBounce .6s ease; }
.res-download-card.is-downloading { pointer-events: none; }
.res-download-card.is-downloading .res-dl-arrow { animation: resDlBounce .6s ease; color: #16a34a; }
@keyframes resDlBounce {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(8px); }
  80%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}
.res-dl-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.res-dl-icon[data-color="#dc2626"] { background: linear-gradient(135deg, #dc2626 0%, #f87171 100%); }
.res-dl-icon[data-color="#0ea5e9"] { background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%); }
.res-dl-icon[data-color="#16a34a"] { background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%); }
.res-dl-body { flex: 1; }
.res-dl-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.res-dl-body p { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 8px; }
.res-dl-meta { font-size: 11px; color: var(--text3); display: flex; gap: 6px; }
.res-dl-arrow {
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Section 5: Newsletter ── */
.res-newsletter {
  background: linear-gradient(135deg, #111 0%, #1f2937 100%);
  padding: 64px 0;
}
.res-newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.res-newsletter h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: -.5px; }
.res-newsletter-text p { font-size: 15px; color: #d1d5db; line-height: 1.7; }
.res-newsletter-form {
  display: flex;
  gap: 8px;
}
.res-newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  font-size: 15px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-family: inherit;
}
.res-newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.res-newsletter-form input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.12); }
.res-newsletter-form button {
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}
.res-newsletter-form button:hover { background: var(--accent-hover); }

/* ── Section 6: Help center ── */
.res-help-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.res-help-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}
.res-help-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.res-help-icon {
  font-size: 32px;
  margin-bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.res-help-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.res-help-card p { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 12px; }
.res-help-link { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ══════════════════════════════════════════════════════
   HOW-IT-WORKS PAGE — hw- prefix
   ══════════════════════════════════════════════════════ */

/* ── Section 1: 6-step process timeline ── */
.hw-timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 0 0;
}
.hw-timeline-line {
  position: absolute;
  left: 60px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
}
.hw-step {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.hw-step-num {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  background: var(--card);
  border: 3px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  font-family: "Inter", monospace;
}
.hw-step-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.hw-step-text h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
  margin-bottom: 12px;
}
.hw-step-text > p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.hw-tip {
  padding: 12px 16px;
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}
.hw-step-details {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.hw-step-details summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
}
.hw-step-details summary::-webkit-details-marker { display: none; }
.hw-step-details summary::before { content: "▸ "; transition: transform .2s; display: inline-block; }
.hw-step-details[open] summary::before { content: "▾ "; }
.hw-step-details p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-top: 8px;
  padding: 8px 0;
}

/* Screenshot mockup */
.hw-step-visual { position: sticky; top: 80px; }
.hw-shot {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.hw-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.hw-dot { width: 10px; height: 10px; border-radius: 50%; }
.hw-dot.r { background: #ef4444; }
.hw-dot.y { background: #f59e0b; }
.hw-dot.g { background: #10b981; }
.hw-shot-title { margin-left: 8px; font-size: 12px; color: var(--text2); font-weight: 500; }
.hw-shot-body { padding: 20px; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.hw-shot-upload { text-align: center; }
.hw-shot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  font-size: 24px;
  margin-bottom: 8px;
}
.hw-shot-upload strong { display: block; font-size: 14px; margin-bottom: 4px; }
.hw-shot-upload small { color: var(--text2); font-size: 12px; }
.hw-shot-bar2 {
  width: 180px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 0;
  overflow: hidden;
}
.hw-shot-bar2 span {
  display: block;
  height: 100%;
  background: var(--accent);
  animation: hw-progress 2s ease-in-out infinite;
}
@keyframes hw-progress {
  0% { width: 0%; }
  50% { width: 80%; }
  100% { width: 80%; }
}

.hw-shot-features ul { list-style: none; padding: 0; margin: 0; width: 100%; }
.hw-shot-features li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12px;
}
.hw-shot-features li:last-child { border-bottom: none; }
.hw-shot-features span { color: var(--text3); }
.hw-shot-features strong { color: var(--text); font-weight: 600; }

.hw-shot-price { display: block; width: 100%; }
.hw-price-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.hw-price-row em { font-style: normal; color: var(--text2); }
.hw-price-final { font-size: 15px !important; font-weight: 700; border-top: 2px solid var(--accent); border-bottom: none; padding-top: 12px; margin-top: 8px; }
.hw-price-final em { color: var(--accent) !important; font-weight: 800; }

.hw-shot-dfm { display: block; width: 100%; }
.hw-dfm-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.hw-dfm-row:last-child { border-bottom: none; }
.hw-dfm-row.ok span { color: var(--success); }
.hw-dfm-row.ok em { color: var(--success); font-style: normal; font-weight: 600; }
.hw-dfm-row.warn span { color: var(--warning); }
.hw-dfm-row.warn em { color: var(--warning); font-style: normal; font-weight: 600; }

.hw-shot-factory { display: block; width: 100%; }
.hw-fac-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.hw-fac-row.top { font-weight: 700; }
.hw-fac-row em { font-style: normal; color: var(--accent); font-weight: 700; }
.hw-fac-foot {
  margin-top: 12px;
  padding: 8px;
  background: var(--accent-light);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  text-align: center;
}

.hw-shot-track { display: block; width: 100%; }
.hw-track-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
  position: relative;
  padding-left: 16px;
}
.hw-track-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.hw-track-row.done::before { background: var(--success); }
.hw-track-row.done span { color: var(--text3); text-decoration: line-through; }
.hw-track-row.active::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(234,179,8,.2); }
.hw-track-row.active span { color: var(--accent); font-weight: 600; }
.hw-track-row em { font-style: normal; color: var(--text3); }

/* ── Section 2: AI engine deep dive ── */
.hw-ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}
.hw-ai-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
}
.hw-ai-text h3:first-child { margin-top: 0; }
.hw-ai-text p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.85;
}
.hw-ml-card {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", monospace;
  box-shadow: var(--shadow-lg);
}
.hw-ml-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #1e293b;
  color: #94a3b8;
  font-size: 12px;
  font-family: var(--font);
}
.hw-ml-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: hw-ml-pulse 2s ease-in-out infinite;
}
@keyframes hw-ml-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.hw-ml-head strong { color: #e2e8f0; font-weight: 600; }
.hw-ml-code {
  padding: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #cbd5e1;
  white-space: pre-wrap;
  margin: 0;
}
.hw-ml-c { color: #64748b; font-style: italic; }
.hw-ml-hl { color: #facc15; font-weight: 700; }

.hw-ai-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.hw-ai-stat { text-align: center; }
.hw-ai-stat strong {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1.1;
}
.hw-ai-stat span { font-size: 14px; color: var(--text2); margin-top: 4px; display: block; }

/* ── Section 3: Quality & security ── */
.hw-quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.hw-quality-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.hw-quality-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.hw-cert-list, .hw-sec-list, .hw-ip-list { list-style: none; padding: 0; margin: 0; }
.hw-cert-list li, .hw-sec-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.hw-cert-list li:last-child, .hw-sec-list li:last-child { border-bottom: none; }
.hw-cert-mark {
  padding: 6px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  flex-shrink: 0;
  height: fit-content;
}
.hw-cert-mark[data-color="#3b82f6"] { background: #3b82f6; }
.hw-cert-mark[data-color="#10b981"] { background: #10b981; }
.hw-cert-mark[data-color="#ef4444"] { background: #ef4444; }
.hw-cert-list strong, .hw-sec-list strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.hw-cert-list p, .hw-sec-list p { font-size: 12px; color: var(--text2); line-height: 1.55; }
.hw-sec-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hw-quality-ip { background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%); border-color: #eab308; }
.hw-quality-ip h3 { color: #92400e; border-bottom-color: #ca8a04; }
.hw-ip-lead {
  font-size: 18px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 16px;
  font-style: italic;
}
.hw-ip-list li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

/* ── Section 4: FAQ ── */
.hw-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hw-faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  transition: var(--transition);
}
.hw-faq-item[open] { border-color: var(--accent); }
.hw-faq-item summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.hw-faq-item summary::-webkit-details-marker { display: none; }
.hw-faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s;
}
.hw-faq-item[open] summary::after { content: "−"; }
.hw-faq-item p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.hw-faq-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.hw-faq-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   ABOUT PAGE — ab- prefix
   ══════════════════════════════════════════════════════ */

/* ── Section 1: Mission & story ── */
.ab-mission-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
.ab-mission-text h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 12px 0 24px;
  color: var(--text);
}
.ab-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
}
.ab-mission-text p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.85;
  margin-bottom: 14px;
}
.ab-mission-quote {
  background: linear-gradient(135deg, #111 0%, #1f2937 100%);
  color: #fff;
  padding: 36px 32px;
  border-radius: 14px;
  position: relative;
}
.ab-quote-mark {
  font-size: 80px;
  line-height: .8;
  color: var(--accent);
  font-family: Georgia, serif;
  position: absolute;
  top: 20px;
  left: 24px;
}
.ab-mission-quote p {
  font-size: 18px;
  line-height: 1.7;
  margin: 36px 0 24px;
  font-weight: 500;
  color: rgba(255,255,255,.95);
}
.ab-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.ab-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  background: var(--accent);
}
.ab-avatar[data-color="#f59e0b"] { background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); }
.ab-quote-author strong { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.ab-quote-author span { font-size: 13px; color: rgba(255,255,255,.6); }

/* Timeline */
.ab-timeline {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
}
.ab-timeline-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text);
}
.ab-timeline-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.ab-tl-item {
  padding: 0 20px;
  border-left: 2px solid var(--accent);
  position: relative;
}
.ab-tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
}
.ab-tl-year {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.ab-tl-content strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.ab-tl-content p { font-size: 12px; color: var(--text2); line-height: 1.65; }

/* ── Section 2: Stats band ── */
.ab-stats-band {
  background: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
  padding: 48px 0;
}
.ab-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.ab-stat { text-align: center; color: #111; }
.ab-stat strong {
  display: block;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}
.ab-stat span { font-size: 14px; font-weight: 600; opacity: .8; }
.ab-stat-sep { width: 1px; height: 48px; background: rgba(0,0,0,.2); }

/* ── Section 3: Values ── */
.ab-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.ab-value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}
.ab-value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.ab-value-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
}
.ab-value-icon[data-color="#f59e0b"] { background: #fef3c7; }
.ab-value-icon[data-color="#3b82f6"] { background: #dbeafe; }
.ab-value-icon[data-color="#10b981"] { background: #d1fae5; }
.ab-value-icon[data-color="#ef4444"] { background: #fee2e2; }
.ab-value-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.ab-value-card p { font-size: 13px; color: var(--text2); line-height: 1.65; }

/* ── Section 4: Team ── */
.ab-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ab-team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.ab-team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ab-team-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  position: relative;
}
.ab-team-photo[data-color="#f59e0b"] { background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); }
.ab-team-photo[data-color="#3b82f6"] { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.ab-team-photo[data-color="#10b981"] { background: linear-gradient(135deg, #10b981 0%, #047857 100%); }
.ab-team-photo[data-color="#ef4444"] { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.ab-team-photo[data-color="#8b5cf6"] { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); }
.ab-team-photo[data-color="#ec4899"] { background: linear-gradient(135deg, #ec4899 0%, #be185d 100%); }
.ab-team-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ab-team-role { display: block; font-size: 12px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.ab-team-card p { font-size: 13px; color: var(--text2); line-height: 1.65; }
.ab-team-li {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-decoration: none;
  transition: var(--transition);
}
.ab-team-li:hover { background: #0077b5; color: #fff; }

/* ── Section 5: Investors ── */
.ab-inv-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.ab-inv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
}
.ab-inv-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ab-inv-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.ab-inv-card small { font-size: 11px; color: var(--text3); }
.ab-partner-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  text-align: center;
}
.ab-partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.ab-partner-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  transition: var(--transition);
}
.ab-partner-card:hover { background: var(--card); color: var(--text); border-color: var(--accent); }

/* ── Section 6: Press ── */
.ab-press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ab-press-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 24px;
  transition: var(--transition);
}
.ab-press-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ab-press-outlet {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--accent);
  margin-bottom: 8px;
}
.ab-press-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.ab-press-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 12px;
}
.ab-press-date { font-size: 11px; color: var(--text3); font-weight: 600; }

/* ── Section 7: Join us CTA ── */
.ab-join-cta {
  background: linear-gradient(135deg, #111 0%, #1f2937 100%);
  padding: 64px 0;
  color: #fff;
}
.ab-join-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.ab-join-cta h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin: 12px 0 16px;
}
.ab-join-cta p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 24px;
}
.ab-join-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ab-join-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.ab-join-card strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}
.ab-join-card span { font-size: 13px; color: #4b5563; }

/* ── Section 8: Locations ── */
.ab-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ab-loc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: var(--transition);
}
.ab-loc-hq {
  border: 2px solid var(--accent);
  position: relative;
}
.ab-loc-hq::after {
  content: "HQ";
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
}
.ab-loc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ab-loc-flag { font-size: 36px; margin-bottom: 12px; }
.ab-loc-card h3 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.ab-loc-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ab-loc-card > p { font-size: 13px; color: var(--text2); line-height: 1.65; margin-bottom: 16px; }
.ab-loc-list { list-style: none; padding: 0; margin: 0; }
.ab-loc-list li {
  padding: 8px 0;
  font-size: 12px;
  color: var(--text2);
  border-top: 1px solid var(--border);
}
.ab-loc-list li:first-child { border-top: none; }

/* ══════════════════════════════════════════════════════
   Shared Responsive (resources / how-it-works / about)
   ══════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .res-featured-grid { grid-template-columns: 1fr; }
  .res-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .res-download-grid { grid-template-columns: 1fr; }
  .res-help-grid { grid-template-columns: repeat(2, 1fr); }
  .res-newsletter-inner { grid-template-columns: 1fr; gap: 24px; }

  .hw-step { grid-template-columns: 1fr; gap: 16px; }
  .hw-timeline-line { left: 40px; }
  .hw-step-num { width: 60px; height: 60px; font-size: 20px; }
  .hw-step-content { grid-template-columns: 1fr; }
  .hw-step-visual { position: static; }
  .hw-ai-grid { grid-template-columns: 1fr; gap: 32px; }
  .hw-ai-stats { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .hw-quality-grid { grid-template-columns: 1fr; }
  .hw-faq-grid { grid-template-columns: 1fr; }

  .ab-mission-grid { grid-template-columns: 1fr; gap: 32px; }
  .ab-timeline-list { grid-template-columns: 1fr; gap: 24px; }
  .ab-tl-item { border-left: none; border-top: 2px solid var(--accent); padding: 16px 0 0; }
  .ab-tl-item::before { left: 0; top: -7px; }
  .ab-stats-inner { gap: 32px; }
  .ab-stat strong { font-size: 36px; }
  .ab-values-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-team-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-inv-grid { grid-template-columns: repeat(3, 1fr); }
  .ab-partner-grid { grid-template-columns: repeat(3, 1fr); }
  .ab-press-grid { grid-template-columns: 1fr; }
  .ab-join-inner { grid-template-columns: 1fr; gap: 32px; }
  .ab-locations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .res-articles-grid { grid-template-columns: 1fr; }
  .res-help-grid { grid-template-columns: 1fr; }
  .res-newsletter-form { flex-direction: column; }
  .res-newsletter-form button { width: 100%; }
  .res-tab { padding: 8px 14px; font-size: 13px; }

  .hw-step-content { padding: 20px; }
  .hw-step-text h3 { font-size: 18px; }
  .hw-ai-stat strong { font-size: 32px; }
  .hw-ml-code { font-size: 11px; padding: 16px; }

  .ab-stat strong { font-size: 32px; }
  .ab-values-grid { grid-template-columns: 1fr; }
  .ab-team-grid { grid-template-columns: 1fr; }
  .ab-inv-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-partner-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-stats-inner { gap: 24px; }
  .ab-stat-sep { display: none; }
  .ab-join-cta h2 { font-size: 28px; }
  .ab-join-visual { grid-template-columns: 1fr; }
}

