/* 스타플로우 AEO·GEO 사이트 공통 스타일 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --navy: #0b1530;
  --navy-2: #13204a;
  --ink: #1a2238;
  --muted: #5b6480;
  --line: #e4e8f2;
  --bg: #f6f8fc;
  --white: #fff;
  --brand: #4f46e5;
  --brand-2: #06b6d4;
  --accent: #22c55e;
  --warn: #f59e0b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: -.02em; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a.btn { color: #fff; }

/* 모바일 메뉴 토글 (2026-11-18) — 860px 이하에서 햄버거 버튼으로 펼침 */
.nav-toggle {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 42px; height: 42px; padding: 0; background: #fff; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 11px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 1000px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 860px) {
  .site-header .container { position: relative; gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px rgba(15,23,42,.14); padding: 4px 20px 16px;
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) {
    display: block; font-size: 16px; padding: 13px 2px;
    border-bottom: 1px solid var(--line);
  }
  /* 모바일에서는 헤더 우측 고정 버튼(.header-cta)이 상담 CTA를 맡는다 */
  .nav a.btn { display: none; }
}

/* 모바일 헤더 우측 상담 버튼 — 햄버거(☰)와 나란히 두어 1탭으로 상담 폼 이동 */
.site-header .header-cta { display: none; }
@media (max-width: 860px) {
  .site-header .header-cta {
    display: inline-flex; flex: 0 0 auto; margin-left: auto;
    padding: 9px 14px; font-size: 14px; border-radius: 10px; white-space: nowrap;
  }
  .logo { font-size: 18px; }
  .nav-toggle { flex: 0 0 auto; }
}
@media (max-width: 380px) {
  .logo { font-size: 16.5px; gap: 6px; }
  .logo-mark { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; }
  .site-header .header-cta { padding: 8px 11px; font-size: 13px; }
  .nav-toggle { width: 38px; height: 38px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 16px;
  background: var(--brand); color: #fff; border: 0; cursor: pointer; transition: .15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79,70,229,.3); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { box-shadow: none; background: rgba(255,255,255,.08); }
.btn-kakao { background: #fee500; color: #191919; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(6,182,212,.35), transparent 60%),
              radial-gradient(900px 500px at 0% 110%, rgba(79,70,229,.45), transparent 60%),
              var(--navy);
  color: #fff; padding: 72px 0 80px;
}
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 700; letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.25; letter-spacing: -.03em; font-weight: 800; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: #cbd5f5; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points { list-style: none; display: grid; gap: 8px; color: #dbe3ff; font-size: 15px; }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

.chat-demo { background: #fff; color: var(--ink); border-radius: 20px; padding: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.chat-demo .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.chat-demo .bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; display: block; }
.bubble { padding: 12px 14px; border-radius: 14px; font-size: 14.5px; margin-bottom: 10px; line-height: 1.6; }
.bubble.user { background: #eef2ff; margin-left: 40px; }
.bubble.ai { background: #f8fafc; border: 1px solid var(--line); margin-right: 20px; }
.bubble.ai b { color: var(--brand); }
.chat-demo .src { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.chat-demo .src span { background: #f1f5f9; padding: 3px 8px; border-radius: 999px; }
.chat-demo .src span.me { background: #dcfce7; color: #166534; font-weight: 700; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .kicker { color: var(--brand); font-weight: 800; font-size: 14px; letter-spacing: .06em; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.3; letter-spacing: -.03em; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
a.card { color: var(--ink); transition: .15s; }
a.card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
.card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; background: #eef2ff; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #eef2ff; color: var(--brand); margin-bottom: 12px; }

/* Problem */
.pain-list { list-style: none; display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.pain-list li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 18px 54px; position: relative; font-size: 16.5px; }
.pain-list li::before { content: "!"; position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 50%; background: #fef3c7; color: #b45309; font-weight: 900; display: grid; place-items: center; font-size: 14px; }

/* Compare table */
.table-wrap {
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  max-width: 100%;
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; min-width: 100%; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
th { background: #f8fafc; font-weight: 800; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 700; white-space: nowrap; }

/* 모바일 표 (2026-11-18) — 2열 표는 화면 폭에 맞추고, 3열 이상 넓은 표는 가로 스크롤
   스크롤 중에도 행 이름(첫 열)이 붙어 있어 어느 행인지 보입니다. */
.table-hint { display: none; }
@media (max-width: 640px) {
  .table-wrap { border-radius: 12px; }
  .table-wrap th, .table-wrap td { padding: 12px 14px; font-size: 14px; }
  .table-wrap td:first-child { white-space: normal; word-break: keep-all; min-width: 78px; }
  .table-wrap table.tbl-wide { min-width: 560px; }
  .table-wrap table.tbl-wide th:first-child,
  .table-wrap table.tbl-wide td:first-child {
    position: sticky; left: 0; z-index: 2;
    background: #fff; box-shadow: 1px 0 0 var(--line);
  }
  .table-wrap table.tbl-wide th:first-child { background: #f8fafc; }
  .table-wrap::-webkit-scrollbar { height: 6px; }
  .table-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
  .table-wrap::-webkit-scrollbar-track { background: #f1f5f9; }
  .table-hint {
    display: block; font-size: 12.5px; color: var(--muted);
    margin: 8px 2px 0; text-align: right;
  }
}

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: step; content: "STEP " counter(step); font-size: 12px; font-weight: 900; color: var(--brand); letter-spacing: .08em; }
.step h3 { font-size: 17px; margin: 8px 0 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card .tag { align-self: flex-start; }
.price-card.featured { border: 2px solid var(--brand); position: relative; }
.price-card.featured::after { content: "가장 많이 선택"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.price { font-size: 30px; font-weight: 900; letter-spacing: -.03em; margin: 8px 0 4px; color: var(--navy); }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; margin: 18px 0 24px; display: grid; gap: 8px; flex: 1; }
.price-card li { font-size: 15px; padding-left: 22px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.note { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 18px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 18px; color: #3b4563; font-size: 15.5px; }

/* Form */
.contact { background: var(--navy); color: #fff; }
.contact .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.3; letter-spacing: -.03em; margin-bottom: 16px; }
.contact p { color: #cbd5f5; }
.contact .benefits { list-style: none; margin: 24px 0; display: grid; gap: 10px; }
.contact .benefits li::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 8px; }
.contact .quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.form-card { background: #fff; color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.form-card h3 { font-size: 20px; margin-bottom: 4px; }
.form-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field label .req { color: #ef4444; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 14px; cursor: pointer; margin: 0; }
.chips input { width: auto; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 6px 0 16px; }
.agree input { margin-top: 4px; }
.form-msg { font-size: 14px; margin-top: 10px; color: #ef4444; min-height: 20px; }

/* Article (guide) */
.breadcrumb { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.article { max-width: 780px; margin: 0 auto; padding: 24px 20px 80px; }
.article h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.3; letter-spacing: -.03em; margin: 12px 0 14px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.article .tldr { background: #eef2ff; border-left: 4px solid var(--brand); border-radius: 12px; padding: 20px 22px; margin-bottom: 32px; font-size: 16.5px; }
.article .tldr strong { display: block; margin-bottom: 6px; color: var(--brand); }
.article h2 { font-size: 25px; letter-spacing: -.02em; margin: 44px 0 14px; line-height: 1.4; }
.article h3 { font-size: 19px; margin: 28px 0 10px; }
.article p { margin-bottom: 16px; font-size: 17px; color: #2a3350; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; font-size: 16.5px; color: #2a3350; }
.article .table-wrap { margin: 18px 0 24px; }
.article pre { background: #0f172a; color: #e2e8f0; padding: 18px; border-radius: 12px; overflow-x: auto; font-size: 14px; margin: 0 0 18px; line-height: 1.6; }
.article .cta-box { background: var(--navy); color: #fff; border-radius: 18px; padding: 28px; margin: 40px 0; text-align: center; }
.article .cta-box p { color: #cbd5f5; }
.article .cta-box h2 { margin: 0 0 8px; color: #fff; }
.related { display: grid; gap: 10px; margin-top: 12px; }
.related a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; color: var(--ink); }

/* Footer */
.site-footer { background: #070d1f; color: #94a3b8; padding: 48px 0 110px; font-size: 14px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer a { color: #cbd5e1; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer .biz { line-height: 1.9; }

/* Mobile floating CTA (2026-11-18)
   Netlify의 'Powered by Netlify' 배지가 오른쪽 아래(bottom·right 10~16px, 약 180×44px)에 고정으로 뜬다.
   하단 전체 폭 고정바는 이 배지와 겹치므로, 왼쪽 아래에 뜨는 컴팩트한 둥근 버튼 1개로 바꾼다. */
.sticky-cta {
  position: fixed; left: 14px; right: auto;
  bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; width: auto; max-width: calc(100vw - 28px);
  padding: 0; margin: 0; background: none; border: 0; box-shadow: none;
  transition: opacity .18s ease, transform .18s ease;
}
/* 상담 폼이 화면 아래에 들어오면 숨김 — 제출 버튼·입력칸을 가리지 않게 (main.js) */
.sticky-cta.is-hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }
.sticky-cta .diag { display: none; }
.sticky-cta .kakao {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 12px 18px; border-radius: 999px;
  font-weight: 800; font-size: 14.5px; line-height: 1.2; white-space: nowrap;
  background: #fee500; color: #191919;
  box-shadow: 0 6px 18px rgba(15,23,42,.24);
}
.sticky-cta .kakao:hover { text-decoration: none; }
@media (max-width: 640px) {
  .sticky-cta { display: block; }
}
/* 좁은 폰(≤360px)에서는 Netlify 배지(188px) 왼쪽에 남는 폭이 작아 버튼을 더 줄인다 */
@media (max-width: 360px) {
  .sticky-cta { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .sticky-cta .kakao { padding: 11px 13px; font-size: 13px; }
}

@media (max-width: 960px) {
  .hero .container, .contact .container { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 56px; }
  .grid-3, .grid-4, .grid-2, .steps, .field-row { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .chat-demo { display: none; }
  .hero p.lead { font-size: 16.5px; }
}


/* ===== 성과 데이터 (마케터JD 사례) ===== */
.stat-hero { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-big { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.stat-big .label { font-weight: 800; color: var(--muted); font-size: 15px; }
.stat-big .nums { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 4px; flex-wrap: wrap; }
.stat-big .from { font-size: 28px; font-weight: 800; color: #94a3b8; text-decoration: line-through; text-decoration-thickness: 2px; }
.stat-big .to { font-size: 54px; font-weight: 900; letter-spacing: -.04em; color: var(--navy); line-height: 1; }
.stat-big .delta { display: inline-block; background: #dcfce7; color: #166534; font-weight: 800; border-radius: 999px; padding: 4px 12px; font-size: 15px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 52px; gap: 12px; align-items: center; font-size: 15px; font-weight: 700; }
.bar-track { height: 14px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.bar-row .v { text-align: right; color: var(--navy); }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 12px 16px; }
.hero-stats b { display: block; font-size: 26px; letter-spacing: -.03em; }
.hero-stats span { font-size: 13px; color: #cbd5f5; }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 14px; }
.steps-6 { grid-template-columns: repeat(3, 1fr); }
.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kw-chips span { background: #f1f5f9; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
@media (max-width: 960px) { .steps-6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .stat-hero, .steps-6 { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 92px 1fr 46px; font-size: 14px; }
  .stat-big .to { font-size: 44px; }
}

/* ===== 모바일 제출 버튼 가림 방지 (2026-11-18 패치) =====
   하단 고정바(z-index 60, 높이 약 66px + safe-area)가 화면 아래를 덮기 때문에
   폼 맨 아래 동의 체크·제출 버튼이 그 아래로 들어가면 탭이 고정바로 새어 나갔다.
   폼 카드 아래에 고정바 높이만큼 여백을 두고, 앵커·scrollIntoView 이동 시에도
   고정바 높이를 오프셋으로 확보해 버튼이 항상 고정바 위에 오도록 한다. */
#contact { scroll-margin-top: 72px; }
#lead-form { scroll-margin-top: 80px; }
.form-card button[type="submit"] { scroll-margin-top: 76px; }  /* 위로 스크롤해 올릴 때 상단 고정 헤더(64px)에 가리지 않게 */
@media (max-width: 640px) {
  html { scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .contact { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .form-card { margin-bottom: 8px; }
  .form-card .agree { margin-bottom: 18px; }
  .form-card button[type="submit"] { scroll-margin-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .form-card .form-msg { margin-bottom: 6px; }
}
