.fm-home {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.fm-home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(244, 114, 182, 0.22), transparent 28%),
    radial-gradient(circle at left bottom, rgba(125, 211, 252, 0.22), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 48%, #111827 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.fm-home-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
}

.fm-home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.fm-home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.fm-home-title {
  margin: 16px 0 12px;
  font-size: 46px;
  line-height: 1.14;
  letter-spacing: -0.04em;
  color: #fff;
}

.fm-home-lead {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.fm-home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.fm-home-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.fm-home-submeta .badge-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fm-home-hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fm-home-stat-card,
.fm-home-side-card {
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.fm-home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fm-home-stat-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.fm-home-stat-value {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #111827;
}

.fm-home-stat-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.fm-home-side-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #111827;
}

.fm-home-side-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

.fm-home-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.fm-home-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fdf2f8;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
}

.fm-home-section-card {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e9eef7;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.fm-home-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fm-home-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fm-home-feature-card,
.fm-home-step-card,
.fm-home-profile-card {
  height: 100%;
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.fm-home-feature-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 800;
}

.fm-home-feature-card h3,
.fm-home-step-card h3,
.fm-home-profile-card h3 {
  margin: 14px 0 10px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #111827;
}

.fm-home-feature-card p,
.fm-home-step-card p,
.fm-home-profile-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
}

.fm-home-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.fm-home-mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.fm-home-mini-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.65;
}

.fm-home-mini-item strong {
  color: #111827;
}

.fm-home-cta-card {
  overflow: hidden;
  position: relative;
  border-radius: 30px;
  padding: 30px;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 24%),
    radial-gradient(circle at right bottom, rgba(56, 189, 248, 0.16), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.fm-home-cta-card h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #111827;
}

.fm-home-cta-card p {
  margin: 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: #475569;
}

.fm-home-cta-card .fm-home-cta-row {
  margin-top: 20px;
}

.fm-home-current-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.fm-home-current-badges .meta-chip {
  background: rgba(17, 24, 39, 0.06);
}

.fm-home-current-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.fm-home-current-item {
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.fm-home-current-item-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.fm-home-current-item-value {
  display: block;
  margin-top: 7px;
  font-size: 16px;
  line-height: 1.45;
  color: #111827;
  font-weight: 700;
  word-break: keep-all;
}

.fm-home-current-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

.fm-home-product-section {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e9eef7;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.fm-home-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.fm-home-product-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fm-home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fm-home-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.fm-home-product-link {
  text-decoration: none;
  color: inherit;
}

.fm-home-product-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.fm-home-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fm-home-product-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
}

.fm-home-color-dot {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.fm-home-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.fm-home-product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #e5edf5;
}

.fm-home-product-title {
  margin: 12px 0 8px;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
}

.fm-home-product-price {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  color: #111827;
}

.fm-home-product-reason {
  margin-top: 10px;
  min-height: 38px;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fm-home-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

.fm-home-product-foot-note {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.fm-home-empty-box {
  padding: 20px 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px dashed #dbe4ef;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .fm-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .fm-home-hero-grid,
  .fm-home-grid-3,
  .fm-home-grid-2,
  .fm-home-stat-grid,
  .fm-home-current-summary {
    grid-template-columns: 1fr;
  }

  .fm-home-title {
    font-size: 36px;
  }

  .fm-home-product-head {
    flex-direction: column;
  }

  .fm-home-product-head-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .fm-home-hero,
  .fm-home-section-card,
  .fm-home-cta-card,
  .fm-home-product-section {
    padding: 22px;
    border-radius: 24px;
  }

  .fm-home-title {
    font-size: 30px;
    line-height: 1.18;
  }

  .fm-home-cta-row,
  .fm-home-product-head-actions {
    flex-direction: column;
  }

  .fm-home-cta-row .btn,
  .fm-home-product-head-actions .btn {
    width: 100%;
  }

  .fm-home-product-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fm-home-product-card {
    padding: 10px;
    border-radius: 18px;
  }

  .fm-home-product-thumb {
    border-radius: 15px;
  }

  .fm-home-product-meta {
    gap: 5px;
    margin-top: 9px;
  }

  .fm-home-product-badge {
    min-height: 23px;
    padding: 0 8px;
    font-size: 10px;
  }

  .fm-home-product-title {
    min-height: 38px;
    margin: 9px 0 5px;
    font-size: 13px;
    line-height: 1.42;
  }

  .fm-home-product-price {
    font-size: 15px;
  }

  .fm-home-product-reason {
    min-height: 32px;
    margin-top: 7px;
    font-size: 10.5px;
    line-height: 1.45;
  }

  .fm-home-product-footer {
    margin-top: 10px;
    padding-top: 9px;
  }

  .fm-home-product-foot-note {
    font-size: 10.5px;
  }
}
/* =========================================================
   모바일 1차 최적화: index 첫 화면 압축 + 상품 섹션 피로도 완화
   - PC 레이아웃은 유지하고 640px 이하에서만 카드 밀도를 낮춘다.
   ========================================================= */
@media (max-width: 640px) {
  .fm-home {
    gap: 14px;
  }

  .fm-home.section-stack-top {
    padding-top: 10px;
  }

  .fm-home-hero {
    padding: 18px 16px 16px;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  }

  .fm-home-hero::after {
    right: -120px;
    top: -120px;
    width: 220px;
    height: 220px;
  }

  .fm-home-hero-grid {
    gap: 14px;
  }

  .fm-home-eyebrow {
    min-height: 28px;
    padding: 0 10px;
    font-size: 10.5px;
  }

  .fm-home-title {
    margin: 10px 0 8px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.045em;
  }

  .fm-home-lead {
    font-size: 12.5px;
    line-height: 1.62;
  }

  .fm-home-submeta {
    gap: 6px;
    margin-top: 12px;
  }

  .fm-home-submeta .badge-pill {
    min-height: 26px;
    padding: 0 9px;
    font-size: 10px;
  }

  .fm-home-cta-row {
    gap: 7px;
    margin-top: 14px;
  }

  .fm-home-cta-row .btn {
    min-height: 39px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 13px;
  }

  .fm-home-side-card,
  .fm-home-stat-card {
    padding: 14px;
    border-radius: 18px;
  }

  .fm-home-hero-side {
    gap: 9px;
  }

  .fm-home-hero-side .fm-home-side-card + .fm-home-side-card {
    display: none;
  }

  .fm-home-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .fm-home-stat-label {
    font-size: 10px;
  }

  .fm-home-stat-value {
    margin-top: 6px;
    font-size: 20px;
  }

  .fm-home-stat-note {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.45;
  }

  .fm-home-side-card h3 {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .fm-home-side-card p {
    font-size: 12px !important;
    line-height: 1.58;
  }

  .fm-home-chip-list,
  .profile-meta {
    gap: 6px !important;
  }

  .fm-home-chip {
    min-height: 26px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .fm-home-cta-card,
  .fm-home-section-card,
  .fm-home-product-section {
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  }

  .fm-home-cta-card h2 {
    margin-bottom: 7px;
    font-size: 20px;
    line-height: 1.25;
  }

  .fm-home-cta-card p {
    font-size: 12.5px;
    line-height: 1.62;
  }

  .fm-home-cta-card.is-current-profile-cta {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #fff7fb 54%, #f3f8ff 100%);
  }

  .fm-home-cta-card.is-current-profile-cta h2 {
    font-size: 16px;
    line-height: 1.32;
  }

  .fm-home-cta-card.is-current-profile-cta > p,
  .fm-home-cta-card.is-current-profile-cta .fm-home-current-badges,
  .fm-home-cta-card.is-current-profile-cta .fm-home-current-note {
    display: none;
  }

  .fm-home-current-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 7px;
    margin-top: 10px;
  }

  .fm-home-current-summary .fm-home-current-item:nth-child(3) {
    display: none;
  }

  .fm-home-current-item {
    padding: 10px 11px;
    border-radius: 14px;
    box-shadow: none;
  }

  .fm-home-current-item-label {
    font-size: 9.5px;
  }

  .fm-home-current-item-value {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
  }

  .fm-home-cta-card.is-current-profile-cta .fm-home-cta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
  }

  .fm-home-cta-card.is-current-profile-cta .fm-home-cta-row .btn {
    width: 100%;
    min-height: 36px;
    padding: 0 9px;
    font-size: 11px;
  }

  .fm-home-cta-card.is-current-profile-cta .fm-home-cta-row .btn-grad {
    grid-column: 1 / -1;
  }

  .fm-home-product-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }

  .fm-home-product-head .card-title {
    font-size: 17px;
    line-height: 1.3;
  }

  .fm-home-product-head .card-sub {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.48;
  }

  .fm-home-product-head-actions {
    width: auto;
    flex-shrink: 0;
  }

  .fm-home-product-head-actions .btn {
    width: auto;
    min-height: 31px;
    padding: 0 10px;
    font-size: 10.5px;
    white-space: nowrap;
    border-radius: 999px;
  }

  .fm-home-product-grid {
    gap: 8px;
  }

  .fm-home-product-card {
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  }

  .fm-home-product-thumb {
    aspect-ratio: 1 / 1.06;
    border-radius: 13px;
  }

  .fm-home-product-meta {
    margin-top: 7px;
  }

  .fm-home-product-meta .fm-home-product-badge:nth-child(n+2) {
    display: none;
  }

  .fm-home-product-badge {
    min-height: 21px;
    padding: 0 7px;
    font-size: 9.5px;
  }

  .fm-home-product-title {
    min-height: 34px;
    margin: 7px 0 4px;
    font-size: 12.2px;
    line-height: 1.38;
  }

  .fm-home-product-price {
    font-size: 14px;
    line-height: 1.25;
  }

  .fm-home-product-reason {
    min-height: 16px;
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.35;
    -webkit-line-clamp: 1;
  }

  .fm-home-product-footer {
    margin-top: 7px;
    padding-top: 7px;
  }

  .fm-home-product-foot-note {
    display: none;
  }

  .fm-home-product-footer .btn {
    width: 100%;
    min-height: 29px;
    padding: 0 8px;
    font-size: 10.5px;
    border-radius: 11px;
  }

  .fm-home-product-section.is-mobile-carousel .fm-home-product-grid {
    display: flex;
    grid-template-columns: none;
    gap: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px 8px;
  }

  .fm-home-product-section.is-mobile-carousel .fm-home-product-grid::-webkit-scrollbar {
    display: none;
  }

  .fm-home-product-section.is-mobile-carousel .fm-home-product-card {
    flex: 0 0 44%;
    scroll-snap-align: start;
  }

  .fm-home-info-section .section-head {
    margin-bottom: 12px;
  }

  .fm-home-info-section .card-title {
    font-size: 17px;
  }

  .fm-home-info-section .card-sub {
    font-size: 11.5px;
    line-height: 1.5;
  }

  .fm-home-grid-3,
  .fm-home-grid-2 {
    gap: 9px;
  }

  .fm-home-feature-card,
  .fm-home-step-card,
  .fm-home-profile-card {
    padding: 14px;
    border-radius: 17px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  }

  .fm-home-feature-badge {
    min-height: 25px;
    padding: 0 9px;
    font-size: 10px;
  }

  .fm-home-step-no {
    width: 31px;
    height: 31px;
    border-radius: 11px;
    font-size: 13px;
  }

  .fm-home-feature-card h3,
  .fm-home-step-card h3,
  .fm-home-profile-card h3 {
    margin: 9px 0 5px;
    font-size: 15px;
    line-height: 1.35;
  }

  .fm-home-feature-card p,
  .fm-home-step-card p,
  .fm-home-profile-card p,
  .fm-home-mini-item {
    font-size: 11.5px;
    line-height: 1.52;
  }

  .fm-home-mini-list {
    gap: 7px;
    margin-top: 10px;
  }

  .fm-home-mini-item {
    padding: 10px;
    border-radius: 14px;
  }

  .fm-home-info-section.is-manual-section .card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .fm-home-info-section.is-manual-section .btn {
    width: 100%;
    min-height: 36px;
  }
}

@media (max-width: 420px) {
  .fm-home-product-section.is-mobile-carousel .fm-home-product-card {
    flex-basis: 47%;
  }

  .fm-home-product-head-actions .btn {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
