/* ===== Morph Payments · Help Center ===== */
/* Design tokens based on Figma design specifications */
:root {
  /* Brand colors */
  --brand: #019a3b;
  --brand-dark: #017a30;
  --brand-tint: rgba(1, 154, 59, 0.1);
  --brand-tint-active: rgba(1, 154, 59, 0.07);

  /* Text colors */
  --text-1: #0e0e11;
  --text-2: #636367;
  --text-3: #8c8c91;
  --text-placeholder: #bbbbc2;
  --text-heading: #0a0f0c;

  /* Background colors */
  --bg-page: #f9f9fa;
  --bg-card: #ffffff;
  --bg-hero: #e4f8ed;
  --bg-footer: #13281b;

  /* Border colors */
  --border: #e8e8eb;
  --border-hover: #019a3b;

  /* Radius */
  --radius: 8px;
  --radius-sm: 4px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-1: 0 6px 24px rgba(20, 30, 60, 0.08);

  /* Layout */
  --content-max: 1088px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Inter Variable", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Top nav / Header ---------- */
/* Based on Figma node 1647:9188 - Menu */
/* layout_05BEGO: row, space-between, alignItems: center, padding: 16px 40px */
/* fill_CGG0XB: #FFFFFF */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 40px;
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 20;
}
/* layout_AFD4SG: row, alignItems: center, gap: 12px */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 20px;
  color: #000000;
}
.site-logo .logo-wordmark {
  height: 32px;
  width: auto;
  display: block;
}
/* stroke_WKZ21X: #E8E8EB, strokeWeight: 1px */
.site-logo .logo-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}
/* style_D67O5S: 20px, fontWeight 500, color #000000, lineHeight 1.6em */
.site-logo .logo-suffix {
  font-weight: 500;
  font-size: 20px;
  color: #000000;
  line-height: 32px;
}
/* layout_ZR3EX6: row, alignItems: center, gap: 8px, padding: 8px 16px */
/* fill_PTVAG3: #019A3B, borderRadius: 4px */
/* style_YODRD1: 14px, fontWeight 400, color #FFFFFF */
.btn-contact {
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  transition: background-color 0.15s;
}
.btn-contact:hover { background: var(--brand-dark); }

/* ---------- Hero / Search ---------- */
/* Based on Figma node 1647:9048 - Frame 2147243112 */
/* layout_H8N4K5: column, alignItems: center, gap: 24px */
/* layout_K6226H: column, alignItems: center, gap: 8px (title + subtitle) */
.hero {
  position: relative;
  padding: 76px 40px 60px;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-pattern svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero > *:not(.hero-bg-pattern) {
  position: relative;
  z-index: 1;
}
/* layout_K6226H: column, alignItems: center, gap: 8px */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
/* style_YJQH2L: 40px, fontWeight 600, color #0E0E11, lineHeight 1.4em */
.hero h1 {
  font-size: 40px;
  font-weight: 600;
  margin: 0;
  color: var(--text-1);
  line-height: 56px;
  letter-spacing: 0;
}
/* style_Y1YOB7: 20px, fontWeight 400, color #636367, lineHeight 1.2em */
.hero p {
  font-size: 20px;
  color: var(--text-2);
  margin: 0;
  line-height: 24px;
}
/* layout_XSMCVY: row, alignItems: center, gap: 12px, padding: 0 16px, 524x56px */
/* fill_H062D1: #FFFFFF, borderRadius: 8px */
.search-box {
  width: 524px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 56px;
  background: #ffffff;
  border-radius: var(--radius);
}
.search-box input {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
  padding: 0;
  font-size: 16px;
  color: var(--text-1);
  background: transparent;
  transition: box-shadow 0.15s;
}
.search-box input:focus {
  outline: none;
}
.search-box input::placeholder {
  color: var(--text-placeholder);
}
/* stroke_TH87NB: #0E0E11, strokeWeight: 2px */
.search-box .search-icon {
  width: 24px;
  height: 24px;
  color: var(--text-1);
  flex-shrink: 0;
}
.search-results {
  width: 524px;
  max-width: 100%;
  margin: 8px auto 0;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--bg-page); color: var(--brand); }
.search-results .empty {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- Category Grid (Home) ---------- */
/* Based on Figma node 1647:13023 - Frame 2147243121 */
/* layout_AM2SVW: column, width: 1088px */
.category-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  min-height: 700px;
}
/* layout_2RIWP2: column, gap: 16px, padding: 24px, fill: #FFFFFF, radius: 8px */
.category-card {
  display: block;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.category-card:hover {
  border-color: rgba(1, 154, 59, 0.3);
  box-shadow: 0px 0px 30px 0px rgba(1, 38, 15, 0.05);
  transform: translateY(-2px);
}
/* layout_2PQGKL: row, padding: 12px, fill: rgba(1,154,59,0.1), radius: 4px */
.category-card .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.category-card .icon-wrapper img,
.category-card .icon-wrapper svg {
  width: 24px;
  height: 24px;
  display: block;
}
/* style_F5BW0R: 20px, fontWeight 500, color #0E0E11, lineHeight 1.4em */
.category-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--text-1);
  line-height: 28px;
}
/* style_BCYZ9I: 14px, fontWeight 400, color rgba(14,14,17,0.65), lineHeight 1.57em */
.category-card p {
  font-size: 14px;
  color: rgba(14, 14, 17, 0.65);
  margin: 0;
  line-height: 22px;
}

/* ---------- Category Page Layout ---------- */
/* Based on Figma node 1668:17810 - Frame 2147243133 */
/* layout_W9QFAN: column, gap: 40px, width: 1024px */
.category-layout {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Breadcrumb - style_4UXFHY: 14px */
.category-layout .breadcrumb {
  font-size: 14px;
  color: #8C8C91;
  line-height: 20px;
}
.category-layout .breadcrumb a { color: #8C8C91; }
.category-layout .breadcrumb a:hover { color: var(--brand); }
.category-layout .breadcrumb .breadcrumb-current { color: #0E0E11; }

/* Header row - layout_VE2Z0S: row, space-between, fill horizontal */
.category-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
/* Hero Title - style_U8B79Q: 32px, fontWeight 600, color #0A0F0C */
.category-header-row h1 {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: var(--text-heading);
  line-height: 40px;
}

/* Search box - layout_ZXUSWK: 360x48px, border #E8E8EB, radius 4px */
.category-search-box {
  width: 360px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
.category-search-box input {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0;
  font-size: 16px;
  color: var(--text-1);
  background: transparent;
}
.category-search-box input:focus {
  outline: none;
}
.category-search-box input::placeholder {
  color: var(--text-placeholder);
}
.category-search-box .search-icon {
  width: 24px;
  height: 24px;
  color: var(--text-1);
  flex-shrink: 0;
}

/* Content row - layout_4MHZHS: row, gap: 40px, fill horizontal */
.category-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* Sidebar - layout_SAOY95: column, gap: 12px */
.category-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
/* Sidebar items - layout_DWGCK8: row, gap: 8px, padding: 10px 12px, width: 176px */
.category-sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  width: 176px;
  border-radius: 24px;
  font-size: 14px;
  color: var(--text-1);
  font-weight: 400;
  line-height: 20px;
  transition: background 0.15s, color 0.15s, border-radius 0.15s;
}
.category-sidebar a:hover { background: var(--bg-page); color: var(--brand); }
/* Active item - fill_B1JP8T: rgba(1,154,59,0.07), radius 4px, text #019A3B */
.category-sidebar a.active {
  background: var(--brand-tint-active);
  color: var(--brand);
  border-radius: var(--radius-sm);
}

/* Vertical divider - layout_LAHZ81 */
.category-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}

/* Question list - layout_Y3SDMG: column, gap: 32px, width: 544px */
.question-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
  max-width: 544px;
}

/* Question item - layout_LOUTAP: column, gap: 8px, fill horizontal */
.question-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.15s;
}
.question-item:hover { opacity: 0.7; }
/* Title - style_6SDN2H: 16px, fontWeight 500, color #0E0E11 */
.question-item .q-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 24px;
  margin: 0;
}
/* ---------- Mobile category tabs ---------- */
.category-tabs {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 0 40px 20px;
  max-width: 1024px;
  margin: 0 auto;
}
.category-tabs a {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.category-tabs a.active {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-dark);
  font-weight: 600;
}

/* ---------- Article Page ---------- */
/* Breadcrumb - layout_ZXYCXH: y=0, height=20px, style_XGOERJ: 14px, color #000000 */
.article-breadcrumb {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 0 0;
  font-size: 14px;
  color: #8C8C91;
  line-height: 20px;
}
.article-breadcrumb a { color: #8C8C91; }
.article-breadcrumb a:hover { color: var(--brand); }
.article-breadcrumb .breadcrumb-current { color: #0E0E11; }

/* layout_58D4Q0: row, gap 32px, horizontal: hug — center within 1024px container */
/* layout_44LUE1: breadcrumb y=0, content y=60, breadcrumb height=20 → gap = 40px */
.article-layout {
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px 0 80px;
  display: flex;
  gap: 32px;
  min-height: 700px;
  align-items: flex-start;
  justify-content: center;
}
/* layout_WRD4NP: column, gap 40px, width 640px (fixed) */
.article-content {
  width: 640px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
/* layout_CXHHCI: column, gap 8px */
.article-title-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
/* style_1MJRE0: 32px, fontWeight 600, color #0A0F0C */
.article-layout h1 {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: var(--text-heading);
  line-height: 40px;
}
.article-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 20px;
}
.article-body p { margin: 0 0 16px; }
.article-body ul { margin: 0 0 16px 20px; padding: 0; list-style: disc; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--text-1); font-weight: 600; }

/* Vertical divider - stroke_LDC1G3: #E8E8EB, 1px */
.article-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}

/* Related articles sidebar - layout_Q2L21X: column, gap 24px, width 320px, sticky */
/* top: header(72px) + 32px gap = 104px */
.related-articles {
  width: 320px;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 104px;
  flex-shrink: 0;
}
/* style_XFXJEU: 24px, fontWeight 500, textCase TITLE */
.related-articles h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-1);
  margin: 0;
  line-height: 32px;
  text-transform: capitalize;
}
.related-articles .related-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.15s;
}
.related-articles .related-item:last-child { border-bottom: none; }
.related-articles .related-item:hover { opacity: 0.7; }
.related-articles .related-item .r-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 22px;
  margin: 0;
}

/* ---------- Footer ---------- */
/* Based on Figma node 1647:9051 - fill_R2NZJX: #13281B, 1440x800 */
/* layout_KX5T4T: column, 1440x800 */
.site-footer {
  background: var(--bg-footer);
  padding: 100px 0 40px;
  height: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* layout_PW1DU1 + layout_N52WPO: brand at x:40, links at x:724, both y:100 */
.footer-content {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  z-index: 1;
}
/* layout_N52WPO: column, gap 24px, hug */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 317px;
}
/* layout_CDN0FG: morph logo, fixed width 147px */
.footer-brand .footer-logo {
  width: 147px;
  height: auto;
  display: block;
}
/* style_M8YXCT: Inter 400, 14px, lineHeight 1.3em, fill_ZCNC5S: rgba(255,255,255,0.6) */
.footer-brand .footer-tagline {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 18.2px;
  margin: 0;
}
/* layout_SJ2NBW: row, gap 4px */
.footer-brand .footer-socials {
  display: flex;
  gap: 4px;
}
/* layout_3OHYNN: 40x40px, borderRadius 44px, fill_AJP2QR: rgba(255,255,255,0.07) */
.footer-brand .footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.07);
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.footer-brand .footer-socials a:hover {
  background: rgba(255, 255, 255, 0.15);
}
/* layout_FGC1QG / layout_YW5ZE3: 16px */
.footer-brand .footer-socials svg {
  width: 16px;
  height: 16px;
  display: block;
}
/* style_8BQYWO: Inter 400, 14px, lineHeight 1.3em, opacity 0.2 */
.footer-brand .footer-copyright {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  line-height: 18.2px;
  opacity: 0.2;
}
/* layout_PW1DU1: row, gap 8px */
.footer-links {
  display: flex;
  gap: 8px;
}
/* layout_NIQVT8: column, gap 16px, fixed width 163px */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 163px;
}
/* style_U16IEP: Inter Variable 500, 14px, lineHeight 1.3em, opacity 0.4 */
.footer-col h4 {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 18.2px;
  opacity: 0.4;
}
/* style_U16IEP: Inter Variable 500, 14px, lineHeight 1.3em */
.footer-col a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 18.2px;
  margin: 0;
  transition: opacity 0.15s;
}
.footer-col a:hover { opacity: 0.7; }
/* style_LGKPXL: Inter 700, 360px, lineHeight 1em, textCase UPPER */
/* fill_NMT23Z: rgba(255,255,255,0.02), stroke_43LDH3: rgba(255,255,255,0.06) 1px */
/* layout_C4V6YN: x:30 — 距离 footer-content 底部 134px */
.footer-watermark {
  margin-top: 134px;
  font-size: 360px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  line-height: 360px;
  letter-spacing: 0;
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  text-align: center;
}

/* ---------- Search Page ---------- */
/* layout_66RHGA: column, gap 40px, width 1024px */
.search-layout {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 700px;
}
/* Breadcrumb - style_P1JTR4: 14px */
.search-layout .breadcrumb {
  font-size: 14px;
  color: #8C8C91;
  line-height: 20px;
}
.search-layout .breadcrumb a { color: #8C8C91; }
.search-layout .breadcrumb a:hover { color: var(--brand); }
.search-layout .breadcrumb .breadcrumb-current { color: #0E0E11; }

/* Search box - layout_WHSMBT: 360x48px, border #E8E8EB, radius 4px */
.search-page-box {
  width: 360px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
.search-page-box input {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0;
  font-size: 16px;
  color: var(--text-1);
  background: transparent;
}
.search-page-box input:focus { outline: none; }
.search-page-box input::placeholder { color: var(--text-placeholder); }
.search-page-box .search-icon {
  width: 24px;
  height: 24px;
  color: var(--text-1);
  flex-shrink: 0;
}

/* Results list - layout_CDJS5M: column, gap 32px, width 544px */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 544px;
}
/* Result item - layout_6Q7VL0: column, gap 8px, fill horizontal */
.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.15s;
}
.search-result-item:hover { opacity: 0.7; }
/* style_E316ZI: 16px, fontWeight 500, color #0E0E11 */
.search-result-item .sr-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 24px;
}
.search-empty {
  font-size: 14px;
  color: var(--text-3);
  padding: 20px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); padding: 32px 20px 56px; }
  .category-layout { padding: 24px 20px 56px; gap: 24px; }
  .category-content { flex-direction: column; gap: 24px; }
  .category-sidebar { display: none; }
  .category-divider { display: none; }
  .category-tabs { display: flex; padding: 0 20px 20px; }
  .question-list { max-width: 100%; }
  .article-layout { flex-direction: column; padding: 24px 20px 56px; }
  .article-content { max-width: 100%; }
  .article-divider { display: none; }
  .related-articles { position: static; margin-top: 32px; }
  .article-breadcrumb { padding: 24px 20px 0; }
  .hero { padding: 48px 20px 32px; }
  .site-header { padding: 0 20px; }
  .site-logo .logo-suffix { display: none; }
  .site-logo .logo-divider { display: none; }
  .site-footer { height: auto; min-height: 600px; }
  .footer-content { flex-direction: column; padding: 0 20px; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-watermark { font-size: 200px; line-height: 200px; margin-top: 80px; -webkit-text-stroke: 0; }
  .category-search-box { width: 100%; }
  .category-header-row { flex-direction: column; align-items: flex-start; }
  .search-layout { padding: 24px 20px 56px; gap: 24px; }
  .search-page-box { width: 100%; }
  .search-results-list { max-width: 100%; }
}
@media (max-width: 520px) {
  .category-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; line-height: 40px; }
  .hero p { font-size: 16px; }
  .footer-watermark { font-size: 120px; line-height: 120px; margin-top: 60px; -webkit-text-stroke: 0; }
}
