:root {
  --home-bg: #fffaf5;
  --home-ink: #171421;
  --home-muted: #6c6572;
  --home-paper: rgba(255, 255, 255, 0.88);
  --home-line: rgba(61, 42, 79, 0.12);
  --home-purple: #5b2e91;
  --home-purple-dark: #3e1d70;
  --home-purple-soft: #f0e7fa;
  --home-coral: #e87670;
  --home-gold: #c58b38;
  --home-green: #33856f;
  --home-shadow: 0 20px 60px rgba(64, 38, 82, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sjm-home {
  margin: 0;
  overflow-x: hidden;
  color: var(--home-ink);
  background: linear-gradient(180deg, #fffdfb 0%, var(--home-bg) 42%, #f8f4fb 100%);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.6;
}

body.sjm-home a { color: inherit; }
.sjm-home-main { position: relative; z-index: 1; }
.home-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.home-section { padding: 76px 0; }
.home-section.compact { padding: 54px 0; }

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 610px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 25%, rgba(255, 230, 171, 0.78) 0 8%, transparent 30%),
    linear-gradient(140deg, #fff9ee 0%, #fff2e5 42%, #eadff4 100%);
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -10%;
  right: -10%;
  bottom: -10px;
  height: 54%;
  border-radius: 50% 50% 0 0;
  transform: skewX(-9deg);
  pointer-events: none;
}

.home-hero::before {
  background: linear-gradient(160deg, rgba(115, 83, 139, 0.15), rgba(236, 176, 135, 0.18));
  clip-path: polygon(0 76%, 17% 47%, 31% 69%, 48% 31%, 65% 63%, 81% 38%, 100% 69%, 100% 100%, 0 100%);
}

.home-hero::after {
  bottom: -48px;
  background: linear-gradient(180deg, rgba(104, 71, 126, 0.09), rgba(247, 240, 246, 0.94));
  clip-path: polygon(0 66%, 16% 38%, 30% 72%, 46% 43%, 61% 70%, 78% 45%, 100% 64%, 100% 100%, 0 100%);
}

.home-hero-inner {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 70px;
  padding-top: 56px;
  padding-bottom: 74px;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 12px;
  border: 1px solid rgba(197, 139, 56, 0.28);
  border-radius: 999px;
  color: #79511f;
  background: rgba(255, 250, 235, 0.76);
  font-size: 0.82rem;
  font-weight: 850;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 1.11;
  letter-spacing: -0.07em;
  word-break: keep-all;
}

.home-hero h1 em {
  color: var(--home-purple);
  font-style: normal;
}

.home-hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #5c5562;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.85;
  word-break: keep-all;
}

.home-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0 24px;
}

.home-benefit {
  min-height: 96px;
  padding: 14px 12px;
  border: 1px solid rgba(74, 49, 93, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.home-benefit span { display: block; margin-bottom: 6px; font-size: 1.45rem; }
.home-benefit strong { display: block; font-size: 0.86rem; }
.home-benefit small { display: block; margin-top: 3px; color: var(--home-muted); font-size: 0.72rem; }

.home-primary-cta,
.home-primary-cta:link,
.home-primary-cta:visited {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(470px, 100%);
  padding: 0 24px;
  border-radius: 15px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  background: linear-gradient(135deg, #64309d 0%, #3b176b 100%);
  box-shadow: 0 16px 36px rgba(61, 23, 107, 0.34);
  text-shadow: 0 1px 2px rgba(20, 6, 39, 0.34);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 900;
}
.home-primary-cta span { color: inherit; -webkit-text-fill-color: inherit; }
.home-primary-cta:hover,
.home-primary-cta:focus-visible { color: #ffffff !important; -webkit-text-fill-color: #ffffff; filter: brightness(1.08); outline: 3px solid rgba(91,46,145,.2); outline-offset: 3px; }
.home-cta-note { margin: 12px 0 0; color: #786f7c; font-size: 0.84rem; }

.home-flow-card {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(66, 43, 85, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(16px);
}
.home-flow-card::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 28px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe5a7, #f4c876);
  box-shadow: 0 0 34px rgba(244, 200, 118, 0.8);
}
.home-flow-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.home-flow-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -0.03em; }
.home-flow-date { color: var(--home-muted); font-size: 0.83rem; }
.home-flow-list { display: grid; gap: 15px; margin: 22px 0; }
.home-flow-item { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.home-flow-item > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--home-purple-soft); }
.home-flow-item:nth-child(2) > span { background: #ffede6; }
.home-flow-item:nth-child(3) > span { background: #e5f6f1; }
.home-flow-item small { display: block; color: var(--home-muted); font-size: 0.75rem; }
.home-flow-item strong { display: block; margin-top: 2px; font-size: 0.92rem; line-height: 1.5; }
.home-quote { margin: 0; padding-top: 18px; border-top: 1px solid var(--home-line); color: var(--home-purple-dark); font-family: Georgia, "Batang", serif; font-size: 1.08rem; font-weight: 700; line-height: 1.7; }

.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.home-section-head p { margin: 0 0 8px; color: var(--home-purple); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.05em; }
.home-section-head h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.25; letter-spacing: -0.05em; word-break: keep-all; }
.home-section-head > span { max-width: 480px; color: var(--home-muted); font-size: 0.95rem; text-align: right; }

.interest-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.interest-card {
  min-height: 148px;
  padding: 20px 16px;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 32px rgba(50, 34, 63, 0.06);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.interest-card:hover,
.interest-card:focus-visible { transform: translateY(-4px); border-color: rgba(91,46,145,.32); box-shadow: 0 18px 38px rgba(50,34,63,.12); outline: none; }
.interest-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #fff0d9; font-size: 1.3rem; }
.interest-card:nth-child(2) .interest-icon { background: #ffe7ef; }
.interest-card:nth-child(3) .interest-icon { background: #e8edff; }
.interest-card:nth-child(4) .interest-icon { background: #e6f4e9; }
.interest-card:nth-child(5) .interest-icon { background: #e5f5f4; }
.interest-card:nth-child(6) .interest-icon { background: #fff2d7; }
.interest-card h3 { margin: 13px 0 5px; font-size: 1rem; }
.interest-card p { margin: 0; color: var(--home-muted); font-size: 0.82rem; line-height: 1.55; }

.home-services-wrap { background: rgba(255,255,255,.58); border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
.service-showcase { display: grid; grid-template-columns: 0.72fr 2.28fr; gap: 28px; }
.popular-list { padding: 25px; border: 1px solid var(--home-line); border-radius: 22px; background: white; box-shadow: 0 15px 40px rgba(51,35,64,.07); }
.popular-list h3 { margin: 0 0 16px; font-size: 1.05rem; }
.popular-list ol { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.popular-list li { counter-increment: rank; display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; padding: 11px 0; border-bottom: 1px solid #eee9f0; color: #49424f; font-size: 0.88rem; }
.popular-list li:last-child { border-bottom: 0; }
.popular-list li::before { content: counter(rank); color: var(--home-purple); font-weight: 900; }
.popular-note { margin: 14px 0 0; color: #8b828f; font-size: 0.72rem; line-height: 1.5; }
.service-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service-card { min-height: 275px; position: relative; overflow: hidden; padding: 24px; border: 1px solid var(--home-line); border-radius: 22px; background: linear-gradient(150deg, #f7f3ff, #fff); text-decoration: none; }
.service-card:nth-child(2) { background: linear-gradient(150deg, #fff1f7, #fff); }
.service-card:nth-child(3) { background: linear-gradient(150deg, #fff7e9, #fff); }
.service-card:nth-child(4) { color: white; background: linear-gradient(150deg, #2f1859, #15122b); }
.service-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -48px; bottom: -48px; border-radius: 50%; background: rgba(117,72,163,.08); }
.service-card:nth-child(4)::after { background: rgba(255,255,255,.09); }
.service-badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #78529c; background: #ede4f7; font-size: 0.7rem; font-weight: 900; }
.service-card:nth-child(2) .service-badge { color: #a4476d; background: #ffe1ec; }
.service-card:nth-child(3) .service-badge { color: #956122; background: #ffebc7; }
.service-card:nth-child(4) .service-badge { color: #fff; background: rgba(255,255,255,.14); }
.service-card h3 { margin: 16px 0 8px; font-size: 1.28rem; letter-spacing: -0.04em; }
.service-card p { margin: 0; color: var(--home-muted); font-size: 0.88rem; line-height: 1.72; }
.service-card:nth-child(4) p { color: rgba(255,255,255,.75); }
.service-mini { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; justify-content: space-between; gap: 10px; align-items: end; }
.service-mini strong { font-size: 0.88rem; }
.service-mini span { color: var(--home-purple); font-weight: 900; }
.service-card:nth-child(4) .service-mini span { color: white; }

.preview-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 28px; align-items: stretch; }
.preview-result { padding: 30px; border: 1px solid var(--home-line); border-radius: 26px; background: white; box-shadow: var(--home-shadow); }
.preview-result-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.preview-result-head p { margin: 0; color: var(--home-purple); font-size: 0.78rem; font-weight: 900; }
.preview-result-head span { padding: 6px 9px; border-radius: 999px; color: #78529c; background: var(--home-purple-soft); font-size: .72rem; font-weight: 850; }
.preview-result h3 { margin: 14px 0 10px; font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.35; letter-spacing: -0.05em; }
.preview-result > p { margin: 0; color: var(--home-muted); line-height: 1.8; }
.preview-timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 30px 0; padding-top: 18px; }
.preview-timeline::before { content: ""; position: absolute; left: 8%; right: 8%; top: 28px; height: 2px; background: #ded3e8; }
.preview-stage { position: relative; z-index: 1; text-align: center; }
.preview-stage i { display: block; width: 18px; height: 18px; margin: 0 auto 10px; border: 4px solid white; border-radius: 50%; background: #c7b5d8; box-shadow: 0 0 0 2px #c7b5d8; }
.preview-stage.current i { background: var(--home-purple); box-shadow: 0 0 0 2px var(--home-purple); }
.preview-stage strong { display: block; font-size: .76rem; }
.preview-stage small { color: var(--home-muted); font-size: .7rem; }
.preview-highlight { padding: 18px; border-radius: 18px; background: linear-gradient(135deg, #f6effc, #fff7ed); }
.preview-highlight strong { display: block; margin-bottom: 6px; color: var(--home-purple-dark); }
.preview-highlight p { margin: 0; color: #5f5764; font-size: .88rem; line-height: 1.75; }

.unlock-card { padding: 30px; border-radius: 26px; color: white; background: linear-gradient(155deg, #3a1c68 0%, #21133f 65%, #181129 100%); box-shadow: var(--home-shadow); }
.unlock-label { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .72rem; font-weight: 900; }
.unlock-card h3 { margin: 16px 0 10px; font-size: 1.65rem; line-height: 1.4; letter-spacing: -.04em; }
.unlock-card > p { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.75; }
.unlock-list { display: grid; gap: 9px; margin: 24px 0; }
.unlock-item { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: .86rem; }
.unlock-item span { opacity: .82; }
.unlock-card a { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border-radius: 14px; color: var(--home-purple-dark); background: white; text-decoration: none; font-weight: 900; }
.unlock-small { margin-top: 12px !important; font-size: .72rem !important; text-align: center; }

.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.story-card { overflow: hidden; border: 1px solid var(--home-line); border-radius: 21px; background: white; text-decoration: none; box-shadow: 0 12px 30px rgba(53,35,68,.06); }
.story-visual { min-height: 120px; position: relative; overflow: hidden; background: linear-gradient(135deg, #282142, #8e689a); }
.story-card:nth-child(2) .story-visual { background: linear-gradient(135deg, #61482c, #c89c57); }
.story-card:nth-child(3) .story-visual { background: linear-gradient(135deg, #214b52, #74a69a); }
.story-card:nth-child(4) .story-visual { background: linear-gradient(135deg, #6a383f, #df9483); }
.story-visual::before { content: ""; position: absolute; inset: 20% 12%; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; transform: rotate(-18deg); }
.story-visual::after { content: "✦"; position: absolute; top: 34px; left: 50%; color: rgba(255,255,255,.9); font-size: 2.4rem; transform: translateX(-50%); }
.story-copy { padding: 19px; }
.story-copy span { color: var(--home-purple); font-size: .7rem; font-weight: 900; }
.story-copy h3 { margin: 7px 0 7px; font-size: 1rem; line-height: 1.5; word-break: keep-all; }
.story-copy p { margin: 0; color: var(--home-muted); font-size: .8rem; line-height: 1.65; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 26px; border: 1px solid #eadfce; border-radius: 22px; background: #fff8ee; }
.trust-item { display: grid; grid-template-columns: 44px 1fr; gap: 13px; align-items: start; }
.trust-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #e4d4be; border-radius: 14px; background: #fffdf8; font-size: 1.25rem; }
.trust-item strong { display: block; font-size: .92rem; }
.trust-item p { margin: 5px 0 0; color: #7a7168; font-size: .78rem; line-height: 1.6; }

.faq-list { display: grid; gap: 10px; max-width: 920px; margin: 0 auto; }
.faq-list details { border: 1px solid var(--home-line); border-radius: 17px; background: white; }
.faq-list summary { cursor: pointer; padding: 18px 20px; font-weight: 850; }
.faq-list p { margin: 0; padding: 0 20px 20px; color: var(--home-muted); line-height: 1.75; }

@media (max-width: 1000px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .home-flow-card { width: min(620px, 100%); }
  .interest-grid { grid-template-columns: repeat(3, 1fr); }
  .service-showcase { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .home-container { width: min(100% - 28px, 680px); }
  .home-section { padding: 54px 0; }
  .home-hero { min-height: auto; }
  .home-hero-inner { min-height: auto; padding-top: 52px; padding-bottom: 86px; }
  .home-hero h1 { font-size: clamp(2.3rem, 11vw, 3.5rem); }
  .home-benefits { grid-template-columns: repeat(2, 1fr); }
  .home-section-head { display: block; }
  .home-section-head > span { display: block; margin-top: 10px; text-align: left; }
  .interest-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .home-hero-lead br { display: none; }
  .home-benefit { min-height: 90px; }
  .home-flow-card { padding: 22px; }
  .interest-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .interest-card { min-height: 140px; padding: 17px 14px; }
  .service-cards { grid-template-columns: 1fr; }
  .service-card { min-height: 240px; }
  .story-grid { grid-template-columns: 1fr; }
  .preview-result, .unlock-card { padding: 23px; }
  .preview-timeline { grid-template-columns: repeat(5, minmax(58px,1fr)); overflow-x: auto; padding-bottom: 8px; }
}
