/* =========================================================
   상고이유서 정밀 진단 이벤트 랜딩 · 법무법인 저스트 · 신민호 변호사
   Palette: Navy + Gold + Cream (태양기획 DNA → legal brand 번역)
   ========================================================= */

:root {
  --navy-darkest: #070C22;
  --navy-deep:    #0A0F2E;
  --navy:         #0E1A3C;
  --navy-light:   #152358;

  --gold:         #D4A84A;
  --gold-hi:      #E8C063;
  --gold-soft:    rgba(212, 168, 74, 0.14);
  --gold-line:    rgba(212, 168, 74, 0.35);

  --cream:        #FAF8F3;
  --cream-dim:    #EDE7D5;
  --text-dim:     rgba(250, 248, 243, 0.72);
  --text-faint:   rgba(250, 248, 243, 0.48);

  --danger:       #E26B5C;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-card: 0 20px 60px rgba(0,0,0,0.35);
  --shadow-cta:  0 14px 30px rgba(212,168,74,0.35);

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-hand: "Pretendard Variable", "Nanum Pen Script", "Gowun Dodum", cursive;

  --content-max: 1120px;
  --content-narrow: 780px;
}

/* ----------- Reset ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--navy-deep);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 88px; /* mobile sticky 대비 (mobile에서만 visible, safe-area 고려) */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
em { font-style: normal; color: var(--gold-hi); font-weight: 700; }
h1,h2,h3,h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

/* ----------- Layout primitives ----------- */
.container {
  max-width: var(--content-max);
  padding: 0 24px;
  margin: 0 auto;
}
.container--narrow { max-width: var(--content-narrow); }

.section {
  padding: 96px 0;
}
.section--navy           { background: var(--navy); }
.section--navy-dark      { background: var(--navy-deep); }
.section--navy-deepest   { background: var(--navy-darkest); }

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--gold);
}
.section-eyebrow.gold { color: var(--gold); }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: 24px;
}
.section-title--xl { font-size: clamp(34px, 5.6vw, 56px); line-height: 1.22; }
.section-title--dark { color: var(--navy-deep); }

.handwrite {
  font-family: var(--font-hand);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1.5;
}
.handwrite.gold { color: var(--gold-hi); }

.stroke-gold {
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0,0,0,0.25);
}
.stroke-gold--thick {
  background: linear-gradient(180deg, transparent 60%, rgba(212,168,74,0.35) 60%);
  padding: 0 6px;
}

/* ============ Alert Bar ============ */
.alert-bar {
  background: var(--navy-darkest);
  color: var(--cream);
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--gold-line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.alert-bar strong { color: var(--gold-hi); font-weight: 800; margin-right: 4px; }
.alert-bar__dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(212,168,74,0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: 0.7; }
}

/* ============ Brand Bar ============ */
.brand-bar {
  background: rgba(10, 15, 46, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--gold-line);
  position: sticky;
  top: 0;
  z-index: 39;
}
.brand-bar__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand-bar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.brand-bar__logo img {
  height: 32px;
  width: auto;
  display: block;
}
.brand-bar__nav {
  display: flex;
  gap: 24px;
  flex: 1;
  margin-left: 12px;
}
.brand-bar__nav a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}
.brand-bar__nav a:hover { color: var(--gold-hi); }
.brand-bar__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-darkest);
  font-weight: 800;
  font-size: 14px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.brand-bar__tel:hover { background: var(--gold-hi); transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 120px 0 128px;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 0%, rgba(212,168,74,0.22), transparent 55%), var(--navy-darkest);
  isolation: isolate;
}

/* Hero split (text + visual) */
.hero__inner--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}
.hero__text { min-width: 0; }
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}
.hero__visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(0,0,0,0.2);
  background: var(--navy-deep);
  aspect-ratio: 4 / 5;
  max-height: 560px;
}
.hero__visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.hero__visual-badge {
  position: absolute;
  left: 20px; bottom: 20px; right: 20px;
  background: rgba(212,168,74,0.95);
  color: var(--navy-darkest);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.hero__visual-badge-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.75;
}
.hero__visual-badge-num {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hero__visual-badge-foot {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  opacity: 0.75;
}
.hero__stack {
  display: grid;
  gap: 8px;
}
.hero__stack li {
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--cream);
}
.hero__stack li b { color: var(--gold-hi); }
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 90%, rgba(212,168,74,0.18), transparent 50%),
    linear-gradient(180deg, transparent 65%, rgba(0,0,0,0.35));
  z-index: -1;
}
.hero__inner {
  max-width: var(--content-max);
  padding: 0 24px;
  margin: 0 auto;
}
.hero__eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero__title {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.12;
  color: var(--cream);
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.hero__handwrite {
  font-family: var(--font-hand);
  font-style: italic;
  color: var(--gold-hi);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 640px;
}
.hero__body {
  color: var(--text-dim);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 36px;
}
.hero__bullet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.bullet-chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  font-size: 14px;
  color: var(--cream);
}
.bullet-chip b { color: var(--gold-hi); margin-left: 4px; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.hero__note {
  color: var(--text-faint);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ============ CTA buttons ============ */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.cta:hover { transform: translateY(-2px); }
.cta--lg { padding: 18px 30px; font-size: 17px; }
.cta__icon { font-size: 1.1em; }

.cta--gold {
  background: var(--gold);
  color: var(--navy-darkest);
  box-shadow: var(--shadow-cta);
}
.cta--gold:hover { background: var(--gold-hi); box-shadow: 0 18px 40px rgba(212,168,74,0.45); }

.cta--ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--gold-line);
}
.cta--ghost:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-hi);
}

/* ============ Check list ============ */
.check-list {
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
}
.check-list .check {
  color: var(--gold);
  font-weight: 900;
  flex-shrink: 0;
  font-size: 18px;
}
.check-list__text {
  flex: 1;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.check-list__text b {
  color: #fff;
  font-weight: 800;
}

/* ============ Problem stats ============ */
.problem .handwrite {
  margin-bottom: 20px;
  font-size: clamp(18px, 2.2vw, 24px);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 64px 0 48px;
}
.stat {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
}
.stat__num {
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 900;
  color: var(--gold-hi);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.stat__num--danger { color: var(--danger); }
.stat__unit {
  font-size: 0.5em;
  color: var(--cream);
  margin-left: 6px;
  font-weight: 700;
}
.stat__label {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}
.problem__closing {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--cream);
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============ Story ============ */
.section--story {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
  text-align: center;
}
.story__kicker { margin-bottom: 32px; font-size: clamp(18px, 2.2vw, 22px); }
.story__body {
  margin-top: 32px;
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-dim);
  line-height: 1.75;
}

/* ============ Proof ============ */
.section--proof {
  background: var(--navy-deep);
  text-align: center;
}

/* Proof hero (certificate + facts) */
.proof-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin: 56px 0 64px;
  text-align: left;
}
.proof-cert {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: var(--shadow-card), 0 0 0 1px var(--gold-line);
  transform: rotate(-1.2deg);
  transition: transform 0.35s ease;
}
.proof-cert:hover { transform: rotate(0) scale(1.01); }
.proof-cert img {
  width: 100%;
  height: auto;
  display: block;
}
.proof-facts__kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-hi);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.proof-facts__kicker b { color: var(--gold); font-weight: 900; }
.proof-facts__title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 24px;
  font-weight: 800;
}
.proof-facts__list {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.proof-facts__list li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15.5px;
  color: var(--cream);
}
.proof-facts__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  background: var(--gold);
  color: var(--navy-darkest);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  border-radius: 4px;
}
.proof-facts__list li b { color: var(--gold-hi); }
.proof-facts__sign {
  font-family: var(--font-hand);
  font-style: italic;
  color: var(--gold-hi);
  font-size: 17px;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px dashed rgba(212,168,74,0.35);
}
.proof-facts__sign small {
  display: block;
  margin-top: 6px;
  color: var(--text-faint);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.proof-card {
  margin: 48px auto 28px;
  max-width: 560px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
}
.proof-card::before {
  content: "판결문 발췌";
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--gold);
  color: var(--navy-darkest);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 4px;
}
.proof-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.proof-card figcaption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--navy-light);
  text-align: center;
}
.proof__caption {
  font-family: var(--font-hand);
  font-style: italic;
  color: var(--gold-hi);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  margin-bottom: 8px;
}
.proof__byline {
  color: var(--text-dim);
  font-size: 14px;
}

/* ============ [E] Lawyer profile ============ */
.section--profile {
  background: var(--cream);
  color: var(--navy-deep);
}
.section--profile .section-eyebrow { color: var(--gold); }
.section--profile .section-title--dark { color: var(--navy-deep); margin-bottom: 48px; }

.lawyer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: flex-start;
}
.lawyer__photo {
  position: sticky;
  top: 80px;
}
.lawyer__photo-ph {
  aspect-ratio: 3 / 4;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gold);
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(212,168,74,0.06) 12px 24px),
    var(--cream-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-light);
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  line-height: 1.5;
  padding: 20px;
}
.lawyer__photo-real {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 24px 48px rgba(7,12,34,0.18), 0 0 0 1px rgba(212,168,74,0.4);
}
.lawyer__photo-real img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  background: var(--cream-dim);
  display: block;
}
.lawyer__photo-real figcaption {
  padding: 12px 16px;
  font-size: 12px;
  text-align: center;
  color: var(--cream);
  background: var(--navy-deep);
  letter-spacing: 0.08em;
  font-weight: 700;
}
.lawyer__contact {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.lawyer__contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(14,26,60,0.1);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease;
}
.lawyer__contact a:hover { background: rgba(212,168,74,0.08); }
.lawyer__tagline {
  font-family: var(--font-hand);
  font-style: italic;
  color: var(--navy-deep);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--gold);
}
.lawyer__tagline b { color: var(--gold); }

.lawyer__history { display: grid; gap: 20px; }
.lawyer__history > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(14,26,60,0.1);
}
.lawyer__history > div:last-child { border-bottom: none; padding-bottom: 0; }
.lawyer__history dt {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 2px;
}
.lawyer__history dd {
  margin: 0;
  color: var(--navy-deep);
  font-size: 15.5px;
  line-height: 1.75;
}
.lawyer__history dd b { color: var(--navy-deep); font-weight: 800; }

/* ============ [E.1] Cert Gallery ============ */
.cert-gallery {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(14,26,60,0.12);
  text-align: center;
}
.cert-gallery__eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cert-gallery__title {
  color: var(--navy-deep);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  margin-bottom: 32px;
}
.cert-gallery__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  align-items: stretch;
  max-width: 720px;
  margin: 0 auto;
}
.cert-gallery__grid figure {
  flex: 0 1 320px;
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(14,26,60,0.1);
  box-shadow: 0 12px 30px rgba(14,26,60,0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cert-gallery__grid figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(14,26,60,0.12);
}
.cert-gallery__grid img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}
.cert-gallery__grid figcaption {
  color: var(--navy-deep);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}
.cert-gallery__grid figcaption small {
  display: block;
  margin-top: 4px;
  color: var(--navy-light);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
}
/* ============ [E.2] Cases ============ */
.section--cases {
  background: var(--navy);
}
.section--cases .section-title { text-align: center; }
.cases__lead {
  text-align: center;
  color: var(--text-dim);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 48px;
}
.cases__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0 auto;
  max-width: 1040px;
}
.cases__list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.cases__list li:hover {
  border-color: var(--gold-line);
  transform: translateY(-3px);
}
.cases__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold-hi);
  font-weight: 900;
  font-size: 15px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}
.cases__list h3 {
  color: var(--cream);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 800;
  margin-bottom: 8px;
}
.cases__list p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}
.cases__foot {
  text-align: center;
  margin-top: 40px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.7;
}
.cases__foot b { color: var(--text-dim); font-weight: 700; }

/* ============ [E.3] Reviews ============ */
.section--reviews {
  background: var(--navy-deep);
  text-align: center;
}
.reviews {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
.review {
  padding: 22px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.review header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.review__stars {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.review__cat {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.review p {
  color: var(--cream);
  font-size: 15px;
  line-height: 1.7;
}
.reviews__foot {
  margin-top: 24px;
  color: var(--text-faint);
  font-size: 12px;
}

/* ============ [F] Library (PDF 카드) ============ */
.library { background: var(--navy-darkest); }
.library__title { text-align: center; margin-bottom: 16px; }
.library__lead {
  text-align: center;
  color: var(--text-dim);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 56px;
}

.library__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pdf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.pdf-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-line);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}

.pdf-card__label {
  display: inline-block;
  align-self: flex-start;
  background: var(--gold-soft);
  color: var(--gold-hi);
  border: 1px solid var(--gold-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.pdf-card__title {
  color: var(--cream);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 800;
  margin-bottom: 14px;
}
.pdf-card__title em { display: inline; }

.pdf-card__desc {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 18px;
  flex-grow: 1;
}

.pdf-card__keys {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.1);
}
.pdf-card__keys li {
  color: var(--cream);
  font-size: 13.5px;
  padding-left: 16px;
  position: relative;
}
.pdf-card__keys li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.pdf-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.pdf-card__filecode {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.pdf-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}
.pdf-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
  cursor: pointer;
}
.pdf-card * { cursor: pointer; }
.pdf-card:hover .pdf-card__link {
  color: #f0d992;
  transform: translateX(2px);
}

/* Feature variant (신민호 변호사 직접 저술) */
.pdf-card--feature {
  border: 1px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(212,168,74,0.09), rgba(212,168,74,0.02)),
    var(--navy);
  position: relative;
}
.pdf-card--feature::before {
  content: "★";
  position: absolute;
  top: 20px; right: 22px;
  color: var(--gold);
  font-size: 18px;
  opacity: 0.8;
}
.pdf-card--feature .pdf-card__label {
  background: var(--gold);
  color: var(--navy-darkest);
  border-color: var(--gold);
}

.library__foot {
  text-align: center;
  margin-top: 40px;
  color: var(--text-faint);
  font-size: 13px;
}

/* ============ [G] Diff 3 박스 ============ */
.diff__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.diff-card {
  padding: 36px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  position: relative;
}
.diff-card__num {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
}
.diff-card__title {
  color: var(--cream);
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.diff-card__desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

/* ============ [H] Process flow ============ */
.flow {
  display: grid;
  gap: 20px;
  margin-top: 48px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.flow__step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.flow__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-darkest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  flex-shrink: 0;
}
.flow__body h3 {
  color: var(--cream);
  font-size: 19px;
  margin-bottom: 8px;
}
.flow__body p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

/* ============ [I] Kakao mockup ============ */
.kakao {
  max-width: 420px;
  margin: 48px auto 0;
  background: #ABC1D1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 4px solid #0f0f0f;
}
.kakao__head {
  background: #ABC1D1;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.kakao__back, .kakao__search { font-size: 18px; color: #000; }
.kakao__body {
  padding: 20px 14px;
  display: grid;
  gap: 10px;
  min-height: 420px;
}
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
  position: relative;
}
.bubble--me {
  background: #FAE100;
  align-self: flex-end;
  justify-self: flex-end;
  border-top-right-radius: 4px;
}
.bubble--you {
  background: #fff;
  align-self: flex-start;
  justify-self: flex-start;
  border-top-left-radius: 4px;
}

/* ============ [J] Event notice ============ */
.event-notice { background: var(--cream); color: var(--navy-deep); }
.event-notice .section-title--dark { margin-bottom: 32px; text-align: center; }

.notice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.notice-card {
  background: #fff;
  border: 1px solid rgba(14,26,60,0.08);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.notice-card__label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.notice-card p {
  color: var(--navy-deep);
  font-size: 15px;
  line-height: 1.65;
}

.legal-notice {
  background: rgba(212,168,74,0.08);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 24px 28px;
  max-width: 780px;
  margin: 0 auto;
}
.legal-notice__title {
  color: var(--gold);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.legal-notice p {
  color: var(--navy-deep);
  font-size: 14px;
  line-height: 1.7;
}
.legal-notice__foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(14,26,60,0.2);
  color: var(--navy-light) !important;
}

/* ============ [K] FAQ ============ */
.faq {
  margin-top: 40px;
  display: grid;
  gap: 8px;
}
.faq__item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0 26px;
  transition: background 0.15s ease;
}
.faq__item[open] {
  background: rgba(212,168,74,0.05);
  border-color: var(--gold-line);
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 16px;
  color: var(--cream);
  padding: 22px 0;
  position: relative;
  padding-right: 40px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 24px;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p {
  padding: 0 0 22px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
}

/* ============ [L] Final CTA ============ */
.final {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,168,74,0.22), transparent 55%),
    var(--navy-darkest);
  text-align: center;
  padding: 120px 0 128px;
}
.final__kicker {
  margin-bottom: 32px;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.55;
}
.final__kicker u { text-decoration-color: var(--gold); text-decoration-thickness: 3px; }

.final__title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 48px;
  font-weight: 900;
}

.final__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 28px;
}

.final__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 40px;
  background: var(--gold);
  color: var(--navy-darkest);
  border-radius: 999px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  box-shadow: var(--shadow-cta);
  transition: transform 0.15s ease, background 0.15s ease;
}
.final__phone:hover {
  transform: translateY(-3px);
  background: var(--gold-hi);
}

.final__mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 22px 32px;
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}
.final__mail:hover {
  background: var(--gold);
  color: var(--navy-darkest);
}

.final__sub {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.final__sub a { color: var(--gold-hi); }

.final__signature {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  padding-top: 20px;
  border-top: 1px solid var(--gold-line);
  max-width: 420px;
  margin: 0 auto;
}

/* ============ Footer ============ */
.footer {
  background: var(--navy-darkest);
  padding: 56px 0 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.footer__logo {
  width: 180px;
  height: auto;
  margin: 0 auto 24px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.footer__name {
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.footer__line {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.75;
}
.footer__notice {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.7;
}

/* ============ Mobile Sticky CTA ============ */
.mobile-cta {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 50;
  background: var(--gold);
  color: var(--navy-darkest);
  padding: 16px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), var(--shadow-cta);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
}
.mobile-cta__num {
  margin-left: auto;
  font-size: 14px;
  opacity: 0.85;
  font-weight: 700;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .library__grid { grid-template-columns: repeat(2, 1fr); }
  .lawyer { grid-template-columns: 240px 1fr; gap: 40px; }
  .hero__inner--split { gap: 40px; }
  .proof-hero { grid-template-columns: 1fr; gap: 32px; }
  .proof-cert { transform: rotate(0); max-width: 420px; margin: 0 auto; }
  .cases__list { grid-template-columns: 1fr; }
  .brand-bar__nav { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding: 80px 0 96px; }
  .hero__inner--split { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual-card { max-height: 480px; aspect-ratio: 3 / 4; }
  .check-list li { padding: 14px 16px; font-size: 15px; line-height: 1.55; gap: 10px; }
  .check-list .check { font-size: 16px; }
  .proof-facts__list li { grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 14px; font-size: 14.5px; }
  .cert-gallery__grid { flex-direction: column; max-width: 360px; align-items: center; }
  .cert-gallery__grid img { height: 260px; }
  .brand-bar__inner { gap: 14px; padding: 12px 16px; }
  .brand-bar__logo img { height: 28px; }
  .brand-bar__tel { padding: 8px 12px; font-size: 13px; }

  .stat-row { grid-template-columns: 1fr; gap: 16px; }
  .diff__grid { grid-template-columns: 1fr; }
  .library__grid { grid-template-columns: 1fr; }
  .notice-grid { grid-template-columns: 1fr; }

  .lawyer {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .lawyer__photo {
    position: static;
    max-width: 240px;
    margin: 0 auto;
  }
  .lawyer__history > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .flow__step { grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; }
  .flow__num { width: 40px; height: 40px; font-size: 18px; }

  .hero__ctas { flex-direction: column; align-items: stretch; }
  .cta--lg { width: 100%; }
  .final__channels { flex-direction: column; align-items: stretch; }
  .final__phone, .final__mail { justify-content: center; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 96px; }
}

@media (max-width: 480px) {
  .alert-bar { font-size: 12.5px; padding: 10px 14px; }
  .hero__title { font-size: clamp(36px, 10vw, 48px); }
  .section-title { font-size: clamp(24px, 7vw, 32px); }
  .section-title--xl { font-size: clamp(28px, 9vw, 40px); }
  .pdf-card { padding: 22px 20px; }
  .kakao { margin: 32px -12px 0; border-radius: 22px; }
}

/* ===== Footer: 메인 홈페이지로 이동 버튼 ===== */
.footer__home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px 22px;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 999px;
  color: #C9A84C;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer__home-btn:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: #C9A84C;
  color: #fff;
}
.footer__home-btn span { font-size: 16px; }
