﻿/* =============================================================================
   MHIS Portal — main.css (통합 스타일시트)
   index · Agree · Notice · Contact Us · membership · Our Solution
   ============================================================================= */

/* 01. Design Tokens (:root) */
:root {
    --blue: #00366e;
    --blue-dark: #003a75;
    --blue-container: #004c97;
    --blue-light: #d6e3ff;
    --green: #006c49;
    --green-light: #6cf8bb;
    --surface: #f9f9ff;
    --surface-low: #f0f3ff;
    --surface-container: #e7eeff;
    --surface-high: #dee8ff;
    --on-surface: #111c2d;
    --on-surface-variant: #424751;
    --outline: #737782;
    --outline-variant: #c2c6d3;
    --orange: #ea580c;
    --error: #ba1a1a;
    --error-bg: #ffdad6;
    --emerald: #34d399;
    --emerald-light: #34d399;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --orange-dark: #ea580c;
    --container: 1280px;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-panel: 2.5rem;
    --gutter: 1.5rem;
    --shadow-panel: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 02. Reset & Base */

/* 02-1. Reset */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    min-width: var(--container);
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--surface);
    color: var(--on-surface);
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

a { color: inherit; text-decoration: none; }

i { font-style: normal; }

.page {
    width: var(--container);
    margin-inline: auto;
    text-align: left;
}

body::selection { background: #dbeafe; }

table { border-collapse: collapse; }

/* 03. Layout — .container, .page-main, .page-head, .page-title */
.container {
    width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.page-main {
    padding-block: 2rem 4rem;
}

.page-head {
    text-align: center;
    margin-bottom: 3rem;
}

.page-head h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--on-surface);
    margin-bottom: 1rem;
}

.page-head p {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
    max-width: 42rem;
    margin-inline: auto;
}

.page-title {
    margin-bottom: 2rem;
}

.page-title h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--slate-900);
    margin-bottom: 1rem;
}

.page-title p {
    font-size: 1.125rem;
    color: var(--slate-500);
    line-height: 1.6;
    max-width: 42rem;
}

/* 04. Common — 버튼, 폼 필드, 체크, glass-card, hero-gradient */
.is-hidden { display: none !important; }

.icon-filled { font-variation-settings: 'FILL' 1; }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.25rem;
    min-width: 1em;
    min-height: 1em;
    text-align: center;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--blue-container);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 76, 151, 0.3);
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-primary.is-disabled,
.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background: #fff;
    color: var(--blue);
    border: 1px solid var(--outline-variant);
}

.btn-secondary:hover { background: var(--slate-50); }

.btn-ghost {
    color: var(--slate-500);
    font-weight: 700;
}

.btn-ghost:hover { color: var(--slate-900); }

.field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-900);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius);
    background: var(--surface-container);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 54, 110, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--slate-500);
}

.check-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.check-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--blue);
}

.check-label span {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--on-surface-variant);
}

.check-label:hover span { color: var(--blue); }

.required { color: var(--orange); }

.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(194, 198, 211, 0.2);
    border-radius: var(--radius-lg);
}

.hero-gradient {
    background: linear-gradient(135deg, #f9f9ff 0%, #e7eeff 45%, #d8e3fb 100%);
}

.pulse-glow {
    animation: pulseGlowOrange 2s infinite ease-in-out;
}

@keyframes pulseGlowOrange {
    0%, 100% { box-shadow: 0 0 6px rgba(234, 88, 12, 0.35); }
    50% { box-shadow: 0 0 18px rgba(234, 88, 12, 0.65); }
}

/* 05. Site Chrome — site-header / site-footer */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(194, 198, 211, 0.1);
}

.site-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.site-header__logo {
    height: 1.25rem;
    width: auto;
    flex-shrink: 0;
}

.site-header__title {
    color: #4a76a8;
    font-weight: 500;
    font-size: 1.125rem;
    white-space: nowrap;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.site-header__nav a:not(.site-header__cta) {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.site-header__nav a:not(.site-header__cta):hover,
.site-header__nav a:not(.site-header__cta).is-active {
    color: #00366e;
}

.site-header__nav a:not(.site-header__cta).is-active {
    font-weight: 700;
}

.site-header__nav a.site-header__cta {
    text-decoration: none;
    font-size: 0.875rem;
    background: #000;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background 0.15s ease;
}

.site-header__nav a.site-header__cta:hover,
.site-header__nav a.site-header__cta:active,
.site-header__nav a.site-header__cta.is-active {
    background: var(--orange);
    color: #fff;
}

.site-footer {
    background: #0f172a;
    color: #fff;
    padding: 2rem 0;
    margin-top: auto;
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-footer__copy {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #f1f5f9;
}

/* 06. Index — index.html */

body.index-page {
    font-family: 'Paperlogy', 'Noto Sans KR', sans-serif;
    font-size: 15px;
    background: #fff;
    color: var(--slate-800);
}

/* 06-1. Index 타이포 보정 (15px 기준) */
body.index-page .login label,
body.index-page .login .connected small {
    font-size: 13px;
    letter-spacing: 0.04em;
}

body.index-page .check {
    font-size: 13px;
}

body.index-page .check span {
    font-size: 13px;
}

body.index-page .login header p {
    font-size: 13px;
}

body.index-page .login input[type="text"],
body.index-page .login input[type="password"] {
    font-size: 15px;
    min-height: 2.125rem;
    padding: 0.375rem 0.75rem;
    box-sizing: border-box;
}

body.index-page .login .connected strong {
    font-size: 15px;
}

body.index-page .login .connected-meta {
    font-size: 13px;
}

body.index-page .login form > button {
    font-size: 15px;
    min-height: 2.125rem;
    padding: 0.5rem 1rem;
}

body.index-page .login .links {
    font-size: 13px;
}

body.index-page .tag {
    font-size: 13px;
    padding: 0.25rem 0.5rem;
}

body.index-page .features h3 {
    font-size: 13px;
}

body.index-page .features p {
    font-size: 15px;
    font-weight: 500;
}

body.index-page .hero > p {
    font-size: 1.0625rem;
}

body.index-page .insight header p,
body.index-page .insight header span,
body.index-page .insight .stats small,
body.index-page .insight footer small {
    font-size: 11px;
}

body.index-page .modal__head h2 {
    font-size: 1.125rem;
}

body.index-page .modal__head p {
    font-size: 13px;
}

body.index-page .modal__form .field label {
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 600;
    color: var(--slate-900);
}

body.index-page .modal__form .field input {
    font-size: 15px;
    min-height: 2.125rem;
    padding: 0.375rem 0.75rem;
}

body.index-page .modal__submit {
    font-size: 15px;
    min-height: 2.125rem;
}

body.index-page .modal__success p {
    font-size: 15px;
}

body.index-page .badge {
    font-size: 13px;
}

/* 06-2. Index — 공통 UI (badge, panel, tag, check) */
.badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.badge.light {
    padding: 0.375rem 1rem;
    background: #fff;
    border: none;
    font-weight: 900;
    letter-spacing: 0.1em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 패널 (insight / login 공통) */
.panel {
    width: 100%;
    border-radius: var(--radius-panel);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-panel);
}

/* 작은 대문자 라벨 (insight / login 공통) */
.insight small,
.insight header p,
.insight header span,
.login label,
.login .connected small {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slate-400);
}

.insight small,
.insight header p,
.insight header span {
    color: var(--slate-300);
}

/* 가로 정렬 */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 강조색 */
.accent { color: var(--emerald); }
.accent-blue { color: var(--blue); }

/* 표시 토글 */
.is-visible { display: flex !important; }

/* 펄스 */
.pulse {
    display: inline-block;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.8)); transform: scale(1.05); }
}

/* 주황 태그 버튼 */
.tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: var(--orange);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.tag:hover { background: var(--orange-dark); }

/* 체크박스 라벨 */
.check {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    text-transform: none;
    color: inherit;
}

.check input {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 0.25rem;
    border: 1px solid var(--slate-300);
    accent-color: var(--blue);
}

.check span {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--slate-500);
    white-space: nowrap;
    transition: color 0.15s ease;
}

.check:hover span { color: #334155; }

/* 06-3. Index — 12열 그리드 */
.main { padding-block: 3rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3rem;
    align-items: start;
}

.col-hero { grid-column: span 5; }
.col-insight { grid-column: span 4; }
.col-login { grid-column: span 3; }
.col-event { grid-column: 1 / -1; }

.col-insight,
.col-login {
    display: flex;
    align-items: stretch;
    height: 100%;
}

.col-insight { justify-content: center; }

/* 06-4. Hero */
.hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--slate-900);
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
}

.hero > p {
    font-size: 1.125rem;
    color: var(--slate-500);
    line-height: 1.625;
    font-weight: 500;
    text-wrap: balance;
}

/* 06-5. Features */
.features {
    display: grid;
    gap: 1.5rem;
    padding-top: 1rem;
}

.features article {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-100);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    cursor: default;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.features article:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.features article > i {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
}

.features h3 {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 900;
}

.features p {
    font-size: 0.875rem;
    color: var(--slate-600);
    line-height: 1.375;
    font-weight: 700;
}

/* 색상 변형 — nth-child로 공통 구조 재사용 */
.features article:nth-child(1) {
    background: rgba(239, 246, 255, 0.3);
    margin-top: -5px;
}
.features article:nth-child(1) > i { background: #eff6ff; color: #2563eb; border-color: #dbeafe; }
.features article:nth-child(1) h3 { color: #2563eb; }

.features article:nth-child(2) { background: rgba(250, 245, 255, 0.3); }
.features article:nth-child(2) > i { background: #faf5ff; color: #9333ea; border-color: #f3e8ff; }
.features article:nth-child(2) h3 { color: #9333ea; }

.features article:nth-child(3) { background: rgba(240, 253, 250, 0.3); }
.features article:nth-child(3) > i { background: #f0fdfa; color: #0d9488; border-color: #ccfbf1; }
.features article:nth-child(3) h3 { color: #0d9488; }

/* 06-6. Insight 패널 */
.insight {
    max-width: 24rem;
    padding: 2.5rem;
    overflow: hidden;
    border: 1px solid var(--slate-800);
    justify-content: space-between;
    background: var(--slate-900);
    color: #fff;
}

.insight header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.insight header p {
    font-weight: 500;
    letter-spacing: 0.025em;
    line-height: 1.25;
    width: 66.666%;
    font-size: 9px;
}

.insight header span {
    letter-spacing: 0.1em;
    text-align: right;
    width: 33.333%;
    line-height: 1.25;
}

.insight .stats {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.insight .stats > div:first-child strong {
    font-size: 3.75rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
}

.insight .stats > div:first-child span {
    font-size: 1.875rem;
    color: var(--emerald);
}

.insight .stats small {
    display: block;
    margin-top: 0.5rem;
    font-size: 9px;
}

.insight .stats > div:last-child {
    text-align: right;
}

.insight .stats > div:last-child strong {
    color: var(--emerald);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    animation-delay: 0.5s;
}

.insight .stats > div:last-child i {
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

.insight .stats > div:last-child small {
    margin-top: 0.25rem;
}

.insight footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-800);
    margin-top: auto;
}

.insight footer small {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 9px;
}

.insight footer strong {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.insight footer .accent { color: var(--emerald); }

/* 06-7. Chart 애니메이션 */
.chart {
    flex: 1;
    width: 100%;
    position: relative;
    margin-bottom: 1.5rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.bars {
    position: relative;
    width: 100%;
    height: 266px;
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.bars svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 20;
}

.bars > div {
    width: 3rem;
    height: var(--h);
    border-radius: 0.125rem 0.125rem 0 0;
    transform-origin: bottom center;
    transform: scaleY(0);
    animation: chartBarGrow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    z-index: 10;
}

.bars > div::before {
    content: attr(data-v);
    position: absolute;
    top: -1.5rem;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.bars > div:hover::before { opacity: 1; }

.bars > div:nth-child(2) { --h: 56px; background: rgba(51, 65, 85, 0.5); animation-delay: 0.1s; }
.bars > div:nth-child(3) { --h: 84px; background: rgba(71, 85, 105, 0.6); animation-delay: 0.3s; }
.bars > div:nth-child(4) { --h: 105px; background: rgba(100, 116, 139, 0.7); animation-delay: 0.5s; }
.bars > div:nth-child(5) {
    --h: 266px;
    background: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    animation-delay: 0.7s;
}
.bars > div:nth-child(5)::before { color: #93c5fd; font-weight: 700; }

.months {
    display: flex;
    justify-content: space-around;
    padding-top: 0.75rem;
}

.months span {
    width: 3rem;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--slate-300);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.months span:nth-child(1) { animation-delay: 0.2s; }
.months span:nth-child(2) { animation-delay: 0.4s; }
.months span:nth-child(3) { animation-delay: 0.6s; }
.months span:nth-child(4) { animation-delay: 0.8s; color: #60a5fa; }

.trend-line {
    fill: none;
    stroke: #ff8c2a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: drawTrendLine 1.4s ease-out 0.9s forwards, trendNeonPulse 2.2s ease-in-out 2.4s infinite;
    filter: drop-shadow(0 0 6px rgba(255, 140, 42, 0.9)) drop-shadow(0 0 14px rgba(249, 115, 22, 0.55));
}

.trend-dot {
    fill: #ffb347;
    opacity: 0;
    animation: fadeInDot 0.35s ease-out forwards, trendNeonPulse 2.2s ease-in-out 2.4s infinite;
    filter: drop-shadow(0 0 4px rgba(255, 153, 51, 0.95)) drop-shadow(0 0 10px rgba(249, 115, 22, 0.7));
}

.bars circle:nth-of-type(1) { animation-delay: 1s; }
.bars circle:nth-of-type(2) { animation-delay: 1.15s; }
.bars circle:nth-of-type(3) { animation-delay: 1.3s; }
.bars circle:nth-of-type(4) {
    animation-delay: 1.45s;
    fill: #ff9500;
    filter: drop-shadow(0 0 6px rgba(255, 149, 0, 1)) drop-shadow(0 0 16px rgba(249, 115, 22, 0.85));
}

@keyframes chartBarGrow {
    from { transform: scaleY(0); opacity: 0.4; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes drawTrendLine { to { stroke-dashoffset: 0; } }
@keyframes fadeInDot { to { opacity: 1; } }

@keyframes trendNeonPulse {
    0%, 100% {
        filter: drop-shadow(0 0 4px rgba(255, 140, 42, 0.7)) drop-shadow(0 0 10px rgba(249, 115, 22, 0.45));
        opacity: 1;
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(255, 180, 80, 1)) drop-shadow(0 0 20px rgba(255, 120, 30, 0.9));
        opacity: 0.92;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 06-8. Login 패널 */
.login {
    padding: 2.5rem;
    border: 1px solid var(--slate-100);
    width: 100%;
    justify-content: center;
    background: #fff;
}

.login header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.login header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
}

.login header p {
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-top: 0.5rem;
}

.login form,
.login .fields,
.login .connected {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login label {
    display: block;
    margin-bottom: 0.375rem;
    margin-left: 0.25rem;
}

.login .row {
    margin-bottom: 0.375rem;
    margin-inline: 0.25rem;
}

.login .row label {
    margin: 0;
}

.login input[type="text"],
.login input[type="password"] {
    width: 100%;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--slate-900);
    outline: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.login input::placeholder { color: var(--slate-400); }

.login input[type="text"]:focus,
.login input[type="password"]:focus {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.login .connected {
    display: none;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    border: 1px solid var(--slate-100);
    gap: 1rem;
}

.login .connected.is-visible { display: flex; }

.login .connected-item {
    width: 100%;
}

.login .connected small {
    display: block;
    margin-bottom: 0.375rem;
}

.login .connected strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    word-break: break-all;
}

.login .connected-meta {
    width: 100%;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--slate-200);
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-500);
}

.login .connected .accent-blue { color: var(--blue); }

/* IP 접근제어에 걸렸을 때 로그인 폼 자리를 대신한다 */
.login-blocked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
}

.login-blocked span {
    font-size: 2.5rem;
    color: var(--error);
}

.login-blocked p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--on-surface-variant);
}

.login form > button {
    width: 100%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(191, 219, 254, 0.8);
    transition: background 0.2s ease, transform 0.1s ease;
}

.login form > button:hover { background: var(--blue-dark); }
.login form > button:active { transform: scale(0.98); }

.login .links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--slate-400);
    margin-top: 0.75rem;
    padding-inline: 0.25rem;
}

.login .links span { color: var(--slate-300); }

.login .links-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.125rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--blue);
    border-radius: var(--radius);
    background: #eff6ff;
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 76, 151, 0.12);
}

/* 06-9. EVENT 배너 */
.event {
    background: var(--blue);
    border-radius: 2rem;
    padding: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 76, 151, 0.3);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.event:hover { transform: scale(1.01); }

.event p {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.375;
}

.event em {
    color: var(--emerald-light);
    font-style: normal;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.event > i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 07. Agree — Agree.html */

/* 07-1. 약관 카드 / 동의 체크 / 다음 버튼 */
.agree-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 4rem;
}

.agree-page__inner {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.agree-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.agreement-card {
    padding: 2.5rem;
    border-radius: var(--radius-panel);
    box-shadow: 0 25px 50px -12px rgba(207, 218, 242, 0.35);
    background: #fff;
    border: 1px solid rgba(194, 198, 211, 0.35);
}

.agreement-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.agreement-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.agreement-card__icon--primary { background: var(--blue-light); color: var(--blue); }
.agreement-card__icon--green { background: var(--green-light); color: var(--green); }

.agreement-card__head h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--on-surface);
}

.agreement-card__body {
    height: 16rem;
    overflow-y: auto;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface-low);
    border: 1px solid var(--outline-variant);
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    line-height: 1.625;
}

.agreement-card__body h3 {
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.agreement-card__body > div + div { margin-top: 1.5rem; }

.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--outline-variant); border-radius: 3px; }

.agree-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--outline-variant);
}

.agree-actions .btn-primary { width: 16rem; }

.agree-actions .btn-primary.is-disabled {
    pointer-events: auto;
    cursor: pointer;
}

/* 08. Notice — Notice.html */

body[data-page="notice"] .page-main {
    font-size: 15px;
    --mf-font-size: 15px;
    --mf-input-height: 2.125rem;
}

body[data-page="notice"] .input-field {
    font-size: var(--mf-font-size);
    line-height: 1.25;
    min-height: var(--mf-input-height);
    padding: 0.375rem 0.75rem;
    box-sizing: border-box;
    border: 1px solid var(--slate-200);
    background: #fff;
}

body[data-page="notice"] .btn-sm {
    height: var(--mf-input-height);
    padding: 0.25rem 0.625rem;
    font-size: 13px;
    box-sizing: border-box;
    background: var(--blue-container);
    color: #fff;
    border: none;
    white-space: nowrap;
}

body[data-page="notice"] .btn-sm:hover {
    background: var(--blue-dark);
}

/* 08-1. 탭 / 검색 / 아코디언 / 게시판 */
.notice-page__top {
    margin-bottom: 2rem;
}

.notice-page__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.notice-page__title {
    margin: 0;
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--blue);
    white-space: nowrap;
}

.notice-page__desc {
    margin: 0;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--slate-500);
}

.notice-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    min-width: 0;
}

.notice-search {
    flex: 1 1 auto;
    min-width: 0;
}

.notice-search__field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.notice-search__field .field-control--search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.notice-search__field .field-control--search .material-symbols-outlined {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--outline);
    pointer-events: none;
    font-size: 1.125rem;
}

.notice-search__field .field-control--search .input-field {
    width: 100%;
    padding-left: 2.25rem;
}

.notice-search__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.notice-search__btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.notice-banner {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-panel);
    background: var(--blue-container);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.notice-banner p {
    font-size: 1.125rem;
    font-weight: 700;
    color: #9bbfff;
}

.notice-tabs {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    overflow-x: auto;
    padding-bottom: 0.125rem;
}

.notice-tabs button,
.notice-tabs a {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    background: var(--surface-container);
    color: var(--on-surface-variant);
}

.notice-tabs button.is-active,
.notice-tabs a.is-active {
    background: var(--blue-container);
    color: #fff;
}

.notice-tabs button:hover:not(.is-active),
.notice-tabs a:hover:not(.is-active) {
    background: var(--surface-high);
}

.notice-board {
    background: #fff;
    border-radius: var(--radius-panel);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(194, 198, 211, 0.1);
}

.notice-board__scroll { overflow-x: auto; }

.notice-table {
    width: 100%;
    text-align: left;
}

.notice-table thead tr {
    background: var(--surface-low);
    color: var(--on-surface-variant);
    border-bottom: 1px solid rgba(194, 198, 211, 0.2);
}

.notice-table th {
    padding: 1rem 1.25rem;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--slate-900);
}

.notice-table th.col-no,
.notice-table td.col-no { width: 4.75rem; text-align: center; }

.notice-table th.col-type { width: 8rem; }
.notice-table th.col-date { width: 6.5rem; text-align: center; }

.notice-table th.col-views,
.notice-table td.col-views {
    width: 4.75rem;
    min-width: 4.75rem;
    text-align: center;
    white-space: nowrap;
}

.notice-table tbody tr { border-bottom: 1px solid rgba(194, 198, 211, 0.1); }

.notice-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.notice-row:hover { background: var(--surface-low); }

.notice-row.active { background: var(--surface-low); }

.notice-row--top { background: rgba(240, 243, 255, 0.6); }

.notice-row--top:hover,
.notice-row--top.active { background: var(--surface-low); }

.notice-top {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: var(--blue-container);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.notice-table td {
    padding: 1rem 1.25rem;
    font-size: 15px;
}

.notice-table td.col-no,
.notice-table td.col-date {
    font-size: 15px;
    color: var(--slate-500);
}

.notice-table td.col-views {
    font-size: 15px;
    color: var(--slate-500);
}

.notice-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
}

.notice-tag--general { background: #dbeafe; color: var(--blue-dark); }
.notice-tag--security { background: var(--error-bg); color: #93000a; }
.notice-tag--maintenance { background: #d8e3fb; color: #00468c; }
.notice-tag--update { background: var(--blue-container); color: #9bbfff; }

.notice-content td { padding: 0; background: rgba(240, 243, 255, 0.3); }

.notice-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.notice-row.active + .notice-content .notice-content-wrapper { max-height: 800px; }

.notice-content-inner { padding: 2rem; }

.notice-detail {
    padding: 2rem;
}

.notice-detail__row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* 비회원에게 본문 대신 나가는 안내. 본문 자리를 그대로 차지한다 */
.notice-detail--locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.notice-detail--locked > span {
    font-size: 2rem;
    color: var(--slate-500);
}

.notice-detail--locked p {
    color: var(--on-surface-variant);
}

.notice-detail--locked a {
    font-weight: 700;
    color: var(--blue);
    text-decoration: underline;
}

.notice-detail__row > span { color: var(--blue); margin-top: 0.25rem; }

.notice-detail p {
    font-size: 15px;
    line-height: 1.625;
    color: var(--on-surface);
    white-space: pre-line;
}

.notice-table td.notice-empty {
    padding: 4rem 1.25rem;
    text-align: center;
    color: var(--on-surface-variant);
}

.notice-attach {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(194, 198, 211, 0.2);
}

.notice-attach span:last-child { font-size: 13px; }

.notice-attach .material-symbols-outlined { color: var(--emerald); }

.notice-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
}

.notice-pagination button,
.notice-pagination a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--radius);
    color: var(--outline);
}

.notice-pagination button:hover,
.notice-pagination a:hover { background: var(--surface-high); }

.notice-pagination a.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.notice-pagination__nums {
    display: flex;
    gap: 0.25rem;
    padding-inline: 1rem;
}

.notice-pagination__nums button,
.notice-pagination__nums a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    color: var(--on-surface-variant);
}

.notice-pagination__nums button.is-active,
.notice-pagination__nums a.is-active {
    background: var(--blue-container);
    color: #fff;
}

.notice-pagination__nums button:hover:not(.is-active),
.notice-pagination__nums a:hover:not(.is-active) {
    background: var(--surface-high);
}

/* 09. Contact Us — Contact Us.html */

body[data-page="contact"] {
    font-size: 15px;
    --mf-font-size: 15px;
    --mf-input-height: 2.125rem;
}

body[data-page="contact"] .input-field,
body[data-page="contact"] .contact-form .field input,
body[data-page="contact"] .contact-form .field select,
body[data-page="contact"] .contact-form .field textarea {
    font-size: var(--mf-font-size);
    line-height: 1.25;
    min-height: var(--mf-input-height);
    padding: 0.375rem 0.75rem;
    box-sizing: border-box;
    border: 1px solid var(--slate-200);
    background: #fff;
}

body[data-page="contact"] .contact-form .field textarea.input-field {
    min-height: 8rem;
    padding: 0.75rem;
    line-height: 1.5;
}

/* 09-1. 소개 / 사진 / 문의 폼 */
.contact-page {
    padding-block: 3rem 5rem;
    min-height: 100vh;
}

.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
    align-items: start;
}

.contact-intro { padding-top: 2rem; }

.contact-intro .badge {
    margin-bottom: 1.5rem;
    background: var(--blue-light);
    color: #001b3d;
}

.contact-intro h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2; 
    color: var(--slate-900);
    margin-bottom: 2rem;
}

.contact-intro > p {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 28rem;
}

.contact-photo {
    position: relative;
    width: 100%;
    height: 20rem;
    border-radius: var(--radius-panel);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.1), transparent);
}

.contact-form-panel {
    padding: 2.5rem;
    border-radius: var(--radius-panel);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(194, 198, 211, 0.25);
    box-shadow: var(--shadow-panel, 0 25px 50px -12px rgba(0, 0, 0, 0.25));
}

.contact-form-panel__notice {
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 54, 110, 0.1);
    background: rgba(0, 54, 110, 0.05);
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--slate-900);
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
}

.contact-form .field label {
    margin-bottom: 0.375rem;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--slate-900);
}

.contact-form .field select.input-field {
    appearance: none;
    padding-right: 2.5rem;
}

.field--select { position: relative; }

.field--select > span {
    position: absolute;
    right: 0.75rem;
    bottom: 0.625rem;
    pointer-events: none;
    color: var(--outline);
    font-size: 1.125rem;
}

.field--phone {
    display: flex;
    gap: 0.375rem;
    align-items: stretch;
}

.field--phone__prefix {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0 0.75rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    background: var(--surface-container);
    color: var(--outline);
    min-height: var(--mf-input-height);
    box-sizing: border-box;
    flex-shrink: 0;
}

.field--phone__prefix .material-symbols-outlined {
    font-size: 1.125rem;
}

.field--phone .input-field {
    flex: 1 1 auto;
    min-width: 0;
}

.contact-form textarea { resize: none; }

.contact-form__checks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--outline-variant);
}

.contact-form__checks .check-label { align-items: flex-start; }

body[data-page="contact"] .contact-form__checks .check-label span {
    font-size: 15px;
    font-weight: 500;
}

.contact-form__check-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
}

.contact-form__check-line .check-label {
    flex: 0 1 auto;
}

.contact-form__terms {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-container);
    text-decoration: none;
}

.contact-form__terms:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.contact-form__submit .btn-submit-contact {
    width: 100%;
    height: var(--mf-input-height);
    padding: 0 1.5rem;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
}

.contact-form__submit .btn-submit-contact { background: var(--blue-container); }

.contact-form__submit .btn-submit-contact:hover { background: var(--orange); }

/* 10. Membership — membership.html */

/* 10-1. 기관·신청자·추가 ID 폼 */
.membership-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    --mf-label-width: 8rem;
    --mf-gap: 0.625rem;
    --mf-row-gap: 1.25rem;
    --mf-font-size: 15px;
    --mf-input-height: 2.125rem;
}

.form-section {
    padding: 2.5rem;
    background: #fff;
    border-radius: var(--radius-panel);
    border: 1px solid var(--slate-100);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-section__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.form-section__icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.form-section__icon--blue { background: var(--blue); }
.form-section__icon--green { background: var(--green); }
.form-section__icon--dark { background: var(--slate-900); }

.form-section__head h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--slate-900);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.form-grid .field { grid-column: span 12; }

.form-grid .field.field--span-2 { grid-column: span 2; }
.form-grid .field.field--span-3 { grid-column: span 3; }
.form-grid .field.field--span-4 { grid-column: span 4; }
.form-grid .field.field--span-5 { grid-column: span 5; }
.form-grid .field.field--span-6 { grid-column: span 6; }
.form-grid .field.field--span-12 { grid-column: span 12; }

/* Membership — inline label + input */
.membership-form .form-grid {
    gap: 1rem 1.25rem;
    align-items: center;
}

.membership-form .form-section__head {
    margin-bottom: 1.5rem;
}

.membership-form .form-grid > .field,
.membership-form .form-row > .field,
.membership-form .field--stack .form-grid > .field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--mf-gap);
}

.membership-form .form-grid > .field > label:first-of-type,
.membership-form .form-row > .field > label:first-of-type,
.membership-form .field--stack .form-grid > .field > label:first-of-type {
    flex-shrink: 0;
    width: var(--mf-label-width);
    margin-bottom: 0;
    white-space: nowrap;
    font-size: var(--mf-font-size);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--slate-900);
}

.membership-form .form-grid .input-field,
.membership-form .role-table .input-field,
.membership-form .role-table select.input-field {
    padding: 0.4375rem 0.625rem;
    font-size: var(--mf-font-size);
    line-height: 1.25;
    min-height: var(--mf-input-height);
    box-sizing: border-box;
}

.membership-form .btn-sm {
    height: var(--mf-input-height);
    padding: 0.25rem 0.625rem;
    font-size: 13px;
    box-sizing: border-box;
}

/* Grid fields — control fills remaining column space */
.membership-form .form-grid > .field > .input-field,
.membership-form .form-grid > .field > .field-row,
.membership-form .form-grid > .field > .field-control,
.membership-form .form-grid > .field > .radio-group,
.membership-form .form-grid > .field > .address-row,
.membership-form .field--stack .form-grid > .field > .input-field,
.membership-form .field--stack .form-grid > .field > .field-control {
    flex: 1;
    min-width: 0;
    width: auto;
}

/* Compact rows — fixed-width controls */
.membership-form .form-row > .field > .input-field,
.membership-form .form-row > .field > .field-row,
.membership-form .form-row > .field > .radio-group,
.membership-form .form-row > .field > .file-upload {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
}

.membership-form .form-grid > .field.field--span-12:not(.field--stack) {
    align-items: flex-start;
}

.membership-form .form-grid > .field.field--span-12:not(.field--stack) > label:first-of-type {
    margin-top: 0.4375rem;
}

.membership-form .form-grid > .field.field--stack {
    display: block;
}

.membership-form .field--stack > .form-grid {
    width: 100%;
    margin-top: 0;
}

.membership-form .field--stack > .field-error {
    margin: 0.375rem 0 0 calc(var(--mf-label-width) + var(--mf-gap));
}

.membership-form .field-control {
    position: relative;
    flex: 1;
    min-width: 0;
}

.membership-form .field-control .input-field {
    width: 100%;
}

.membership-form .field-control--date .input-field {
    padding-right: 2.25rem;
    cursor: pointer;
}

.membership-form .field-control--date .material-symbols-outlined {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--slate-500);
    font-size: 1.125rem;
}

.membership-form .form-grid .field-row {
    min-width: 0;
    flex: 1;
}

.membership-form .form-grid .field-row input {
    min-width: 0;
}

.membership-form .radio-group {
    min-height: auto;
    padding: 0;
}

.membership-form .radio-group--inline {
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.membership-form .radio-group--inline label {
    font-size: 15px;
    white-space: nowrap;
}

/* 3열 그룹 폼 — 기관 정보 / 신청자 정보 공통 */
.membership-form .form-grid.form-grid--grouped {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem 2rem;
    align-items: start;
    width: 100%;
}

.membership-form .form-grid--grouped > .form-col--1 {
    grid-column: 1;
    grid-row: 1;
}

.membership-form .form-grid--grouped > .form-col--2 {
    grid-column: 2;
    grid-row: 1;
}

.membership-form .form-grid--grouped > .form-col--3 {
    grid-column: 3;
    grid-row: 1;
}

.membership-form .form-grid--grouped > .form-org-address,
.membership-form .form-grid--grouped > .form-group-row--full,
.membership-form .form-grid--grouped > .form-group-row--split,
.membership-form .form-grid--grouped > .form-group-row--account {
    grid-column: 1 / -1;
    min-width: 0;
}

.membership-form .form-grid--grouped > .form-org-address,
.membership-form .form-grid--grouped > .form-group-row--full,
.membership-form .form-grid--grouped > .form-group-row--split {
    display: grid;
    grid-template-columns: subgrid;
    align-items: center;
}

.membership-form .form-grid--org > .form-org-address {
    grid-row: 2;
}

.membership-form .form-grid--applicant > .field-error {
    grid-row: 2;
    grid-column: 1 / -1;
}

@supports not (grid-template-columns: subgrid) {
    .membership-form .form-grid--grouped > .form-org-address,
    .membership-form .form-grid--grouped > .form-group-row--full,
    .membership-form .form-grid--grouped > .form-group-row--split {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 2rem;
    }
}

.membership-form .form-grid--grouped .form-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.membership-form .form-grid--grouped .form-col .field,
.membership-form .form-grid--grouped .form-org-address .field,
.membership-form .form-grid--grouped .form-group-row .field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--mf-gap);
    width: 100%;
    min-width: 0;
}

.membership-form .form-grid--grouped .field > label:first-of-type {
    flex-shrink: 0;
    margin-bottom: 0;
    white-space: nowrap;
    font-size: var(--mf-font-size);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--slate-900);
}

.membership-form .form-grid--grouped .field > .input-field,
.membership-form .form-grid--grouped .field > .field-row,
.membership-form .form-grid--grouped .field > .field-control,
.membership-form .form-grid--grouped .field > .radio-group {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
}

.membership-form .form-grid--grouped .field-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
}

.membership-form .form-grid--grouped .field-row > .input-field {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: none;
}

.membership-form .form-grid--grouped .field-row > .btn-sm {
    flex-shrink: 0;
}

.membership-form .form-grid--grouped .form-org-address .field--address-main,
.membership-form .form-grid--grouped .form-group-row--split > .field:first-child {
    grid-column: 1 / 3;
}

.membership-form .form-grid--grouped .form-org-address .field--address-rest,
.membership-form .form-grid--grouped .form-group-row--split > .field:last-child {
    grid-column: 3;
}

.membership-form .form-grid--grouped .form-group-row--full > .field {
    grid-column: 1 / -1;
}

/* 기관 정보 — 라벨 너비 */
.membership-form .form-grid--org .form-col--1 .field > label:first-of-type,
.membership-form .form-grid--org .form-org-address .field--address-main > label:first-of-type {
    width: 3.25rem;
}

.membership-form .form-grid--org .form-col--2 .field > label:first-of-type {
    width: 7rem;
}

.membership-form .form-grid--org .form-col--3 .field > label:first-of-type,
.membership-form .form-grid--org .form-org-address .field--address-rest > label:first-of-type {
    width: 5.5rem;
}

.membership-form .form-grid--org .field--org-type {
    min-height: var(--mf-input-height);
}

.membership-form .form-grid--org .field--org-type .radio-group--segment {
    flex: 0 0 auto;
    width: fit-content;
}

.membership-form .form-grid--org #biz-cert-display {
    background: var(--surface-container);
    cursor: default;
}

/* 신청자 정보 — 2열(생년월일) 축소, 3열(핸드폰) 확대 */
.membership-form .form-grid--applicant.form-grid--grouped {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.72fr) minmax(0, 1.42fr);
}

.membership-form .form-grid--applicant .field--birth-date .field-control--date {
    flex: 0 1 auto;
    max-width: 10.5rem;
}

.membership-form .form-grid--applicant .field--birth-date .field-control--date .input-field {
    width: 100%;
}

/* 신청자 정보 — 라벨 너비 (열 내 동일 너비 → 입력란 정렬) */
.membership-form .form-grid--applicant .form-col--1 .field > label:first-of-type {
    width: 7rem;
}

.membership-form .form-grid--applicant .form-col--2 .field > label:first-of-type {
    width: 4.5rem;
}

.membership-form .form-grid--applicant .form-col--3 .field > label:first-of-type {
    width: 6.5rem;
}

.membership-form .field-control--stacked {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 1 auto;
    min-width: 0;
}

.membership-form .field-control--stacked .field-row {
    width: 100%;
}

.membership-form .field-row--verify {
    gap: 0.375rem;
}

.membership-form .field-row--verify > .input-field:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.membership-form .field-row--verify > .input-field--verify-code {
    flex: 0 0 4.25rem;
    width: 4.25rem;
    min-width: 4.25rem;
    padding-inline: 0.5rem;
    text-align: center;
}

.membership-form .field-row--verify > .btn-sm {
    flex-shrink: 0;
    padding-inline: 0.5rem;
}

.membership-form .field-verify-status {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.membership-form .field-verify-status.is-success {
    color: var(--success, #15803d);
}

.membership-form .field-verify-status.is-error {
    color: var(--error);
}

.membership-form .form-section--additional-ids.is-locked .btn-add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.membership-form .form-section--additional-ids.is-locked .role-table tbody tr:not(.role-table__row--admin) {
    opacity: 0.45;
    pointer-events: none;
}

.membership-form .form-section--additional-ids.is-locked .role-table tbody tr:not(.role-table__row--admin) .input-field,
.membership-form .form-section--additional-ids.is-locked .role-table tbody tr:not(.role-table__row--admin) select.input-field {
    background: var(--surface-container);
    cursor: not-allowed;
}

.membership-form .form-note--lock {
    margin-top: 0;
    margin-bottom: 1rem;
}

.membership-form .form-section--additional-ids:not(.is-locked) .form-note--lock {
    display: none;
}

.membership-form .form-note--max {
    margin-top: 0;
    margin-bottom: 1rem;
}

.membership-form .form-grid--applicant > .field-error {
    margin: -0.25rem 0 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--error);
}

.membership-form .form-row--primary,
.membership-form .form-rows-group {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

.membership-form .form-rows-group {
    display: grid;
    grid-template-columns: max-content max-content 1fr;
    column-gap: var(--mf-row-gap);
    row-gap: 1rem;
    align-items: center;
}

.membership-form .form-rows-group > .form-row {
    display: contents;
}

.membership-form .form-rows-group .field--biz-cert,
.membership-form .form-rows-group .field--address-main {
    grid-column: 1;
}

.membership-form .form-rows-group .field--org-tel {
    grid-column: 2;
    grid-row: 1;
}

.membership-form .form-rows-group .field--org-fax {
    grid-column: 3;
    grid-row: 1;
}

.membership-form .form-rows-group .field--address-main {
    grid-row: 2;
}

.membership-form .form-rows-group .field--address-rest {
    grid-column: 3;
    grid-row: 2;
}

.membership-form .form-rows-group .field--org-fax,
.membership-form .form-rows-group .field--address-rest {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    min-width: 0;
    width: 100%;
}

.membership-form .form-row--primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--mf-row-gap);
}

.membership-form .form-row > .field {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.membership-form .form-row > .field > label:first-of-type {
    width: auto;
    min-width: 0;
}

.membership-form .form-row .input-field,
.membership-form .form-row .field-row .input-field,
.membership-form .form-row .radio-group__title,
.membership-form .form-row .radio-group--segment label {
    font-size: var(--mf-font-size);
    letter-spacing: 0;
    text-transform: none;
}

.membership-form .form-row .radio-group__title {
    font-weight: 600;
    color: var(--blue);
}

.membership-form .form-row .field-row,
.membership-form .form-row .file-upload {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.membership-form .form-row .btn-sm {
    flex-shrink: 0;
}

.membership-form .file-upload {
    min-width: 0;
}

.membership-form .file-upload__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-500);
    max-width: 14em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.membership-form .file-upload__name.is-selected {
    color: var(--slate-900);
}

.membership-form .btn-file {
    background: var(--blue-container);
    color: #fff;
    border: none;
    white-space: nowrap;
}

.membership-form .btn-file:hover {
    background: var(--blue-dark);
}

.membership-form .radio-group--segment {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.125rem;
    padding: 0.25rem 0.375rem 0.25rem 0.875rem;
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
    background: var(--surface-low);
    border: 1px solid var(--blue-light);
    border-radius: 9999px;
    box-shadow: 0 0 0 1px rgba(0, 54, 110, 0.06), 0 2px 6px rgba(0, 54, 110, 0.08);
}

.membership-form .radio-group__title {
    flex-shrink: 0;
    margin-right: 0.375rem;
    padding-right: 0.75rem;
    border-right: 1px solid var(--outline-variant);
    font-size: 15px;
    font-weight: 600;
    color: var(--blue);
    white-space: nowrap;
}

.membership-form .radio-group--segment label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    margin: 0;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.membership-form .radio-group--segment label:hover {
    color: var(--blue);
    background: rgba(255, 255, 255, 0.65);
}

.membership-form .radio-group--segment label:has(input:checked) {
    background: var(--blue-container);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 76, 151, 0.28);
}

.membership-form .radio-group--segment label:has(input:checked):hover {
    color: #fff;
    background: var(--blue-dark);
}

.membership-form .radio-group--segment input {
    width: 0.875rem;
    height: 0.875rem;
    margin: 0;
    accent-color: #fff;
}

.membership-form .radio-group--segment label:has(input:checked) input {
    accent-color: #fff;
}

.address-row--stack {
    grid-template-columns: 1fr;
}

.field-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.field-row input { flex: 1; }

.btn-sm {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    white-space: nowrap;
    background: var(--blue-container);
    color: #fff;
    height: 3rem;
}

.btn-sm:hover { background: var(--blue-dark); }

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    min-height: 3rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: none;
    letter-spacing: 0;
}

.radio-group label:hover { color: var(--blue); }

.radio-group input { width: 1rem; height: 1rem; accent-color: var(--blue); }

.address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.address-row__search {
    display: flex;
    gap: 0.75rem;
}

.address-row__search input { flex: 1; }

.field--password {
    position: relative;
}

.field--password input { padding-right: 3rem; }

.field--password button {
    position: absolute;
    right: 0.5rem;
    bottom: 0.375rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field--password button:hover { background: var(--slate-50); }

.field--password button span { opacity: 0.5; }

.field--date { position: relative; }

.field--date input { cursor: pointer; }

.field--date > span {
    position: absolute;
    right: 1rem;
    top: 2.4rem;
    color: var(--slate-500);
    pointer-events: none;
}

.membership-form .field-error {
    grid-column: 1 / -1;
    margin: -0.25rem 0 0 calc(var(--mf-label-width) + var(--mf-gap));
    font-size: 13px;
    font-weight: 600;
    color: var(--error);
}

.membership-form .form-note {
    margin-top: 1.25rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-500);
}

.field-error {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--error);
    margin-top: 0.25rem;
}

.form-note {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--slate-500);
    margin-top: 2rem;
}

.form-section__toolbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.membership-form .form-section__toolbar {
    margin-bottom: 1.5rem;
}

.membership-form .form-section__toolbar .form-section__head {
    margin-bottom: 0;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    background: var(--blue-container);
    color: #fff;
    font-weight: 900;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px rgba(0, 76, 151, 0.2);
}

.membership-form .btn-add {
    height: var(--mf-input-height);
    padding: 0 1rem;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.btn-add:hover { background: var(--blue-dark); }

.role-table-wrap { overflow-x: auto; margin-inline: -2.5rem; padding-inline: 2.5rem; }

.membership-form .role-table-wrap {
    margin-inline: 0;
    padding-inline: 0;
    width: 100%;
}

.role-table {
    width: 100%;
    text-align: left;
}

.role-table th {
    padding: 0 1rem 1.5rem;
    font-size: 0.625rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-900);
}

.membership-form .role-table th {
    padding: 0 0.625rem 0.75rem;
    font-size: var(--mf-font-size);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 1px solid var(--slate-100);
}

.role-table th:last-child { text-align: right; width: 5rem; }

.membership-form .role-table th:last-child {
    width: 4.5rem;
}

.role-table tbody tr { border-top: 1px solid var(--slate-50); }

.role-table td { padding: 1rem; }

.membership-form .role-table td {
    padding: 0.375rem 0.625rem;
    vertical-align: middle;
}

.membership-form .role-table tbody tr {
    border-top-color: var(--slate-100);
}

.membership-form .role-table .input-field,
.membership-form .role-table select.input-field {
    width: 100%;
}

.membership-form .role-table__row--admin .input-field[readonly],
.membership-form .role-table__row--admin select.input-field:disabled {
    background: var(--surface-container);
    cursor: default;
    opacity: 1;
    color: var(--slate-900);
}

.membership-form .role-table__fixed {
    display: inline-block;
    width: 100%;
    text-align: right;
    color: var(--slate-400);
    font-size: var(--mf-font-size);
}

.role-table td:last-child { text-align: right; }

.role-table .btn-delete {
    color: var(--error);
}

.role-table .btn-delete:hover { opacity: 0.8; }

.form-actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.form-actions .btn-submit {
    width: 100%;
    max-width: 15rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--blue-container);
    color: #fff;
    font-weight: 900;
    font-size: 1.125rem;
    box-shadow: 0 25px 50px -12px rgba(0, 76, 151, 0.3);
}

.form-actions .btn-submit:hover { background: var(--blue-dark); }

.form-actions .btn-cancel {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-500);
}

.form-actions .btn-cancel:hover { color: var(--slate-900); }

.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 54, 110, 0.12);
}

/* 11. Our Solution — Our Solution.html */

/* 11-1. Hero / 분석 패널 / 프로모 / 단계 */
.solution-hero {
    position: relative;
    min-height: 819px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.solution-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-block: 5rem;
    width: 100%;
}

.solution-hero__content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.solution-hero__content .badge {
    align-self: flex-start;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.solution-hero__content h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: var(--blue);
}

.solution-hero__content h1 span { color: var(--green); }

.solution-hero__content > p {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
    max-width: 36rem;
}

.solution-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.solution-hero__actions .btn-primary { padding: 1rem 2rem; font-size: 1.125rem; }

.solution-hero__actions .btn-secondary { padding: 1rem 2rem; font-size: 1.125rem; background: rgba(255, 255, 255, 0.5); }

.analysis-panel {
    background: var(--slate-900);
    border-radius: var(--radius-panel);
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.analysis-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 1rem;
}

.analysis-panel__live {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.analysis-panel__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: var(--error);
}

.analysis-panel__tools {
    display: flex;
    gap: 0.5rem;
    color: var(--slate-500);
}

.analysis-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #334155;
    margin-bottom: 1rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../../images/portal/unnamed.jpg');
    background-size: cover;
    background-position: center;
}

.analysis-video__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.analysis-video__ui {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.analysis-stat-box {
    padding: 0.75rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.analysis-stat-box p {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.analysis-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
}

.analysis-bars span {
    display: block;
    width: 0.25rem;
    border-radius: 9999px;
    background: var(--emerald);
}

.analysis-bars span:nth-child(1) { height: 1rem; }
.analysis-bars span:nth-child(2) { height: 1.5rem; }
.analysis-bars span:nth-child(3) { height: 0.75rem; }
.analysis-bars span:nth-child(4) { height: 2rem; }

.analysis-stat-box .status {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--emerald);
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.analysis-play {
    padding: 0.75rem;
    border-radius: 9999px;
    background: rgba(0, 54, 110, 0.8);
    backdrop-filter: blur(12px);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.analysis-play:hover { transform: scale(1.1); }

.analysis-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.analysis-metrics > div {
    padding: 0.75rem;
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.analysis-metrics small {
    display: block;
    font-size: 0.625rem;
    color: var(--slate-500);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.analysis-metrics strong {
    font-size: 1.125rem;
    font-weight: 900;
    color: #fff;
}

.solution-promo {
    position: relative;
    z-index: 20;
    margin-top: -3rem;
    margin-bottom: 3rem;
}

.solution-promo__box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 3rem;
    border-radius: 2rem;
    background: var(--blue-container);
    color: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
}

.solution-promo__box::before {
    content: '';
    position: absolute;
    top: -8rem;
    right: -8rem;
    width: 16rem;
    height: 16rem;
    border-radius: 9999px;
    background: rgba(108, 248, 187, 0.2);
    filter: blur(48px);
}

.solution-promo__box h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.solution-promo__box p {
    font-size: 1.125rem;
    color: #9bbfff;
}

.solution-promo__actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.solution-promo__actions a {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    background: #fff;
    color: #000;
}

.solution-promo__actions a:hover {
    background: var(--orange);
    color: #fff;
}

.solution-steps {
    padding-block: 3rem;
}

.solution-steps__head {
    text-align: center;
    margin-bottom: 4rem;
}

.solution-steps__head h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--blue);
    margin-bottom: 1rem;
}

.solution-steps__head p {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
}

.solution-steps__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: calc(50% + 2rem);
    width: calc(100% - 4rem);
    height: 2px;
    background: var(--outline-variant);
    z-index: 0;
}

.step-item:last-child::after { display: none; }

.step-item__icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    z-index: 1;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.step-item:hover .step-item__icon {
    transform: translateY(-0.5rem);
    background: var(--blue);
    color: #fff;
}

.step-item__icon span { font-size: 1.875rem; }

.step-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
    z-index: 1;
    background: var(--surface);
    padding-inline: 0.5rem;
}

.step-item p {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    line-height: 1.625;
    z-index: 1;
    background: var(--surface);
    padding-inline: 0.5rem;
}

/* 12. Modals — 비밀번호 찾기 · 문의 약관 · 가입 완료 */

/* 12-1. 오버레이 / 다이얼로그 공통 */
body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 22rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid rgba(194, 198, 211, 0.35);
    box-shadow: 0 25px 50px -12px rgba(0, 54, 110, 0.2);
}

.modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    transition: background 0.15s ease, color 0.15s ease;
}

.modal__close:hover {
    background: var(--surface-low);
    color: var(--blue);
}

.modal__close span {
    font-size: 1.25rem;
}

.modal__head {
    margin-bottom: 1.25rem;
    padding-right: 1.5rem;
}

.modal__head h2 {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--blue);
    margin-bottom: 0.375rem;
}

.modal__head p {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    line-height: 1.5;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.modal__form .field label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--on-surface-variant);
}

.modal__form .field input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius);
    background: var(--slate-50);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal__form .field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 54, 110, 0.1);
    background: #fff;
}

.field-control--password .input-field {
    padding-right: 2.5rem;
}

.field-control--password button {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-control--password button:hover {
    background: var(--slate-50);
}

.field-control--password button span {
    opacity: 0.5;
    font-size: 1.125rem;
}

.modal__form .field-control {
    position: relative;
}

.modal__form .field-control--password input {
    padding-right: 2.5rem;
}

body.index-page .modal__form .field-control--password input {
    padding-right: 2.5rem;
}

.login .field-control {
    position: relative;
}

.login .field-control--password input {
    padding-right: 2.75rem;
}

body.index-page .login .field-control--password input {
    padding-right: 2.75rem;
}

.modal__error {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--error);
    margin: 0;
}

.modal__error[hidden] {
    display: none;
}

/* 입력 규칙 안내. 에러가 아니라 항상 보이는 설명이다 */
.modal__hint {
    font-size: 0.6875rem;
    color: var(--on-surface-variant);
    line-height: 1.5;
    margin: 0;
}

.modal__submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    transition: background 0.15s ease;
}

.modal__submit:hover {
    background: var(--blue-dark);
}

/* 12-2. Contact Us — 개인정보 처리방침 (modal--terms) */
.modal--terms {
    max-width: 36rem;
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
}

.modal--terms .modal__head {
    margin-bottom: 1rem;
}

.modal--terms .modal__head h2 {
    font-size: 1.25rem;
}

.modal__terms-body {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 22rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--slate-100);
    border-radius: var(--radius);
    background: var(--slate-50);
}

.modal__terms-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.modal__terms-body p {
    font-size: 14px;
    line-height: 1.625;
    color: var(--on-surface-variant);
}

.modal__terms-body > div + div {
    margin-top: 1.25rem;
}

.modal__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0 0.25rem;
    text-align: center;
}

.modal__success[hidden] {
    display: none;
}

.modal__success-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__success-icon span {
    font-size: 1.5rem;
}

.modal__success p {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--on-surface);
}

.modal__success .modal__submit {
    max-width: 8rem;
}

/* 12-3. Membership — 가입 신청 완료 (modal--membership-complete) */
.modal--membership-complete {
    max-width: 28rem;
}

.modal--membership-complete .modal__head {
    padding-bottom: 0.25rem;
}

.modal--membership-complete .modal__success {
    padding-top: 0.25rem;
}

.modal--membership-complete .modal__success-message {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.625;
    color: var(--on-surface);
}

.modal--membership-complete .modal__success-sub {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--blue);
}

/* 12-4. App Alert — 로그인·유효성검사 공통 (modal--app-alert) */
.modal-overlay--app-alert {
    z-index: 110;
}

.modal--app-alert {
    max-width: 24rem;
}

.modal--app-alert .modal__head {
    padding-bottom: 0.25rem;
}

.modal--app-alert .modal__head h2 {
    font-size: 1.125rem;
}

.modal__alert {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding-top: 0.25rem;
    text-align: center;
}

.modal__alert-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__alert-icon span {
    font-size: 1.5rem;
}

.modal__alert-icon.is-success {
    background: #dcfce7;
    color: #15803d;
}

.modal__alert-icon.is-error {
    background: var(--error-bg);
    color: var(--error);
}

.modal__alert-message {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.625;
    color: var(--on-surface);
    white-space: pre-line;
}

.modal--app-alert .modal__submit {
    max-width: 8rem;
    margin-top: 0.25rem;
}

/* 12-5. Login — 테스트 사이트 안내 (modal--login-notice) */
.modal--login-notice {
    max-width: 26rem;
}

.modal--login-notice .modal__head {
    padding-bottom: 0.25rem;
}

.modal__alert-icon.is-info {
    background: var(--blue-light);
    color: var(--blue);
}

.modal--login-notice .modal__submit {
    max-width: 8rem;
    margin-top: 0.25rem;
}


/* 인증번호 남은 유효시간 (2026-08-04) */
.verify-timer {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #d71a21;
    white-space: nowrap;
    align-self: center;
}

/* 처리 중 표시 (2026-08-04) — 인증번호 발송처럼 외부에 다녀오는 동안 */
.portal-loading {
    position: fixed;
    inset: 0;
    z-index: 200;                 /* .modal-overlay(100) 위 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .6);
}
.portal-loading[hidden] { display: none; }   /* display:flex 가 hidden 을 이기므로 명시한다 */
.portal-loading__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #dbe3ef;
    border-top-color: #004a98;
    border-radius: 50%;
    animation: portal-spin .8s linear infinite;
}
@keyframes portal-spin { to { transform: rotate(360deg); } }
