/* ===== SSLCheck base styles ===== */
:root {
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --surface: #ffffff;
    --ink: #0f172a;
    --ink-soft: #475569;
    --line: #e2e8f0;
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --ok: #16a34a;
    --warn: #f59e0b;
    --danger: #dc2626;
    --expired: #475569;
    --radius: 12px;
    --maxw: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
                 "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: #f8fafc;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-hl { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }

/* ---- buttons ---- */
.btn-primary, .btn-ghost {
    display: inline-block; border-radius: 8px; padding: 9px 18px; font-weight: 700; font-size: 15px;
    cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink-soft) !important; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); text-decoration: none; }
.btn-lg { padding: 14px 30px; font-size: 17px; }

/* ---- main ---- */
.site-main { padding: 48px 20px; min-height: 60vh; }

/* ---- hero ---- */
.hero { text-align: center; padding: 40px 0 56px; }
.hero-title { font-size: 44px; line-height: 1.25; font-weight: 800; margin: 0 0 16px; letter-spacing: -.5px; }
.hero-title .hl { color: var(--brand); }
.hero-sub { font-size: 19px; color: var(--ink-soft); margin: 0 0 32px; }
.hero-check { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.hero-check input { flex: 1; padding: 14px 16px; font-size: 16px; border: 1px solid var(--line);
    border-radius: 8px; outline: none; }
.hero-check input:focus { border-color: var(--brand); }
.hero-note { color: var(--ink-soft); font-size: 14px; margin-top: 12px; }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0 56px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature-ico { width: 48px; height: 48px; border-radius: 12px; background: #eff6ff;
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-ico svg { display: block; }
.feature-card h3 { margin: 0 0 8px; font-size: 19px; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---- why ---- */
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; }
.why h2 { margin: 0 0 24px; font-size: 28px; }
.why-list { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 640px; text-align: left; }
.why-list li { padding: 10px 0 10px 30px; color: var(--ink-soft);
    background: url("/resources/images/icons/check.svg") no-repeat left 13px; background-size: 18px 18px; }
.why-list strong { color: var(--ink); }

/* ---- generic section ---- */
.section { padding: 56px 0; }
.section-alt { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 48px 36px; margin: 8px 0; }
.section-title { text-align: center; font-size: 28px; margin: 0 0 10px; letter-spacing: -.3px; }
.section-sub { text-align: center; color: var(--ink-soft); margin: 0 auto 36px; max-width: 580px; }
.section-cta { text-align: center; margin-top: 32px; }

/* ---- stat bar ---- */
.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; }
.stat { text-align: center; padding: 0 8px; }
.stat-num { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-no { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
    font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ---- feature grid (상세) ---- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-item { background: #f8fafc; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feat-ico { width: 26px; height: 26px; padding: 9px; background: #eff6ff; border-radius: 10px;
    box-sizing: content-box; display: block; margin-bottom: 14px; }
.feat-item h3 { margin: 0 0 6px; font-size: 16px; }
.feat-item p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---- risk ---- */
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.risk-card { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--danger);
    border-radius: var(--radius); padding: 24px; }
.risk-card h3 { margin: 0 0 8px; font-size: 17px; }
.risk-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---- compare table ---- */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; text-align: left; font-size: 14px; border-top: 1px solid var(--line); }
.compare thead th { background: #f8fafc; border-top: none; font-size: 13px; }
.compare th.col-us, .compare td.col-us { background: #eff6ff; font-weight: 600; color: var(--brand-dark); }
.compare thead th.col-us { color: var(--brand); }

/* ---- FAQ ---- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 14px; font-size: 20px; color: var(--ink-soft); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }

/* ---- CTA band ---- */
.cta-band { text-align: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: 16px; padding: 48px 24px; margin: 56px 0; color: #fff; }
.cta-band h2 { font-size: 26px; margin: 0 0 10px; }
.cta-band p { margin: 0 0 24px; opacity: .9; }
.btn-cta { display: inline-block; background: #fff; color: var(--brand-dark); font-weight: 700;
    padding: 14px 32px; border-radius: 8px; font-size: 16px; }
.btn-cta:hover { text-decoration: none; background: #f1f5f9; }

/* ---- features detail page ---- */
.feat-detail { display: flex; flex-direction: column; gap: 36px; margin-bottom: 16px; }
.fd-group h2 { font-size: 20px; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.fd-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fd-item { display: flex; gap: 12px; }
.fd-item img { flex-shrink: 0; margin-top: 2px; }
.fd-item h3 { margin: 0 0 5px; font-size: 16px; }
.fd-item p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---- feature matrix ---- */
.matrix { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; }
.matrix th, .matrix td { padding: 12px 14px; font-size: 14px; border-top: 1px solid var(--line); text-align: center; }
.matrix thead th { background: #f8fafc; border-top: none; }
.matrix th:first-child, .matrix td:first-child { text-align: left; }
.mx-ico { vertical-align: middle; }

/* ---- pricing ---- */
.page-head { text-align: center; margin-bottom: 36px; }
.page-head h1 { font-size: 34px; margin: 0 0 10px; }
.page-head p { color: var(--ink-soft); margin: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.plan-featured { border-color: var(--brand); box-shadow: 0 8px 24px rgba(37,99,235,.12); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan-name { font-size: 20px; margin: 0 0 12px; }
.plan-price { margin-bottom: 4px; }
.price-num { font-size: 30px; font-weight: 800; }
.price-unit { color: var(--ink-soft); }
.plan-yearly { color: var(--ink-soft); font-size: 13px; margin: 0 0 16px; }
.plan-yearly-muted { color: #94a3b8; }
.plan-feats { list-style: none; padding: 0; margin: 16px 0 24px; font-size: 14px; }
.plan-feats li { padding: 7px 0 7px 26px; border-top: 1px solid var(--line);
    background: url("/resources/images/icons/check.svg") no-repeat left 9px; background-size: 16px 16px; }
.plan-feats li.feat-off { color: #cbd5e1; background-image: url("/resources/images/icons/minus.svg"); }
.plan-cta { display: block; text-align: center; margin-top: auto; }

/* ---- status badges (대시보드 공용) ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
    font-size: 13px; font-weight: 700; }
.badge-safe { background: #dcfce7; color: var(--ok); }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: var(--danger); }
.badge-expired { background: #e2e8f0; color: var(--expired); }

/* ---- free check (/check) ---- */
.check-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 16px; }
.check-form input { flex: 1; padding: 13px 16px; font-size: 16px; border: 1px solid var(--line);
    border-radius: 8px; outline: none; }
.check-form input:focus { border-color: var(--brand); }
.check-error { text-align: center; color: var(--danger); font-weight: 600; }

.result-card { max-width: 720px; margin: 28px auto 0; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 28px; }
.result-error { border-color: #fecaca; background: #fef2f2; }
.result-err-msg { color: var(--danger); font-weight: 600; font-size: 16px; margin: 8px 0 0; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.result-head h2 { margin: 0 0 8px; font-size: 22px; word-break: break-all; }
.result-highlight { font-size: 17px; color: var(--ink-soft); margin-bottom: 20px; }
.result-highlight strong { color: var(--ink); }

.grade { flex-shrink: 0; width: 56px; height: 56px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #fff; }
.grade-aplus, .grade-a { background: var(--ok); }
.grade-b { background: #65a30d; }
.grade-c { background: var(--warn); }
.grade-d, .grade-e { background: #ea580c; }
.grade-f { background: var(--danger); }

.result-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.result-table th, .result-table td { text-align: left; padding: 10px 8px; border-top: 1px solid var(--line);
    vertical-align: top; }
.result-table th { width: 130px; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12.5px; }
.fp { word-break: break-all; color: var(--ink-soft); }
.txt-ok { color: var(--ok); font-weight: 600; }
.txt-danger { color: var(--danger); font-weight: 600; }
.result-cta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.result-cta p { color: var(--ink-soft); margin: 0 0 14px; }

/* ---- prose / page ---- */
.prose { max-width: 720px; margin: 0 auto; color: var(--ink-soft); }
.prose h2 { color: var(--ink); font-size: 20px; margin: 28px 0 10px; }
.prose ul { padding-left: 20px; }
.error-page { text-align: center; padding: 60px 0; }
.error-page h1 { font-size: 28px; margin-bottom: 12px; }

/* ---- blog ---- */
.blog-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 880px; margin: 0 auto; }
.blog-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; color: var(--ink); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.blog-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-4px); box-shadow: 0 14px 32px rgba(37,99,235,.12); }
.card-thumb { display: block; width: calc(100% + 48px); height: auto; margin: -24px -24px 16px;
    border-radius: var(--radius) var(--radius) 0 0; }
.post-thumb { display: block; width: 100%; height: auto; border-radius: 14px; margin: 4px 0 28px;
    box-shadow: 0 12px 30px rgba(15,23,42,.14); }
.blog-meta { color: #94a3b8; font-size: 13px; margin-bottom: 8px; }
.blog-card h2 { font-size: 18px; margin: 0 0 8px; line-height: 1.4; }
.blog-card p { color: var(--ink-soft); font-size: 14px; margin: 0 0 12px; }
.blog-more { color: var(--brand); font-weight: 600; font-size: 14px; }

.blog-post { max-width: 720px; margin: 0 auto; }
.blog-back { display: inline-block; font-size: 14px; margin-bottom: 20px; }
.blog-title { font-size: 30px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -.3px; }
.blog-post .blog-meta { margin-bottom: 28px; }
.blog-body { color: #1e293b; font-size: 16px; line-height: 1.8; }
.blog-body h2 { font-size: 21px; margin: 32px 0 12px; }
.blog-body p { margin: 0 0 16px; }
.blog-body ul { padding-left: 22px; margin: 0 0 16px; }
.blog-body li { margin-bottom: 8px; }
.blog-body code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 14px;
    font-family: ui-monospace, Consolas, monospace; }
.blog-body a { text-decoration: underline; }
.blog-refs { font-size: 14px; }
.blog-refs li { margin-bottom: 6px; }
.blog-cta { margin-top: 40px; padding: 28px; background: #f8fafc; border: 1px solid var(--line);
    border-radius: var(--radius); text-align: center; }
.blog-cta h3 { margin: 0 0 8px; font-size: 18px; }
.blog-cta p { color: var(--ink-soft); margin: 0 0 16px; font-size: 14px; }

/* ---- auth (login/signup) ---- */
.auth-box { max-width: 380px; margin: 20px auto; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 36px 32px; }
.auth-box h1 { font-size: 24px; margin: 0 0 6px; text-align: center; }
.auth-sub { text-align: center; color: var(--ink-soft); margin: 0 0 24px; font-size: 14px; }
.auth-form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
.auth-form label .opt { font-weight: 400; color: #94a3b8; }
.auth-form input { width: 100%; margin-top: 6px; padding: 11px 13px; font-size: 15px;
    border: 1px solid var(--line); border-radius: 8px; outline: none; }
.auth-form input:focus { border-color: var(--brand); }
.btn-block { width: 100%; margin-top: 8px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.auth-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca;
    border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 0 0 18px; }

/* ---- dashboard ---- */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dash-head h1 { font-size: 26px; margin: 0 0 4px; }
.dash-sub { color: var(--ink-soft); margin: 0; font-size: 14px; }
.dash-flash { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; border-radius: 8px;
    padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
.dash-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; border-radius: 8px;
    padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
.dash-add { display: flex; gap: 8px; margin-bottom: 8px; }
.dash-add input:first-child { flex: 1; }
.dash-add input { padding: 11px 13px; font-size: 15px; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.dash-add input:focus { border-color: var(--brand); }
.dash-limit { color: var(--ink-soft); font-size: 13px; margin: 0 0 20px; }
.dash-empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line);
    border-radius: var(--radius); margin-top: 16px; }
.dash-empty p { margin: 4px 0; }
.muted { color: #94a3b8; font-size: 13px; }

.dash-table { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dash-table th, .dash-table td { text-align: left; padding: 13px 14px; font-size: 14px; border-top: 1px solid var(--line); }
.dash-table thead th { background: #f8fafc; color: var(--ink-soft); font-size: 12px; font-weight: 700;
    border-top: none; text-transform: none; }
.dash-actions { white-space: nowrap; text-align: right; }
.btn-mini { background: #f1f5f9; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px;
    font-size: 12px; font-weight: 600; cursor: pointer; color: var(--ink-soft); }
.btn-mini:hover { background: #e2e8f0; }
.btn-mini-danger { color: var(--danger); }
.btn-mini-danger:hover { background: #fee2e2; }

/* ---- footer ---- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 32px; margin-top: 40px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-col h4 { font-size: 14px; margin: 0 0 10px; color: var(--ink); }
.footer-col a { display: block; color: var(--ink-soft); font-size: 14px; padding: 3px 0; }
.copyright { color: #94a3b8; font-size: 13px; margin: 0; }

/* ---- responsive ---- */
@media (max-width: 860px) {
    .features { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-bar { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
    .steps { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .fd-items { grid-template-columns: 1fr; }
    .risk-grid { grid-template-columns: 1fr; }
    .blog-list { grid-template-columns: 1fr; }
    .section-alt { padding: 36px 22px; }
    .hero-title { font-size: 32px; }
    .nav-links { gap: 12px; }
    .nav-links a:not(.btn-primary):not(.btn-ghost) { display: none; }
}
@media (max-width: 520px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
    .stat-bar { grid-template-columns: 1fr; }
    .hero-check { flex-direction: column; }
    .section-title { font-size: 24px; }
}

/* ============================================================
   visual polish (배경/깊이감/인터랙션)
   ============================================================ */

/* 강렬한 오로라(aurora) 배경,두 겹의 컬러 블롭이 서로 다른 방향으로 흐름.
   화면 고정 레이어라 레이아웃/스크롤 영향 없음. (격자 없음) */
body { background-color: #e7ecfb; overflow-x: hidden; }
body::before, body::after {
    content: ""; position: fixed; inset: -12%; pointer-events: none;
}
body::before {
    z-index: -2;
    background:
        radial-gradient(42% 52% at 10% 12%, rgba(37,99,235,.55), transparent 60%),
        radial-gradient(40% 46% at 90% 8%,  rgba(124,58,237,.50), transparent 60%),
        radial-gradient(48% 54% at 82% 82%, rgba(6,182,212,.42), transparent 62%);
}
body::after {
    z-index: -1;
    background:
        radial-gradient(40% 48% at 16% 88%, rgba(217,70,239,.42), transparent 62%),
        radial-gradient(40% 46% at 94% 52%, rgba(56,189,248,.40), transparent 64%),
        radial-gradient(36% 42% at 50% 42%, rgba(99,102,241,.30), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
    body::before { animation: aurora1 28s ease-in-out infinite alternate; }
    body::after  { animation: aurora2 36s ease-in-out infinite alternate; }
}
@keyframes aurora1 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(2.5%, -2.5%, 0) scale(1.12); }
}
@keyframes aurora2 {
    0%   { transform: translate3d(0, 0, 0) scale(1.08); }
    100% { transform: translate3d(-3%, 2.5%, 0) scale(1); }
}
html { scroll-behavior: smooth; }
::selection { background: rgba(37,99,235,.18); }

/* 타이포그래피 개선 (Pretendard + 정돈된 자간/렌더링) */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -.011em; }
h1, h2, h3, .hero-title, .section-title, .blog-title, .plan-name, .blog-card h2 { letter-spacing: -.027em; }
.hero-title, .section-title { font-weight: 800; }
.hero-sub, .section-sub { letter-spacing: -.01em; }

/* 글래스 헤더 */
.site-header {
    background: rgba(255,255,255,.72);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(226,232,240,.7);
}

/* 그라데이션 버튼 + 호버 인터랙션 */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 6px 16px rgba(37,99,235,.25);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37,99,235,.32);
    text-decoration: none;
}
.btn-ghost { transition: transform .15s ease, border-color .15s ease, color .15s ease; }
.btn-ghost:hover { transform: translateY(-1px); }
.btn-cta { transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,0,0,.18); }

/* 그라데이션 텍스트 (히어로 강조 + 통계 숫자 + 브랜드) */
.hero-title .hl, .stat-num, .brand-hl {
    background: linear-gradient(135deg, #2563eb, #6d28d9);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand { font-weight: 800; letter-spacing: -.03em; font-size: 21px; }
.brand-mark { border-radius: 7px; box-shadow: 0 4px 10px rgba(37,99,235,.28); }

/* 아이콘 배지 그라데이션 + 살짝 입체 */
.feat-ico {
    background: linear-gradient(135deg, #eaf0ff, #e9ebff);
    box-shadow: inset 0 0 0 1px rgba(37,99,235,.08);
}

/* 카드 깊이감 + 호버 리프트 */
.feature-card, .feat-item, .step, .risk-card, .stat-bar, .plan-card, .result-card,
.compare, .matrix, .auth-box {
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05);
}
.feat-item, .step, .risk-card, .plan-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feat-item:hover, .step:hover, .risk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15,23,42,.10);
    border-color: #cdd9ee;
    background: #fff;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
}
.plan-featured { box-shadow: 0 18px 44px rgba(37,99,235,.18); }
.plan-featured:hover { box-shadow: 0 22px 52px rgba(37,99,235,.24); }

/* 섹션 패널/스텝 번호에 살짝 그라데이션 */
.section-alt {
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}
.step-no { background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 6px 14px rgba(37,99,235,.30); }

/* CTA 밴드 장식 오버레이 */
.cta-band { position: relative; overflow: hidden;
    background: linear-gradient(135deg, #2b3a66, #4338ca);
    box-shadow: 0 16px 38px rgba(30,41,99,.20); }
.cta-band::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 220px at 82% -30%, rgba(255,255,255,.28), transparent 60%),
        radial-gradient(500px 200px at 10% 130%, rgba(255,255,255,.16), transparent 60%);
}
.cta-band > * { position: relative; }

/* 히어로 무료검사 입력창 입체감 */
.hero-check input, .check-form input {
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
}

/* 네비 링크 밑줄 슬라이드 */
.nav-links a:not(.btn-primary):not(.btn-ghost) { position: relative; }
.nav-links a:not(.btn-primary):not(.btn-ghost)::after {
    content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
    background: var(--brand); transition: width .2s ease;
}
.nav-links a:not(.btn-primary):not(.btn-ghost):hover { text-decoration: none; }
.nav-links a:not(.btn-primary):not(.btn-ghost):hover::after { width: 100%; }

/* /check 상태 범례 */
.legend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 760px; margin: 0 auto; }
.legend-item { text-align: center; }
.legend-item p { margin: 10px 0 0; color: var(--ink-soft); font-size: 13px; }
.legend-note { text-align: center; color: var(--ink-soft); font-size: 13px; margin: 24px auto 0; max-width: 640px; }
@media (max-width: 620px) { .legend-grid { grid-template-columns: repeat(2, 1fr); } }

/* 글래스(frosted) 카드,배경 오로라가 비쳐 배경과 자연스럽게 어우러짐 */
.feature-card, .step, .risk-card, .plan-card, .stat-bar,
.blog-card, .result-card, .auth-box, .compare, .matrix, .dash-table,
.faq details, .blog-cta, .dash-empty, .section-alt {
    background: rgba(255,255,255,.68);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
            backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(255,255,255,.6);
}
.section-alt { background: rgba(255,255,255,.55); }
/* 섹션 패널 안의 기능 타일: 이중 블러 방지 위해 블러 없이 가벼운 반투명 */
.feat-item { background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.55); }
.feat-item:hover, .step:hover, .risk-card:hover { background: rgba(255,255,255,.85); }
/* 글래스 위에서 표 헤더가 동동 떠 보이지 않게 살짝 투명 처리 */
.compare thead th, .matrix thead th, .dash-table thead th { background: rgba(248,250,252,.7); }
/* 글래스 카드 안의 입력창은 또렷하게 */
.auth-form input { background: #fff; }

/* 스크롤 등장 애니메이션 (JS가 .reveal/.in 부여; 미동작 시 항상 표시) */
.reveal { opacity: 0; transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease; will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   문의하기 (플로팅 버튼 + 모달)
   ============================================================ */
.prose-note { color: #94a3b8; font-size: 13px; margin-top: 24px; }

.help-fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 60;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 18px 12px 15px; border: none; border-radius: 999px; cursor: pointer;
    color: #fff; font-weight: 700; font-size: 15px; font-family: inherit;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 10px 26px rgba(37,99,235,.40);
    transition: transform .16s ease, box-shadow .16s ease;
}
.help-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,99,235,.5); }
.help-fab svg { display: block; }

.modal-overlay {
    position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
    background: rgba(15,23,42,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
    position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
    background: #fff; border-radius: 16px; padding: 28px 26px;
    box-shadow: 0 30px 70px rgba(15,23,42,.35); animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal h2 { margin: 0 0 4px; font-size: 22px; }
.modal-sub { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }
.modal-close {
    position: absolute; top: 14px; right: 16px; border: none; background: none; cursor: pointer;
    font-size: 26px; line-height: 1; color: #94a3b8;
}
.modal-close:hover { color: var(--ink); }

.contact-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.contact-form label .opt { font-weight: 400; color: #94a3b8; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
    width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 15px; font-family: inherit;
    border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); }
.contact-form textarea { resize: vertical; }
.contact-form input[type=file] { margin-top: 8px; font-size: 13px; width: 100%; }
.file-label { margin-bottom: 14px; }
.g-recaptcha { margin: 4px 0 14px; }
.contact-msg { font-size: 14px; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.contact-msg.ok { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.contact-msg.err { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }

@media (max-width: 520px) {
    .help-fab span { display: none; }
    .help-fab { padding: 14px; }
}

/* 문의 폼: 필수 표시 + 드래그앤드롭 첨부 */
.req { color: var(--danger); font-weight: 700; }
.field-label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field-label .opt { font-weight: 400; color: #94a3b8; }
.dropzone { position: relative; border: 2px dashed var(--line); border-radius: 10px; background: #f8fafc;
    text-align: center; padding: 22px 14px; cursor: pointer; margin-bottom: 14px;
    transition: border-color .15s ease, background .15s ease; }
.dropzone:hover { border-color: #c7d2fe; }
.dropzone.dragover { border-color: var(--brand); background: #eff6ff; }
.dz-input { display: none; }
.dz-inner svg { display: block; margin: 0 auto 8px; }
.dz-text { margin: 0; font-size: 14px; color: var(--ink-soft); }
.dz-browse { color: var(--brand); font-weight: 600; }
.dz-hint { margin: 6px 0 0; font-size: 12px; color: #94a3b8; }
.dz-file { display: flex; align-items: center; justify-content: center; gap: 10px; }
.dz-name { font-size: 14px; color: var(--ink); word-break: break-all; }
.dz-remove { border: none; background: #e2e8f0; color: var(--ink-soft); border-radius: 50%;
    width: 22px; height: 22px; cursor: pointer; font-size: 16px; line-height: 1; flex-shrink: 0; }
.dz-remove:hover { background: #cbd5e1; }
