/**********************************************************
 * ═══════════════════════════════════════════════════════
 * Section A: 공통 변수 & 리셋
 * ═══════════════════════════════════════════════════════
 **********************************************************/ :root {
    /* ── 브랜드 / 기본 색상 ── */
    --brand: #e81f86;
    --brand-600: #e81f86;
    --brand-500: #f06aa8;
    --brand-400: #f5a0c8;
    --g: #e81f86;
    --g2: #f06aa8;
    --g3: #1a0d14;
    --g-pale: rgba(232, 31, 134, .05);
    --g-light: #f0e0ea;
    --primary: #e81f86;
    --primary-dark: #c4196f;
    --primary-light: #faf5f8;

    /* ── 텍스트 ── */
    --white: #FFFFFF;
    --dark: #0d1520;
    --ink: #0b1220;
    --muted: #6b7280;
    --text: #333333;
    --text-light: #787878;
    --gray-lt: #f2f3f5;
    --gray: #999;
    --gray-d: #111;

    /* ── 액센트 ── */
    --accent: #FF7A3D;
    --accent2: #FFEDD5;
    --blue: #e81f86;
    --blue-pale: #f8f5f7;

    /* ── 배경 ── */
    --bg: #f5f6f8;
    --bg-white: #ffffff;
    --bg-gray: #f7f8fa;
    --bg-dark: #2d2d3a;
    --off: #f7f8fa;
    --off2: #eef0f4;
    --card: #ffffff;

    /* ── 테두리 ── */
    --border: #e5e7eb;
    --border-brand: rgba(232, 31, 134, .15);
    --border2: rgba(0, 0, 0, .07);

    /* ── 그림자 ── */
    --shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 0.1rem 0.2rem rgba(16, 24, 40, .06);
    --shadow-md: 0 0.8rem 2.4rem rgba(2, 6, 23, .08);
    --shadow-lg: 0 1.6rem 4rem rgba(2, 6, 23, .12);

    /* ── 반경 ── */
    --radius: 1.6rem;
    --radius-xl: 1.6rem;

    /* ── 포커스 / 링 ── */
    --ring: rgba(232, 31, 134, .35);
    --chip-ring: 0 0 0 0.2rem rgba(232, 31, 134, .15);
    --focus-ring: 0 0 0 0.3rem rgba(232, 31, 134, .28);

    /* ── 칩 / 스텝 ── */
    --chip-gap: 0.8rem;
    --chip-pad-v: 0.5rem;
    --chip-pad-h: 0.75rem;
    --step-outline: 0.2rem solid rgba(232, 31, 134, .12);

    /* ── 전환 / 레이아웃 ── */
    --sticky-blur: saturate(140%) blur(6px);
    --transition-fast: .18s cubic-bezier(.22, .8, .34, 1);
    --transition-slow: .38s cubic-bezier(.22, .8, .34, 1);
    --container-max: 168rem;
    --safe-top: env(safe-area-inset-top, 0);
    --safe-bottom: env(safe-area-inset-bottom, 0);
    --kendo-color-primary: #f0e0ea !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    background: var(--bg);
}
body {
    position: relative;
    top: 0 !important;
    word-break: keep-all;
    line-height: 1.5;
    color: var(--ink);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 400;
    background: linear-gradient(180deg, #fafbfc 0%, #f6f8fb 100%);
}
.hidden {
    display: none !important;
}
.muted {
    color: var(--muted);
}
.img {
    display: block;
}
.img img {
    width: 100%;
}
.bgImg {
    background: center/auto no-repeat;
}

/**********************************************************
 * ═══════════════════════════════════════════════════════
 * Section B: 공통 타이포그래피
 * ═══════════════════════════════════════════════════════
 **********************************************************/
h1, h2, h3, h4, h5, h6 {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 700;
    color: #333;
    font-weight: 700;
}
h1 {
    font-size: 4.8rem;
    letter-spacing: -0.3rem;
}
h2, h2.ui.header {
    font-size: 3.6rem;
    letter-spacing: -0.18rem;
}
h3, h3.ui.header {
    font-size: 3rem;
}
h4, h4.ui.header, h4.ui.header span {
    font-size: 2.7rem;
}
h5, h5.ui.header {
    font-size: 2.4rem;
}
h6, .report-card .tit {
    font-size: 2rem;
}
body, body p, body li, body dt, body a, body th, body td {
    font-family: 'Pretendard'; font-weight: 500;
    font-size: 1.6rem;
}
.ui.form .field > label, .ui.form .grouped.fields > label, #globalProgress .label {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 700;
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
}
.ui.form .muted {
    margin-top: .5rem;
    font-family: 'Pretendard'; font-weight: 400;
    font-size: 1.4rem;
    line-height: 150%;
    font-weight: 400;
}
.bigP {
    font-size: 1.8rem;
}
.txtCenter {
    text-align: center;
}

/**********************************************************
 * ═══════════════════════════════════════════════════════
 * Section C: 공통 레이아웃
 * ═══════════════════════════════════════════════════════
 **********************************************************/
.page-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2.8rem 1.5rem calc(8rem + var(--safe-bottom));
}
.report-wrap {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2.8rem 1.5rem 6.4rem;
}
.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.flex-first {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.flex-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex-align-center {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.inner1 {
    max-width: 172rem;
}
.inner2 {
    max-width: 150rem;
}
.inner3 {
    max-width: 128rem;
}
.actions-row {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.toolbar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(.6rem);
    border: .1rem solid #e5e7eb;
    border-radius: 1.2rem;
    padding: 1rem;
    margin-top: .5rem;
}

/**********************************************************
 * ═══════════════════════════════════════════════════════
 * Section D: 공통 헤더 & 네비게이션
 * ═══════════════════════════════════════════════════════
 **********************************************************/
/* ── Header ── */
header,
header#hd {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: #ffffff;
    border-bottom: 0.1rem solid rgba(0, 0, 0, .07);
    transition: box-shadow .3s;
}
header.scrolled {
    box-shadow: 0 0.4rem 2.8rem rgba(0, 0, 0, .1);
}
.hd-top {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 4.8rem;
}
.hd-top a {
    font-size: 1.3rem;
    color: #555;
    text-decoration: none;
    transition: color .2s;
}
.hd-top a:hover {
    color: #e81f86;
}
.hd-top .sep {
    color: rgba(0, 0, 0, .2);
}
.hd-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 168rem;
    margin: 0 auto;
    padding: 0 2rem;
    height: 8.7rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}
.logo img {
    height: 5.4rem;
}

/* ── Nav ── */
.nav,
.nav-hd {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.nav a,
.nav-hd a {
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--gray-d);
    text-decoration: none;
    letter-spacing: .03em;
    position: relative;
    transition: color .2s;
}
.nav a::after,
.nav-hd a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 0.2rem;
    background: var(--g);
    border-radius: 0.1rem;
    transition: width .25s;
}
.nav a:hover,
.nav-hd a:hover {
    color: var(--g2);
}
.nav a:hover::after,
.nav-hd a:hover::after {
    width: 100%;
}
.nav .cta-btn,
.nav-hd .cta-btn {
    background: var(--g);
    color: #fff;
    padding: 1.1rem 2.2rem;
    border-radius: 0.8rem;
    font-weight: 700;
    font-size: 1.4rem;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.nav .cta-btn::after,
.nav-hd .cta-btn::after {
    display: none;
}
.nav .cta-btn:hover,
.nav-hd .cta-btn:hover {
    color: #fff;
    background: var(--g2);
    transform: translateY(-0.1rem);
    box-shadow: 0 0.6rem 2rem rgba(232, 31, 134, .35);
}

/* ── 로그인 버튼 (공통) ── */
.nav .login-btn,
.nav-hd .login-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .9rem 1.8rem;
    border-radius: 0.8rem;
    font-weight: 600;
    font-size: 1.4rem;
    color: #555 !important;
    border: 1.5px solid #d1d5db;
    background: transparent;
    transition: border-color .2s, color .2s, transform .15s;
}
.nav .login-btn::after,
.nav-hd .login-btn::after {
    display: none;
}
.nav .login-btn:hover,
.nav-hd .login-btn:hover {
    border-color: #e81f86;
    color: #e81f86 !important;
    transform: translateY(-0.1rem);
}

/* ── Hamburger (공통) ── */
.hbg {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    width: 4rem;
    height: 4rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 1rem;
    padding: 0.8rem;
    transition: background .2s;
}
.hbg:hover {
    background: var(--g-pale);
}
.hbg span {
    display: block;
    width: 100%;
    min-height: 0.2rem;
    height: 0.2rem;
    flex-shrink: 0;
    border-radius: 0.2rem;
    background: var(--dark);
    margin-top: 0.5rem;
    transition: transform .32s cubic-bezier(.4, 0, .2, 1), opacity .25s, width .25s;
}
.hbg span:first-child {
    margin-top: 0;
}
.hbg span:nth-child(3) {
    width: 55%;
}
.hbg.open span:nth-child(1) {
    transform: translateY(0.7rem) rotate(45deg);
}
.hbg.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hbg.open span:nth-child(3) {
    transform: translateY(-0.7rem) rotate(-45deg);
    width: 100%;
}

/* ── Mobile Nav (공통) ── */
.mob-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 950;
    background: rgba(13, 21, 32, .45);
    backdrop-filter: blur(0.3rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity .32s;
}
.mob-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}
.mob-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(32rem, 88vw);
    z-index: 960;
    background: #fff;
    box-shadow: -0.8rem 0 4rem rgba(0, 0, 0, .12);
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .36s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
}
.mob-nav.show {
    transform: translateX(0);
}
.mob-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 2.2rem;
    border-bottom: 0.1rem solid var(--border2);
    flex-shrink: 0;
}
.mob-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--dark);
    text-decoration: none;
}
.mob-logo span {
    color: var(--g);
}
.mob-x {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 0.8rem;
    background: var(--gray-lt);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--dark);
    transition: background .2s;
}
.mob-x:hover {
    background: var(--g-pale);
    color: var(--g);
}
.mob-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 0;
}
.mob-links a {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.5rem 2.4rem;
    font-size: 1.5rem;
    font-family: 'Pretendard'; font-weight: 500
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 0.1rem solid var(--border2);
    transition: background .15s, color .15s;
}
.mob-links a:last-of-type {
    border-bottom: none;
}
.mob-links a:hover {
    background: var(--g-pale);
    color: var(--g);
}
.mob-links .m-ico {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 0.9rem;
    background: var(--g-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.mob-links .m-ico .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary);
}
.mob-links a:hover .m-ico {
    background: #fff;
}
.mob-foot {
    padding: 2rem 2.2rem 3.2rem;
    border-top: 0.1rem solid var(--border2);
    flex-shrink: 0;
}
.mob-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--g);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .04em;
    transition: background .2s, transform .15s;
}
.mob-cta:hover {
    background: var(--g2);
    transform: translateY(-0.1rem);
}
.mob-util {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.4rem;
}
.mob-util a {
    font-size: 1.2rem;
    color: var(--gray);
    text-decoration: none;
    transition: color .2s;
}
.mob-util a:hover {
    color: var(--g);
}

/**********************************************************
 * ═══════════════════════════════════════════════════════
 * Section E: 진단하기 — 카드/버튼/스텝/폼/설문/차트
 * ═══════════════════════════════════════════════════════
 **********************************************************/
/* ── 카드/리포트/버튼 ── */
.report-hero, .report-card {
    background: var(--card);
    border: none;
    border-radius: 1.6rem;
    padding: 4rem;
    box-shadow: var(--shadow-sm);
}
.report-links a {
    word-break: break-all;
}
.report-links .ui.list {
    display: grid;
    gap: 1.2rem;
    padding: 0;
    margin: 0;
}
.report-links .ui.list li, .report-card .ui.message {
    list-style: none;
    background: #f8f9fb;
    border: .1rem solid #e2e4e8;
    border-radius: 1rem;
    padding: 2rem !important;
    box-shadow: 0 .2rem .6rem rgba(0, 0, 0, .05);
    transition: all .25s ease;
}
.report-card .ui.message {
    text-align: center;
    margin-top: 4rem;
}
.report-links .ui.list li:hover {
    background: #f0f1f4;
    border-color: #e81f86;
    box-shadow: 0 .4rem 1rem rgba(14, 107, 247, .15);
}
.ui.button {
    font-size: 1.5rem;
    line-height: 140%;
    padding: .8rem 2rem;
    border-radius: 10px !important;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}
.ui.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm) !important;
}
.ui.primary.button, .ui.primary.buttons .button {
    font-size: 1.7rem;
    padding: 1.5rem 4rem;
    border-radius: 99.9rem !important;
    background: linear-gradient(90deg, var(--brand-600), var(--brand-500)) !important;
    border: none !important;
    color: #fff !important;
}
.ui.primary.button:hover {
    filter: saturate(110%);
    box-shadow: var(--shadow-md) !important;
}
.ui.button.blue {
    background-color: #c4196f;
}
.ui.button.grey {
    background-color: #999;
}

/* ── 단계/스텝/프로그레스 ── */
#globalProgress {
    border-radius: 1rem !important;
    box-shadow: inset 0 .1rem 0 rgba(255, 255, 255, .6);
    margin: 0 0 2.4rem 0;
}
#globalProgress .bar {
    background: linear-gradient(90deg, var(--brand-600), var(--brand-400)) !important;
    border-radius: 10px !important;
    transition: width var(--transition-slow), background var(--transition-fast);
}
#globalProgress .bar:before {
    display: none;
}
#globalProgress .label {
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
    color: #0f172a !important;
}
.ui.progress > .label #progressLabel {
    font-size: 1.4rem;
}
/* 스텝 */
.ui.steps {
    margin-bottom: 1.2rem;
}
.ui.steps .step {
    font-size: 1.4rem;
    padding: 2rem;
}
.ui.steps .step .title {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 700;
    font-size: 1.9rem;
    font-weight: 700;
}
.ui.steps .step .description {
    opacity: .8;
}
.ui.steps .step.active .title {
    color: #e81f86;
}
.ui.ordered.steps .step:before {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 700;
    font-size: 2.7em;
    margin-right: 2rem;
}
.ui.ordered.steps .step.completed:before, .ui.steps .step.completed > .icon:before {
    color: #e87ab3;
}
.step-pane.is-dim {
    opacity: .5;
    filter: grayscale(.1);
}
.step-pane.is-active {
    opacity: 1;
    filter: none;
}
.ui.segment {
    margin: 0;
    padding: 4rem;
    border-radius: 1.2rem;
    border: none;
}
.ui.segment + .ui.segment {
    margin-top: 3rem;
}
.step-pane.is-dim .step-title {
    opacity: .8;
}

/* ── 폼 & 드롭다운 & 체크박스 ── */
.ui.form input:not([type]), .ui.form input[type=date], .ui.form input[type=datetime-local], .ui.form input[type=email], .ui.form input[type=file], .ui.form input[type=number], .ui.form input[type=password], .ui.form input[type=search], .ui.form input[type=tel], .ui.form input[type=text], .ui.form input[type=time], .ui.form input[type=url] {
    line-height: 140%;
    padding: 1rem;
    font-size: 1.7rem;
    background: #fff;
    border: .1rem solid rgba(34, 36, 38, .15);
    border-radius: .4rem;
}
.ui.selection.dropdown, .ui.dropdown > .text {
    font-size: 1.7rem;
    border-radius: .4rem;
}
.ui.dropdown > .default.text {
    color: #444 !important;
}
.ui.dropdown .menu {
    z-index: 10000 !important;
    max-height: 28rem !important;
}
.ui.dropdown .menu > .item {
    font-family: 'Pretendard'; font-weight: 400;
    color: #222;
    font-size: 1.6rem;
    padding: .78571429rem 1.14285714rem !important;
}
.ui.form .field + .field, .ui.form .field + .fields, .ui.form .fields + .field, .ui.form .fields + .fields, #sleep-12h + .fields, .ui.form .field + .female-only {
    margin-top: 4rem;
}
.ui.form .fields .field + .field, .ui.form .checkbox-grid .field + .field {
    margin-top: 0;
}
.ui.form label + input {
    margin-top: 1rem;
}
.ui.form .fields .field input[type="number"], .ui.form .fields .field input[type="text"] {
    min-height: 4.4rem;
}
.ui.checkbox input + label {
    padding: 1rem;
}
.ui.checkbox input.hidden + label {
    padding-left: 3.8rem;
    font-size: 1.6rem;
}
.ui.radio.checkbox .box:before, .ui.radio.checkbox label:before, .ui.checkbox .box:before, .ui.checkbox label:before {
    width: 2.7rem;
    height: 2.7rem;
    top: .6rem;
}
.ui.checkbox .box:after, .ui.checkbox label:after {
    font-size: 2.2rem;
    top: 1rem;
    width: 2.7rem;
    height: 2.7rem;
}
.ui.radio.checkbox input:checked ~ .box:after, .ui.radio.checkbox input:checked ~ label:after {
    top: -0.2rem;
    left: -.8rem;
    width: 4.3rem;
    height: 4.3rem;
    background-color: #e81f86;
}
/* Kendo 체크박스 커스텀 */
.k-checkbox {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .3rem;
    margin-right: .2rem;
}
.k-checkbox::before {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2.5rem;
    background-color: #f26238;
}
/* 오토필 배경 */
.ui.form .field.field input:-webkit-autofill, .ui.form .field.field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 10rem #efdbeb inset !important;
    box-shadow: 0 0 0 10rem #efdbeb inset !important;
    border-color: #d4d6db !important;
}
/* 접근성 포커스 */ :where(input, button, select, [tabindex]):focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .35);
    border-radius: 10px;
}

/* ── 설문 카드(33문항) & 칩 옵션 ── */
.q {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 4rem;
    margin: 2rem 0;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.q + .q {
    margin-top: 4rem;
}
.q:hover {
    box-shadow: var(--shadow-md);
    border-color: #eadbe1;
    transform: translateY(-1px);
}
.q .qdesc,
.q .dot {
    margin: 1rem 0 2rem 0;
    color: #333;
}
.q .opts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.q .opts > li {
    padding: 0.5rem 1rem;
    border: 0.1rem solid var(--border);
    border-radius: 99.9rem;
    cursor: pointer;
    user-select: none;
    background: #fff;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.q .opts.img > li {
    padding: 0;
    border: 0.2rem solid var(--border);
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    background: #fff;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.q .opts.img > li img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 24rem;
    transition: transform .3s ease, filter .3s ease;
}
.q .qdesc img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 24rem;
    margin: 1rem 0 2rem 0;
    border-radius: 0.8rem;
    transition: transform .3s ease, filter .3s ease;
}
/* hover 시 공통 효과 유지 */
.q .opts > li:hover {
    border-color: #e2cfd6;
    box-shadow: var(--chip-ring);
    background: #f8f9fb;
    transform: translateY(-1px);
}
.q .opts > li:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}
/* 선택 효과 */
.q .opts > li.selected {
    border-color: var(--brand-500);
    box-shadow: var(--chip-ring);
    background: linear-gradient(180deg, #ffffff 0%, #f5f6f9 100%);
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
}
.q .opts > li.selected img {
    transform: scale(1.03);
    filter: brightness(1.1);
}
.q .opts > li:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}
.q .sub {
    margin-top: 3rem;
    animation: subReveal .22s ease-out both;
}
@keyframes subReveal {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.q.locked {
    pointer-events: none;
    opacity: .5;
}

/* ── 그래픽/리스크 바 ── */
#riskRadar {
    width: 100% !important;
    /*height: auto !important;*/
    aspect-ratio: 1/1;
}

/* ── 리스트 ── */
ul.num {
    list-style: decimal;
    padding-left: 2rem;
}
.dot li {
    position: relative;
    display: block;
    line-height: 140%;
    margin-bottom: .8rem;
    padding-left: 1.8rem;
    word-break: keep-all;
}
.dot.bigP li {
    font-size: 1.9rem;
    color: #333 !important;
}
.dot li:before {
    content: "";
    position: absolute;
    left: .4rem;
    top: .8rem;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #999;
}
.bar li {
    position: relative;
    color: #787878;
    padding-left: 2rem;
    margin-bottom: .5rem;
}
.bar li:before {
    content: "";
    position: absolute;
    left: .3rem;
    top: 1.3rem;
    width: .7rem;
    height: .2rem;
    background: #999;
}

/* ── 기타 벤더/그리드 ── */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem .8rem;
}
.ui.header > .icon {
    color: #e87ab3;
}
.brand.header {
    color: #1f2937;
}

/* ── qnum / preview / summary ── */
.ui.segment.step-pane .qnum {
    display: inline-block;
    font-family: 'Pretendard'; font-weight: 700;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 99.9rem;
    color: #fff !important;
    text-align: center;
    margin-right: 1rem;
    font-size: 1.8rem;
    background-color: var(--brand);
}
pre.preview {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 400;
    font-size: 1.4rem;
    background-color: #000;
    color: #fff;
    padding: 2rem 4rem;
    border-radius: 1.2rem;
}
summary {
    font-size: 1.4rem;
    margin-top: 1rem;
}
h4.ui.header .sub.header {
    font-size: 1.3rem;
}
h4.ui.header span, .report-card .name, .report-links .ui.list li a {
    color: var(--brand);
    font-weight: 700;
    font-family: 'Pretendard'; font-weight: 700;
}
.report-links .ui.list li a {
    color: var(--brand);
    font-weight: 500;
    font-family: 'Pretendard'; font-weight: 500;
    letter-spacing: 0;
}

/* 레이더 + 범례 가로 배치 */
.radar-with-legend {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.radar-with-legend .graphicsWrap {
    flex: 1;
    min-width: 0;
    /* viewport에 따라 높이 가변: 모바일 28rem ~ 데스크톱 56rem */
    max-width: 56rem;
    width: 100%;
    height: clamp(28rem, 42vw, 56rem) !important;
    margin: 1.5rem auto;
}
.radar-with-legend #riskRadar {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
}
.grade-legend {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    padding: 1.6rem 2rem;
    background: #f9fafb;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    min-width: 15rem;
}
.grade-item {
    display: block;
    padding: .8rem 1.2rem;
    font-size: 1.5rem;
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
    white-space: nowrap;
    color: #333;
    background: transparent;
    border-radius: .5rem;
    transition: background .2s;
}

/* ── 진단결과 – 종합진단 제목 ── */
.summary-title {
    font-family: 'Pretendard'; font-weight: 700;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding: 1.2rem 2.8rem;
    background: linear-gradient(135deg, var(--primary), #f06aa8);
    border-radius: 99.9rem;
    display: inline-block;
    box-shadow: 0 .4rem 1.2rem rgba(232, 31, 134, .25);
    letter-spacing: .05rem;
}

/* ── 진단결과 – returnTxt 라운드 배경 ── */
.report-card .returnTxt:not(:empty) {
    background: #f8f9fb;
    border: .1rem solid #e5e7eb;
    border-radius: 1.4rem;
    padding: 2.4rem 2.8rem;
}

.report-card p + .report-links {
    margin-top: 3rem;
}

/* ── 진단결과 – title-icon (li-icon 동일 스타일) ── */
.title-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.8rem;
    height: 4.8rem;
    background: linear-gradient(135deg, var(--primary), #f06aa8);
    border-radius: 1.2rem;
    color: #fff;
    vertical-align: middle;
    box-shadow: 0 .4rem 1.2rem rgba(232, 31, 134, .25);
}
.title-icon .material-symbols-outlined {
    font-size: 2.6rem;
    color: #fff !important;
}
.title-icon.sm {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: .9rem;
    box-shadow: 0 .3rem .8rem rgba(232, 31, 134, .2);
}
.title-icon.sm .material-symbols-outlined {
    font-size: 2rem;
}
h4.ui.header .title-icon,
h5.ui.header .title-icon {
    margin-right: 1.2rem;
}

/* ── 진단결과 – 리포트 히어로 개선 ── */
.report-hero {
    background: linear-gradient(135deg, #e81f86 0%, #f06aa8 50%, #f5a0c8 100%);
    color: #fff;
    border-radius: 1.6rem;
    padding: 4rem 4.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 .8rem 3.2rem rgba(232, 31, 134, .3);
    position: relative;
    overflow: hidden;
}
.report-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 28rem;
    height: 28rem;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}
.report-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 18rem;
    height: 18rem;
    background: rgba(255, 255, 255, .05);
    border-radius: 50%;
    pointer-events: none;
}
.report-hero .ui.header {
    display: flex;
    align-items: center;
}
.report-hero h4.ui.header,
.report-hero h5.ui.header,
.report-hero h4.ui.header .content,
.report-hero h5.ui.header .content,
.report-hero h4.ui.header .sub.header,
.report-hero h5.ui.header .sub.header {
    color: #fff !important;
}
.report-hero .title-icon {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(4px);
    box-shadow: 0 .2rem .8rem rgba(0, 0, 0, .1);
}
.report-hero .sub.header {
    opacity: .85;
    font-size: 1.5rem !important;
    margin-top: .4rem;
}

/* ── 진단결과 – 카드 개선 ── */
.report-card {
    border-radius: 1.6rem;
    padding: 3.5rem 4rem;
    margin: 1.6rem 0;
    border: .1rem solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s ease, transform .3s ease;
}
.report-card:hover {
    box-shadow: 0 .6rem 2.4rem rgba(232, 31, 134, .08);
    transform: translateY(-.2rem);
}
.report-card h4.ui.header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: .1rem solid #f0f1f5;
}

/* ── 진단결과 – 차트 제목 ── */
.chart-title {
    text-align: center;
    font-size: 2.4rem;
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4rem;
    letter-spacing: -.05rem;
}

/* ── 진단결과 – returnTxt 텍스트 스타일 ── */
.report-card .returnTxt {
    font-size: 1.6rem;
    line-height: 1.85;
    color: #374151;
    word-break: keep-all;
    padding: .5rem 0;
}
.report-card .returnTxt + .report-links {
    margin-top: 3.5rem;
}

/* ── 진단결과 – 리스크 바 (5등분 그리드) ── */
.risk-bars {
    margin: 3rem auto;
    padding: 2rem 2.5rem;
    background: #f8f9fb;
    border-radius: 1.2rem;
    border: .1rem solid #e8eaee;
}

/* 상단 등급 라벨 헤더 */
.risk-header {
    display: flex;
    align-items: flex-end;
    gap: .8rem;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
}
.risk-header .risk-label {
    width: 8rem;
    flex: 0 0 auto;
}
.risk-scale {
    flex: 1;
    display: flex;
}
.risk-scale-label {
    flex: 1;
    text-align: center;
    font-family: 'Pretendard'; font-weight: 600;
    font-size: 1.15rem;
    font-weight: 600;
    color: #6b7280;
}
.risk-info-head {
    min-width: 13rem;
    flex: 0 0 auto;
}

/* 각 행 */
.risk-bars .risk-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .6rem 0;
}
.risk-label {
    width: 8rem;
    flex: 0 0 auto;
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
    font-size: 1.4rem;
    color: #1f2937;
}

/* 바 컨테이너 (5등분 그리드 + 실제 바) */
.risk-bar-container {
    flex: 1;
    position: relative;
    height: 1.4rem;
    background: #f0f1f5;
    border-radius: 999px;
    overflow: hidden;
}
.risk-bar-grid {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 1;
    pointer-events: none;
}
.risk-bar-grid span {
    flex: 1;
    border-right: .1rem solid rgba(0,0,0,.08);
}
.risk-bar-grid span:last-child {
    border-right: none;
}
.risk-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #f06aa8, #e81f86);
    border-radius: 999px;
    z-index: 2;
}

/* 우측 등급 + 퍼센트 정보 */
.risk-grade {
    min-width: 13rem;
    flex: 0 0 auto;
    text-align: right;
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
    font-size: 1.35rem;
    color: #e81f86;
    white-space: nowrap;
    padding-left: .8rem;
}
.risk-grade .grade-name {
    display: inline-block;
    font-family: 'Pretendard'; font-weight: 400;
    font-weight: 400;
    font-size: 1.2rem;
    color: #6b7280;
    margin-left: .3rem;
}
.risk-grade .risk-pct-val {
    display: inline-block;
    font-family: 'Pretendard'; font-weight: 700;
    font-weight: 700;
    font-size: 1.3rem;
    color: #e81f86;
    margin-left: .5rem;
    min-width: 3.5rem;
    text-align: right;
}

/* ── 진단하기 – Page Specific (from addCss) ── */
.graphicsWrap {
    max-width: 64rem;
    height: 64rem;
    margin: 1.5rem auto 4rem auto;
}
.step-pane {
    position: relative;
    overflow: visible !important;
}
.step-pane.is-dim {
    pointer-events: auto !important;
}
.page-wrap {
    margin-top: 12.2rem;
}
.progress-sticky {
    position: sticky !important;
    top: 12.2rem !important;
    z-index: 60;
    background: transparent;
    padding: 1.2rem 0 1.6rem;
    margin-bottom: 2rem;
    width: 100%;
    border-bottom: none;
    box-shadow: none;
    transition: padding .25s, width .25s, margin .25s, background .25s;
}
.progress-sticky.scrolled {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 1.2rem 2.4rem 1.6rem;
    background: #fff;
    border-bottom: 0.1rem solid #e5e7eb;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, .04);
}
.report-wrap {
    padding-top: 12.2rem;
}

/**********************************************************
 * ═══════════════════════════════════════════════════════
 * Section G: 공통 푸터
 * ═══════════════════════════════════════════════════════
 **********************************************************/
#footerMenu {
    display: flex;
    align-items: center;
    background-color: #2d2d3a;
    padding: 2.4rem 0;
}
#footerMenu .menu {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    margin: 0 auto;
}
#footerMenu .menu li {
    position: relative;
    text-align: center;
}
#footerMenu .menu li span {
    color: rgba(256, 256, 256, 0.3);
}
#footerMenu .menu li a {
    color: #fff;
}
/****** footerInfo CSS *******/
#footerInfo {
    background-color: #1c1b1b;
    padding: 6rem 0;
}
#footerInfo .inner3 {
    text-align: center;
}
#footerInfo .inner3 .footerLogo {
    display: block;
    margin: 0 auto 2rem auto;
}
#footerInfo .inner3 .footerLogo img {
    height: 5rem;
    margin: 0 auto;
}
#footerInfo .inner3 p {
    font-family: 'Pretendard'; font-weight: 200;
    font-size: 1.5rem;
    font-weight: 200;
    color: rgba(256, 256, 256, 0.7);
}
/* ── 소개페이지 / 진단하기 – Footer (light) ── */
.footer {
    background: #fff;
    color: var(--text-light);
    text-align: center;
    padding: 2.8rem 2.4rem;
    font-size: 0.85rem;
    border-top: 0.1rem solid var(--border-brand);
}
.footer a {
    color: var(--primary);
    text-decoration: none;
}

/**********************************************************
 * ═══════════════════════════════════════════════════════
 * Section H: 소개페이지 & index — 히어로/섹션/카드/애니메이션
 * ═══════════════════════════════════════════════════════
 **********************************************************/
/* ── INDEX PAGE – Hero Slides ── */
.hero {
    position: relative;
    overflow: hidden;
}
.h-slides {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 10.5rem;
}
.h-slide {
    display: flex !important;
    align-items: flex-start;
    position: relative;
    min-height: 80vh;
    padding-top: 6rem;
    background-size: cover;
    background-position: center;
}
@media (min-width: 768px) {
    .h-slide {
        align-items: center;
        padding-top: 4rem;
    }
    .h-btns .btn-g,
    .h-btns .btn-out {
        white-space: nowrap;
    }
}
.slide-bg-1 {
    background-image: url('../../main/images/slide_04.jpg');
}
.slide-bg-2 {
    background-image: url('../../main/images/slide_08.jpg');
}
.slide-bg-3 {
    background-image: url('../../main/images/slide_12.jpg');
}
.h-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    /*background: rgba(255, 255, 255, .35);*/
}
/* 배경 이미지는 HTML inline style로 이동 (Swiper loop 호환) */
.h-inner {
    position: relative;
    z-index: 2;
    max-width: 168rem;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}
.h-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(232, 31, 134, .2);
    border: 0.1rem solid rgba(255, 255, 255, .25);
    padding: 0.5rem 1.4rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    letter-spacing: .16em;
    color: rgba(255, 255, 255, .9);
    text-transform: uppercase;
    margin-bottom: 2.2rem;
    backdrop-filter: blur(0.4rem);
}
.h-tag .dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: #fff;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1)
    }
    50% {
        opacity: .3;
        transform: scale(.6)
    }
}
.h-ttl {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 4.8rem;
    line-height: 1.2;
    letter-spacing: -0.2rem;
    color: #222;
    margin-bottom: 2rem;
    font-weight: 800;
    -webkit-font-smoothing: antialiased;
}
.h-ttl em {
    font-style: normal;
    color: #e8458b;
}
.h-sub {
    color: rgba(30, 30, 30, .75);
    line-height: 1.6;
    margin-bottom: 3.6rem;
    font-weight: 400;
}
.h-btns {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.h-btns .btn-g,
.h-btns .btn-out {
    border-radius: 99.9rem;
    width: 20rem;
    text-align: center;
    justify-content: center;
}
.btn-g {
    background: var(--g);
    color: #fff !important;
    padding: 1.4rem 3.2rem;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-family: 'Pretendard'; font-weight: 500
    font-weight: 500;
    text-decoration: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: .04em;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-g:hover {
    background: var(--g2);
    transform: translateY(-0.2rem);
    box-shadow: 0 1rem 2.8rem rgba(232, 31, 134, .35);
    text-decoration: none;
}
.btn-out {
    background: transparent;
    color: #333 !important;
    padding: 1.4rem 3.2rem;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-family: 'Pretendard'; font-weight: 500;
    font-weight: 500;
    text-decoration: none;
    border: 0.15rem solid rgba(50, 50, 50, .35) !important;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.btn-out:hover {
    border-color: #222;
    color: #222 !important;
    background: rgba(0, 0, 0, .04);
    text-decoration: none;
}
.h-stats {
    display: flex;
    gap: 1.6rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}
.h-stat {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(0.8rem);
    border: 0.1rem solid rgba(255, 255, 255, .15);
    border-radius: 1.4rem;
    padding: 1.6rem 2.2rem;
    text-align: center;
    min-width: 12rem;
}
.h-stat-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.2rem;
    color: #fff;
    letter-spacing: .04em;
    line-height: 1;
}
.h-stat-val span {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, .7);
}
.h-stat-lbl {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .6);
    margin-top: 0.4rem;
}
.h-controls {
    position: absolute;
    z-index: 10;
    bottom: 4rem;
    left: 0;
    right: 0;
    max-width: 168rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
/* Swiper 페이지네이션 컨테이너 — Swiper 기본 스타일 리셋 */
.h-pagination {
    position: static !important;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.sdot {
    width: 2.8rem;
    height: 0.4rem;
    border-radius: 0.2rem;
    background: rgba(50, 50, 50, .25);
    cursor: pointer;
    transition: width .3s, background .3s;
    opacity: 1;
}
.sdot.on {
    width: 4.8rem;
    background: #333;
}
.snum {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(50, 50, 50, .6);
    margin-left: auto;
    font-family: 'DM Sans', sans-serif;
}
/* 슬라이드 멈춤/재생 버튼 */
.slide-play-btn {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    border: 0.2rem solid rgba(50, 50, 50, .35);
    background: rgba(0, 0, 0, .06);
    backdrop-filter: blur(0.4rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}
.slide-play-btn:hover {
    background: rgba(0, 0, 0, .1);
    border-color: rgba(50, 50, 50, .6);
}
/* 재생 중 → 일시정지 아이콘 (두 줄) */
.slide-play-btn .play-icon {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.slide-play-btn .play-icon::before,
.slide-play-btn .play-icon::after {
    content: '';
    display: block;
    width: 0.3rem;
    height: 1rem;
    background: #444;
    border-radius: 0.1rem;
    transition: all .25s;
}
/* 멈춤 상태 → 재생 아이콘 (삼각형) */
.slide-play-btn.paused .play-icon::before {
    width: 0;
    height: 0;
    background: transparent;
    border-style: solid;
    border-width: 0.6rem 0 0.6rem 1rem;
    border-color: transparent transparent transparent #444;
    border-radius: 0;
}
.slide-play-btn.paused .play-icon::after {
    display: none;
}

/* ── INDEX – Stats Bar ── */
.stats-bar {
    background: var(--g);
    padding: 4rem 0;
}
.sb-grid {
    max-width: 168rem;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.sb-item {
    text-align: center;
    padding: 0 3.2rem;
    border-right: 0.1rem solid rgba(255, 255, 255, .25);
}
.sb-item:last-child {
    border-right: none;
}
.sb-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4.8rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.6rem;
    letter-spacing: 0;
}
.sb-val sup {
    top: 0;
    font-size: 2.4rem;
    font-family: 'Pretendard'; font-weight: 500
    font-weight: 500;
    line-height: 4.8rem;
    opacity: .85;
    margin-left: 0.6rem;
}
.sb-lbl {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, .8);
    letter-spacing: .06em;
}

/* ── INDEX – CTA Section ── */
.cta-sec {
    padding: 10rem 0;
    background: var(--off);
}
.cta-inner {
    max-width: 168rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7.2rem;
    align-items: center;
}
.kicker {
    font-size: 1.8rem;
    color: var(--g2);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.sec-ttl {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(3.2rem, 3.6vw, 4.8rem);
    font-weight: 700;
    color: #3a3a3a;
    line-height: 1.2;
    letter-spacing: -0.1rem;
    margin-bottom: 1.6rem;
}
.sec-ttl em {
    font-style: normal;
    color: var(--g);
}
.sec-sub {
    color: var(--gray);
    font-weight: 300;
}
.cta-desc {
    color: var(--gray);
    margin-bottom: 3rem;
    font-weight: 300;
}
.cta-panel {
    background: #fff;
    border: 0.1rem solid var(--border2);
    border-radius: 2rem;
    padding: 3.6rem;
    box-shadow: 0 0.8rem 4rem rgba(0, 0, 0, .07);
    position: relative;
    overflow: hidden;
}
.cta-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.4rem;
}
.panel-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
}
.type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2.4rem;
}
.t-chip {
    background: var(--off);
    border: 0.1rem solid var(--border2);
    border-radius: 1rem;
    padding: 1.4rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}
.t-chip:hover {
    background: var(--g-pale);
    border-color: var(--g);
    transform: translateY(-0.2rem);
}
.t-chip.sel {
    background: var(--g-pale);
    border-color: var(--g);
}
.tci {
    margin-bottom: 0.6rem;
}
.tci .material-symbols-outlined {
    font-size: 3.2rem;
    color: var(--primary);
}
.tcl {
    font-size: 1.4rem;
    color: var(--gray);
    line-height: 1.3;
    font-family: 'Pretendard'; font-weight: 500
    font-weight: 500;
}
.cta-go {
    width: 100%;
    padding: 1.6rem;
    border-radius: 1rem;
    background: var(--g);
    color: #fff !important;
    border: none;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: background .2s, transform .15s, box-shadow .2s;
    text-decoration: none;
}
.cta-go:hover {
    background: var(--g2);
    transform: translateY(-0.1rem);
    box-shadow: 0 1rem 2.8rem rgba(232, 31, 134, .35);
    text-decoration: none;
}
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 1.8rem;
    vertical-align: middle;
}

/* ── INDEX – Why Section ── */
.why-sec {
    padding: 10rem 0;
    background: #fff;
}
.sec-inner {
    max-width: 168rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.sec-head {
    text-align: center;
    margin-bottom: 6rem;
}
.sec-head .sec-sub {
    color: var(--gray);
    max-width: 54rem;
    margin: 1.2rem auto 0;
    font-weight: 300;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
}
.wc {
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 38rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3.6rem 2.8rem;
    background-size: cover;
    background-position: center;
    transition: box-shadow .25s, transform .25s;
    cursor: default;
}
.wc::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 21, 32, .8) 0%, rgba(13, 21, 32, .2) 80%, rgba(13, 21, 32, .05) 100%);
    transition: background .3s;
}
.wc:hover {
    box-shadow: 0 1.6rem 4.8rem rgba(0, 0, 0, .2);
    transform: translateY(-0.6rem);
}
.wc:hover::before {
    background: linear-gradient(to top, rgba(13, 21, 32, .85) 0%, rgba(13, 21, 32, .3) 80%, rgba(13, 21, 32, .1) 100%);
}
.wc:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=600&q=80');
}
.wc:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1677442136019-21780ecad995?w=600&q=80');
}
.wc:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?w=600&q=80');
}
.wc-num, .wc-icon, .wc-en, .wc-ttl, .wc-txt {
    position: relative;
    z-index: 2;
}
.wc-num {
    font-size: 1.1rem;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .6);
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.wc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.6rem;
    height: 4.6rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .08));
    border: 0.1rem solid rgba(255, 255, 255, .2);
    border-radius: 1.2rem;
    margin-bottom: 1.4rem;
}
.wc-icon svg {
    width: 2.4rem;
    height: 2.4rem;
    fill: #fff;
}
.wc-icon .material-symbols-outlined {
    font-size: 2.4rem;
    color: #fff;
}
.wc-en {
    font-size: 1.4rem;
    letter-spacing: .12rem;
    color: rgba(255, 255, 255, .7);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    font-family: 'DM Sans', sans-serif;
}
.wc-ttl {
    font-size: 3rem;
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}
.wc-txt {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, .75);
    font-weight: 300;
}

/* ── INDEX – Data Section ── */
.data-sec {
    padding: 10rem 0;
    background: var(--off);
}
.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7.2rem;
    align-items: center;
    margin-top: 6rem;
}
.data-grid.data-grid-stack {
    grid-template-columns: 1fr;
    gap: 4rem;
}
.result-img-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}
.result-img-wrap-lg {
    justify-content: center;
    width: 100%;
    max-width: 100%;
}
.result-img {
    max-width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 1.2rem 4rem rgba(0,0,0,.1);
    border: 1px solid rgba(0,0,0,.04);
    transition: transform .3s, box-shadow .3s;
}
.result-img-lg {
    width: 100%;
    max-width: 100%;
}
.result-img:hover {
    transform: translateY(-.4rem);
    box-shadow: 0 1.6rem 5rem rgba(0,0,0,.14);
}
.data-desc {
    font-size: 1.7rem;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 3.6rem;
}
.stat-stack {
    border-top: 0.1rem solid var(--border2);
}
.sr {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 0.1rem solid var(--border2);
}
.sr-lbl {
    font-size: 1.3rem;
    color: var(--gray);
    text-transform: uppercase;
    min-width: 10rem;
}
.sr-track {
    flex: 1;
    height: 0.8rem;
    background: rgba(232, 31, 134, .1);
    border-radius: 0.3rem;
    overflow: hidden;
}
.sr-fill {
    height: 100%;
    background: linear-gradient(to right, var(--g2), var(--g));
    border-radius: 0.3rem;
}
.sr-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--dark);
    min-width: 11rem;
    text-align: right;
}
.sr-val span {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--g2);
    margin-left: 0.3rem;
}
.data-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-content: center;
}
.dc {
    background: #fff;
    border: 0.1rem solid rgba(232, 31, 134, .1);
    border-radius: 2rem;
    padding: 3.6rem 2.4rem;
    text-align: center;
    box-shadow: 0 0.6rem 2.4rem rgba(0, 0, 0, .06);
    transition: box-shadow .3s, transform .3s, border-color .3s;
    position: relative;
    overflow: hidden;
}
.dc:hover {
    box-shadow: 0 1.2rem 4rem rgba(232, 31, 134, .15);
    transform: translateY(-0.5rem);
    border-color: rgba(232, 31, 134, .25);
}
.dc.span2 {
    grid-column: 1 / -1;
    width: 100%;
}
.dc-n {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 4.8rem;
    font-weight: 800;
    color: var(--g);
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 0.8rem;
}
.dc-n sub {
    font-size: 2rem;
    font-weight: 500;
    color: var(--g2);
    bottom: 0;
}
.dc-l {
    margin-top: 0.8rem;
    font-size: 1.4rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: .02em;
}

/* ── INDEX – Developer Section ── */
.dev-sec {
    padding: 10rem 0;
    background: #fff;
}
.dev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7.2rem;
    align-items: start;
    margin-top: 6rem;
}

.dev-labs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 1.2rem;
}
.lab {
    background: var(--off);
    border: 0.1rem solid var(--border2);
    border-radius: 1.4rem;
    padding: 2.2rem;
    text-align: center;
    transition: border-color .2s, transform .2s;
}
.lab:hover {
    border-color: var(--g-light);
    transform: translateY(-0.3rem);
}
.lab-ico {
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    object-fit: contain;
    margin: 0 auto 1.2rem;
    display: block;
}
.lab-nm {
    font-size: 1.8rem;
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.6rem;
}
.lab-ds {
    font-size: 1.4rem;
    color: var(--gray);
}
.trust-panel {
    background: #f8f9fb;
    border: 0.1rem solid #e8eaee;
    border-radius: 1.4rem;
    padding: 3.2rem 4rem;
}
.trust-kicker {
    font-size: 1.6rem;
    color: var(--g2);
    text-transform: uppercase;
    margin-bottom: 1.8rem;
}
.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1.8rem;
    padding: 1.8rem 0;
    border-bottom: 0.1rem solid rgba(232, 31, 134, .13);
}
.trust-item:last-child {
    border-bottom: none;
}
.ti-ico {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 1rem;
    background: #fff;
    border: 0.1rem solid var(--g-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    flex-shrink: 0;
}
.ti-ico .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 0.2rem;
}
.ti-ttl {
    font-size: 1.7rem;
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
}
.ti-txt {
    font-size: 1.4rem;
    color: var(--gray);
}

/* ── 소개페이지 – Hero ── */
.intro-hero {
    margin-top: 12.2rem;
    margin-bottom: 8rem;
    background: linear-gradient(135deg, #3a2035 0%, #a81b6a 50%, var(--primary) 100%);
    color: #fff;
    padding: 10rem 2.4rem 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.intro-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 60rem;
    height: 60rem;
    background: radial-gradient(circle, rgba(77, 111, 255, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.intro-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 40rem;
    height: 40rem;
    background: radial-gradient(circle, rgba(232, 31, 134, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 168rem;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(0.8rem);
    border: 0.1rem solid rgba(255, 255, 255, 0.18);
    border-radius: 5rem;
    padding: 0.8rem 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.8rem;
    letter-spacing: 0.02em;
}
.hero-badge svg {
    width: 2rem;
    height: 2rem;
    fill: #e86fa3;
}
.hero-badge .material-symbols-outlined {
    font-size: 1.8rem;
    color: #e86fa3;
}
.intro-hero h1 {
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.05rem;
    color: #fff;
    line-height: 1.3;
}
.intro-hero h1 span {
    color: #e86fa3;
}
.hero-sub {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4rem;
}
.intro-hero p {
    color: rgba(255, 255, 255, 1);
    margin: 0 auto 3.6rem;
    text-align: left;
}
.hero-features {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    flex-wrap: wrap;
}
.hero-feat {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(0.6rem);
    border: 0.1rem solid rgba(255, 255, 255, 0.12);
    border-radius: 1.2rem;
    padding: 1.4rem 2.2rem;
    transition: background 0.25s, transform 0.25s, opacity 0.35s ease, translate 0.35s ease;
    opacity: 0;
    translate: 0 1.2rem;
}
.hero-feat.on {
    opacity: 1;
    translate: 0 0;
}
.hero-feat:nth-child(1) { transition-delay: 0.05s; }
.hero-feat:nth-child(2) { transition-delay: 0.15s; }
.hero-feat:nth-child(3) { transition-delay: 0.25s; }
.hero-feat:nth-child(4) { transition-delay: 0.35s; }
.hero-feat:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-0.2rem);
}
.hero-feat-icon {
    width: 4.6rem;
    height: 4.6rem;
    background: linear-gradient(135deg, var(--primary), #f06aa8);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-feat-icon .material-symbols-outlined {
    font-size: 2.4rem;
    color: #fff;
}
.hero-feat-text {
    font-size: 1.8rem;
    font-family: 'Pretendard'; font-weight: 500
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    white-space: nowrap;
}

/* ── 소개페이지 – Sections ── */
.section {
    padding: 4rem 2.4rem;
}
.section-alt {
    background: var(--bg-gray);
}
.container {
    max-width: 168rem;
    margin: 0 auto;
}
.section-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}
.section-title .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 4.2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}
.section-divider {
    width: 4rem;
    height: 0.2rem;
    background: var(--primary);
    border-radius: 0.2rem;
    margin-bottom: 2.8rem;
    margin-left: 5rem;
}
.content-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.8rem;
}
.content-text + .content-text {
    margin-top: 1.2rem;
}

/* ── 소개페이지 – Info List ── */
.info-list {
    list-style: none;
    margin: 2.8rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    padding: 3.2rem 2.8rem;
    background: #f2f3f6;
    border-radius: 1.6rem;
}
.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 2rem 2.2rem;
    background: #fff;
    border: 0.1rem solid var(--border-brand);
    border-radius: 1.2rem;
    font-size: 1.4rem;
    color: var(--text);
    box-shadow: 0 0.2rem 0.8rem rgba(232, 31, 134, 0.04);
    transition: box-shadow 0.25s, transform 0.25s;
    position: relative;
}
.info-list li:hover {
    box-shadow: 0 0.6rem 2.4rem rgba(232, 31, 134, 0.10);
    transform: translateY(-0.2rem);
}
.info-list li .li-icon {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #f06aa8);
    border-radius: 1rem;
    color: #fff;
}
.info-list li .li-icon .material-symbols-outlined {
    font-size: 3rem;
    color: #fff;
}
.info-list li .li-text {
    flex: 1;
    padding-top: 0.2rem;
}
.info-list li .li-title {
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.info-list li .li-desc {
    color: var(--text-light);
}
.section-alt .info-list {
    background: #f0f1f5;
}

/* ── 소개페이지 – Step List / Flow ── */
.step-list {
    list-style: none;
    counter-reset: step;
    margin: 2.4rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.step-list li {
    counter-increment: step;
    padding: 1.6rem 2rem 1.6rem 5.6rem;
    background: #fff;
    border: 0.1rem solid var(--border-brand);
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
    position: relative;
    color: var(--text-light);
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 1.6rem;
    top: 1.5rem;
    width: 2.8rem;
    height: 2.8rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin: 4rem 0;
    background-color: #ecedf0;
    border-radius: var(--radius);
    padding: 3.2rem 2.4rem;
}
.step-flow-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    max-width: 24rem;
    background: #fff;
    border: 0.1rem solid var(--border-brand);
    border-radius: var(--radius);
    padding: 3.2rem 2rem 2.8rem;
    box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}
.step-flow-item:hover {
    box-shadow: 0 0.6rem 2.4rem rgba(232, 31, 134, 0.1);
    transform: translateY(-0.4rem);
}
.step-flow-num {
    width: 5.6rem;
    height: 5.6rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.6rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0.4rem 1.6rem rgba(232, 31, 134, 0.25);
}
.step-flow-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}
.step-flow-desc {
    font-size: 1.4rem;
    color: var(--text-light);
    line-height: 1.7;
    padding: 0 0.8rem;
}
.step-flow-arrow {
    display: flex;
    align-items: center;
    align-self: center;
    color: var(--primary);
    font-size: 1.4rem;
    flex-shrink: 0;
    opacity: 0.6;
    padding: 0 0.2rem;
}
.step-flow-arrow svg {
    width: 3.2rem;
    height: 3.2rem;
    fill: var(--primary);
    opacity: 0.5;
}
.step-flow-arrow .material-symbols-outlined {
    font-size: 3.2rem;
    color: var(--primary);
    opacity: 0.5;
}
.step-flow-line {
    display: none;
}
/* step-flow 순차 애니메이션 */
.step-flow-seq .seq-item {
    opacity: 0;
    transform: translateY(1.4rem) scale(0.95);
    transition: opacity .3s cubic-bezier(.22, 1, .36, 1), transform .3s cubic-bezier(.22, 1, .36, 1);
}
.step-flow-seq .seq-item.seq-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── 소개페이지 – Misc ── */
.formula-box {
    background: var(--bg-gray);
    border: 0.1rem solid var(--border-brand);
    border-radius: var(--radius);
    padding: 2.4rem 3.2rem;
    text-align: center;
    font-size: 2.4rem;
    font-family: 'Georgia', serif;
    font-weight: 600;
    color: var(--text);
    margin: 2.4rem 0;
    letter-spacing: 0.05rem;
}
.highlight-box {
    background: var(--primary-light);
    border: 0.1rem solid #e0e2e6;
    border-radius: var(--radius);
    padding: 2.4rem 2.8rem;
    margin: 2.4rem 0;
}
.highlight-box p {
    font-size: 1.8rem;
    line-height: 1.9;
    color: #555;
}
.figure {
    margin: 4rem 0;
    padding: 1.8rem;
    text-align: center;
    background-color: #fff;
    border-radius: 1.8rem;
}
.figure img {
    max-width: 100%;
    border-radius: var(--radius);
}
.figure-caption {
    margin-top: 1.2rem;
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ── 특허 섹션 ── */
.patent-wrap {
    text-align: center;
    margin-top: 3rem;
}
.patent-img {
    max-width: 50rem;
    width: 100%;
    border-radius: 1.2rem;
    box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.08);
}

/* ── 소개페이지 – Team Lead ── */
.team-lead {
    text-align: center;
    margin-bottom: 4rem;
}
.team-lead .lead-card {
    display: inline-block;
    padding: 4rem 10rem;
}
.team-lead .lead-card .team-card-photo {
    width: 20rem;
    height: 20rem;
}
.team-lead .lead-card h6 {
    font-size: 1.8rem;
}

/* ── 소개페이지 – Team ── */
.team-section {
    background: #4d4d58;
    color: #fff;
    padding: 8rem 2.4rem;
}
.team-section .section-title {
    font-family: 'Pretendard'; font-weight: 600;
    color: #fff;
}
.team-section .section-title .num {
    background: #e81f86;
}
.team-section .section-divider {
    background: #e81f86;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
}
.team-card {
    background: rgba(255, 255, 255, 0.06);
    border: 0.1rem solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 4rem 2.4rem;
    text-align: center;
    transition: transform 0.2s, background 0.2s;
}
.team-card:hover {
    background: rgba(255, 255, 255, 0.1);
}
.team-card-photo {
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    display: block;
    background: #f0f0f0;
    border: none;
}
.team-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
}
.team-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}
.team-card img.lab-logo {
    width: 15rem;
    height: 15rem;
    object-fit: contain;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: block;
}
.team-card h6 {
    font-family: 'Pretendard'; font-weight: 500;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

/* ── SCROLL REVEAL (공통) ── */
.reveal {
    opacity: 0;
    transform: translateY(2.8rem);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.show {
    opacity: 1;
    transform: translateY(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal-scale.show {
    opacity: 1;
    transform: scale(1);
}

/* ── 진단 제출 처리중 오버레이 ── */
.proc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 26, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: procFadeIn .3s ease;
}
@keyframes procFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.proc-card {
    background: #fff;
    border-radius: 2rem;
    padding: 4.4rem 4.8rem 3.6rem;
    text-align: center;
    box-shadow: 0 2rem 6rem rgba(0, 0, 0, .25);
    max-width: 42rem;
    width: 90%;
    position: relative;
    overflow: hidden;
}
.proc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: .4rem;
    background: linear-gradient(90deg, #e81f86, #a855f7);
}
.proc-ring {
    position: relative;
    width: 14rem;
    height: 14rem;
    margin: 0 auto 2.4rem;
}
.proc-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.proc-ring-track {
    fill: none;
    stroke: #f1eef5;
    stroke-width: 8;
}
.proc-ring-fill {
    fill: none;
    stroke: url(#procGrad);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset .4s ease;
}
.proc-percent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pretendard', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    color: #1f2937;
    letter-spacing: -.02em;
    line-height: 1;
}
.proc-percent em {
    font-style: normal;
    font-size: 2rem;
    font-weight: 700;
    color: #e81f86;
    margin-left: .2rem;
}
.proc-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: .8rem;
}
.proc-msg {
    font-size: 1.4rem;
    color: #6b7280;
    margin-bottom: 2rem;
    min-height: 1.7rem;
    transition: opacity .3s;
}
.proc-bar-wrap {
    height: .6rem;
    background: #f1eef5;
    border-radius: .3rem;
    overflow: hidden;
    margin-bottom: 1.4rem;
}
.proc-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #e81f86, #a855f7);
    border-radius: .3rem;
    transition: width .4s ease;
    position: relative;
    overflow: hidden;
}
.proc-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    animation: procShimmer 1.4s linear infinite;
}
@keyframes procShimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}
.proc-hint {
    font-size: 1.2rem;
    color: #9ca3af;
}
@media (max-width: 76.8rem) {
    .proc-card {
        padding: 3.2rem 2.4rem 2.4rem;
    }
    .proc-ring {
        width: 11rem;
        height: 11rem;
    }
    .proc-percent {
        font-size: 3.2rem;
    }
    .proc-title {
        font-size: 1.7rem;
    }
}

.bntZone {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding: 2rem 0;
}
.bntZone .huge.button {
    min-width: 18rem;
    font-size: 1.7rem;
    border-radius: 99.9rem !important;
    margin: 0;
}
.bntZone .huge.button .material-symbols-outlined {
    font-size: 2rem;
    vertical-align: middle;
}

/* ── 개인정보보호정책 ── */
.policy-section {
    background: #fff;
    border-radius: 1.6rem;
    padding: 3.5rem 4rem;
    margin-bottom: 2rem;
    border: .1rem solid var(--border);
    transition: box-shadow .3s ease;
}
.policy-section:hover {
    box-shadow: 0 .6rem 2.4rem rgba(232, 31, 134, .06);
}
.policy-section h4 {
    font-family: 'Pretendard'; font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: .1rem solid #f0f1f5;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.policy-section h4 .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    background: linear-gradient(135deg, var(--primary), #f06aa8);
    color: #fff;
    border-radius: .8rem;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}
.policy-section h6 {
    color: #374151;
    margin: 2rem 0 1rem;
}
.policy-section p,
.policy-section li {
    line-height: 1.8;
    color: #4b5563;
    word-break: keep-all;
}
.policy-section ul {
    padding-left: 2rem;
    margin: 1rem 0;
}
.policy-section li {
    margin-bottom: .6rem;
}
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.policy-table th,
.policy-table td {
    border: .1rem solid #e5e7eb;
    padding: 1.2rem 1.6rem;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
    color: #4b5563;
}
.policy-table th {
    background: #f8f9fb;
    color: #1f2937;
    font-family: 'Pretendard'; font-weight: 600;
    font-weight: 600;
    white-space: nowrap;
}
.policy-info {
    background: #f8f9fb;
    border: .1rem solid #e5e7eb;
    border-radius: 1.2rem;
    padding: 2rem 2.4rem;
    margin: 2rem 0;
}
.policy-info p {
    margin-bottom: .4rem;
}

/* ── 스크롤 Top 버튼 ── */
.btn-scroll-top {
    position: fixed;
    right: 2.4rem;
    bottom: 3.2rem;
    z-index: 900;
    width: 4.4rem;
    height: 4.4rem;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 .4rem 1.2rem rgba(232, 31, 134, .3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s ease;
}
.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.btn-scroll-top:hover {
    background: #c4196f;
}
.btn-scroll-top .material-symbols-outlined {
    font-size: 2.2rem;
    line-height: 1;
}


/**********************************************************
 * ═══════════════════════════════════════════════════════
 * Section Z: 반응형 — 모든 @media 쿼리
 * ═══════════════════════════════════════════════════════
 **********************************************************/

/* ── 모션 최소화 ── */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ── max-width: 1199px ── */
@media (max-width: 1199px) {
    .checkbox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ui.form .two.fields > .field, .ui.form .two.fields > .fields {
        width: 100%;
        flex-wrap: wrap;
    }
    .ui.form .fields {
        flex-wrap: wrap;
    }
    .ui.step, .ui.steps .step {
        padding: 3rem 2rem;
    }
    .required.field + .required.field {
        margin-top: 4rem !important;
    }
    
    .h-slides {
        margin-top: 4rem;
    }
}

/* ── max-width: 1023px ── */
@media (max-width: 1023px) {
    .ui.steps .step .description {
     display: none;
    }
}

/* ── max-width: 86rem ── */
@media (max-width: 86rem) {
    .nav, .nav-hd {
        display: none;
    }
    .hbg {
        display: flex;
    }
    .mob-nav {
        display: flex;
    }
    .mob-backdrop {
        display: block;
    }
    .hd-top {
        padding: 0.5rem 2rem;
    }
    .hd-inner {
        padding: 0 2rem;
    }
    /* index hero */
    .h-slides {
        padding: 0;
    }
    .h-inner {
        padding: 0 2rem;
    }
    .h-controls {
        padding: 0 2rem;
        bottom: 2.4rem;
    }
    .h-stats {
        gap: 1rem;
    }
    .h-stat {
        padding: 1.2rem 1.6rem;
        min-width: 9rem;
    }
    .h-stat-val {
        font-size: 2.4rem;
    }
    /* index grids */
    .cta-inner {
        grid-template-columns: 1fr;
    }
    .data-grid {
        grid-template-columns: 1fr;
    }
    .dev-grid {
        grid-template-columns: 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .sb-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .sb-item {
        border-right: none;
        border-bottom: 0.1rem solid rgba(255, 255, 255, .2);
        padding: 1.6rem 0;
    }
    .sb-item:last-child {
        border-bottom: none;
    }
    .dev-labs {
        grid-template-columns: 1fr;
    }
    .data-cards {
        grid-template-columns: 1fr 1fr;
    }
    .dc.span2 {
        grid-column: 1 / -1;
        width: 100%;
    }
    .type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── max-width: 76.8rem ── */
@media (max-width: 76.8rem) {
    .hd-inner {
        height: 9rem;
    }
    .progress-sticky {
        top: 9rem !important;
    }
    .progress-sticky.scrolled {
        top: 9rem !important;
    }
    .page-wrap {
        margin-top: 9rem;
    }
    .report-wrap {
        padding-top: 9rem;
    }
    /* 소개페이지 */
    .intro-hero {
        margin-top: 9rem;
        padding: 7rem 2rem 5rem;
        margin-bottom: 4rem;
    }

    .hero-features {
        gap: 1rem;
    }
    .hero-sub {
        font-size: 1.7rem;
        margin-bottom: 2.4rem;
    }
    .hero-feat {
        width: 100%;
        max-width: 50rem;
        padding: 1rem 1.6rem;
    }
    .hero-feat-text {
        font-size: 1.5rem;
    }
    .section {
        padding: 3rem 2rem;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-card-photo {
        width: 12rem;
        height: 12rem;
    }
    .section-alt .info-list,
    .info-list {
        background-color: transparent;
        grid-template-columns: 1fr;
        padding: 0;
        gap: 1.2rem;
    }
    .info-list li {
        padding: 1.6rem 1.8rem;
    }
    .info-list li .li-title {
        font-size: 1.7rem;
    }
    .info-list li .li-icon {
        width: 4.2rem;
        height: 4.2rem;
    }
    .info-list li .li-icon .material-symbols-outlined {
        font-size: 2.4rem;
    }
    .highlight-box {
        margin: 0;
    }
    .formula-box {
        font-size: 2rem;
    }
    .figure {
        margin: 2.4rem 0;
    }
    .highlight-box p {
        font-size: 1.5rem;
        line-height: 1.6;
    }
    .step-flow {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin: 2rem 0;
    }
    .step-flow-item {
        max-width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
        padding: 2rem 1.6rem;
        width: 100%;
    }
    .step-flow-num {
        width: 4.2rem;
        height: 4.2rem;
        font-size: 1rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .step-flow-arrow {
        padding-top: 0;
    }
    .step-flow-arrow svg {
        width: 2.4rem;
        height: 2.4rem;
    }
    .step-flow-arrow .material-symbols-outlined {
        font-size: 2.4rem;
        transform: rotate(90deg);
    }
    .step-flow-desc {
        padding: 0;
    }
    /* 진단하기 */
    .graphicsWrap {
        max-width: 32rem;
        height: 32rem;
        margin: 1rem auto 1.5rem auto;
    }
    
    .team-section {
        padding: 4rem 2.4rem;
    }
    .team-card img.lab-logo {
        width: 12rem;
        height: 12rem;
    }
    .summary-title {
        font-size: 1.8rem;
        margin-top: 3rem;
        padding: 1rem 2rem;
        box-shadow: 0 .2rem 0.8rem rgba(232, 31, 134, .25);
    }
    .report-card .returnTxt {
        font-size: 1.6rem;
        line-height: 1.8;
    }
    .report-card h4.ui.header .content {
        font-size: 2rem;
    }
    .report-links .ui.list li a {
        display: block;
        margin-top: 0.5rem;
    }
    .bntZone {
        margin-top: 1rem;
    }
    .bntZone .ui.button, 
    .bntZone .ui.primary.button, .ui.primary.buttons .button {
        font-size: 1.6rem;
        padding: 1.5rem 4rem !important;
    }
}

/* ── max-width: 767px ── */
@media (max-width: 767px) {
    .h-slides {
        margin-top: 11.2rem;
    }
    .slide-bg-1 {
        background-image: url('../../main/images/slide_07.jpg') !important;
    }
    .slide-bg-2 {
        background-image: url('../../main/images/slide_14.jpg') !important;
    }
    .slide-bg-3 {
        background-image: url('../../main/images/slide_13.jpg') !important;
    }
    .h-btns {
        display: none;
    }
    .hd-inner {
        height: 8rem;
    }
    .progress-sticky {
        top: 11.2rem !important;
    }
    .progress-sticky.scrolled {
        top: 11.2rem !important;
    }
    .reveal.show {
        text-align: center;
    }
    .data-cards .dc:not(.span2) {
        display: none;
    }
    .cta-sec {
        padding: 2rem 0;
    }
    .cta-desc {
        margin-bottom: 2rem;
    }
    .h-slide {
        min-height: 24rem !important;
        height: auto !important;
        align-items: center;
        padding-top: 0rem;
        background-size: 100rem;
        background-repeat: no-repeat;
        background-color: transparent;
    }
    .h-ttl {
        font-size: 2.7rem;
        margin-bottom: 1rem;
    }
    .snum {
        display: none;
    }
    .h-controls {
        justify-content: center;
    }
    .h-sub {
        display: block;
        font-size: 1.3rem;
        width: 20rem;
    }
    .h-sub br {
        display: none;
    }
    h1 {
        font-size: 3.5rem;
        letter-spacing: -0.18rem;
    }
    h2, h2.ui.header {
        font-size: 3.0rem;
        letter-spacing: 0;
    }
    h3, h3.ui.header {
        font-size: 2.5rem;
    }
    h4, h4.ui.header, h4.ui.header span {
        font-size: 2.2rem;
    }
    h5, h5.ui.header {
        font-size: 1.9rem;
    }
    h6, .report-card .tit {
        font-size: 1.6rem;
    }
    body, body p, body li, body dt, body a, body th, body td {
        font-size: 1.4rem;
    }
    .ui.form .field > label, .ui.form .grouped.fields > label, .ui.checkbox input.hidden + label {
        font-size: 1.5rem;
    }
    .ui.form .muted {
        font-size: 1.3rem;
    }
    .bigP {
        font-size: 1.7rem;
    }
    .ui[class*="top attached"].segment {
        margin-top: 1rem;
        border-radius: .8rem .8rem 0 0;
        padding: 2rem;
        border: none;
    }
    .ui.bottom.attached.segment {
        padding: 2rem;
    }
    .actions-row > * {
        flex: 1 1 100%;
    }
    .toolbar .ui.button, .ui.huge.button {
        width: 100%;
    }
    .ui.steps:not(.unstackable) {
        flex-direction: row;
    }
    .ui.six.steps > .step {
        width: 16.666% !important;
        flex-wrap: nowrap !important;
    }
    .ui.ordered.steps .step:before {
        font-size: 2.4rem;
    }
    .ui.steps .step, .ui.steps .disabled.step, .ui.steps .active.step {
        padding: 1rem;
    }
    .ui.steps .step:after, .ui.steps .disabled.step:after, .ui.steps .active.step:after {
        display: block !important;
    }
    .ui.steps .step:last-child:after, .ui.steps .disabled.step:last-child:after, .ui.steps .active.step:last-child:after {
        display: none !important;
    }
    .ui.steps .step .title {
        font-size: 1.2rem;
    }
    .ui.form .field + .field, .ui.form .field + .fields, .ui.form .fields + .field, .ui.form .fields + .fields, #sleep-12h + .fields, .ui.form .field + .female-only {
        margin-top: 3rem;
    }
    .ui.form .fields .field + .field {
        margin-top: .5rem;
    }
    .required.field + .required.field {
        margin-top: 3rem !important;
    }
    .ui.form input:not([type]), .ui.form input[type=date], .ui.form input[type=datetime-local], .ui.form input[type=email], .ui.form input[type=file], .ui.form input[type=number], .ui.form input[type=password], .ui.form input[type=search], .ui.form input[type=tel], .ui.form input[type=text], .ui.form input[type=time], .ui.form input[type=url] {
        padding: .7rem;
        font-size: 1.5rem;
    }
    input::placeholder, textarea::placeholder {
        font-size: 1.4rem;
    }
    .ui.selection.dropdown, .ui.dropdown > .text {
        font-size: 1.5rem;
    }
    .ui.dropdown .menu > .item {
        font-size: 1.4rem;
    }
    .actions-row .ui.button, .report-card .ui.button {
        font-size: 1.5rem;
        padding: 1.2rem 2.5rem;
        border-radius: .4rem;
    }
    .ui.checkbox input.hidden + label {
        padding-left: 3.2rem;
    }
    .ui.radio.checkbox .box:before, .ui.radio.checkbox label:before, .ui.checkbox .box:before, .ui.checkbox label:before {
        width: 2.2rem;
        height: 2.2rem;
    }
    .ui.radio.checkbox input:checked ~ .box:after, .ui.radio.checkbox input:checked ~ label:after {
        top: .2rem;
        left: -.4rem;
        width: 3rem;
        height: 3rem;
    }
    .page-wrap {
        padding: 2rem;
    }
    .report-hero, .report-card {
        border-radius: 1.2rem;
        padding: 2.5rem 2rem;
    }
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    .ui.segment, .q {
        padding: 2rem;
        border-radius: 0.8rem;
    }
    .ui.form .field {
        margin: 0;
    }
    .toolbar .ui.button + .ui.button {
        margin-top: 1rem;
    }
    .q .opts.img > li img, .q .qdesc img {
        max-width: 18rem;
    }
    .report-wrap {
        padding: 9rem 1.6rem 2rem;
    }
    /* 진단하기 qnum */
    .ui.segment.step-pane h5 {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .ui.segment.step-pane .qnum {
        display: inline-block;
        width: auto;
        padding: 0.3rem 1rem;
        font-size: 1.4rem;
        margin-right: 0;
        margin-bottom: 0.8rem;
        white-space: nowrap;
    }
    /* 개인정보보호정책 */
    .policy-section { padding: 2.5rem 2rem; }
    .policy-table { font-size: 1.25rem; }
    .policy-table th,
    .policy-table td { padding: .8rem 1rem; }
    /* 진단결과 레이더+범례 모바일: 세로 배치 */
    .radar-with-legend {
        flex-direction: column;
        gap: 1rem;
    }
    .radar-with-legend .graphicsWrap {
        max-width: 32rem;
        width: 100%;
        height: clamp(24rem, 70vw, 32rem) !important;
        margin: 1rem auto 0;
    }
    .grade-legend {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        min-width: 0;
        width: 100%;
        padding: 1rem 1rem;
    }
    .grade-item {
        font-size: 1.3rem;
        padding: 0.5rem 0.8rem;
    }
    /* Top 버튼 숨김 */
    .btn-scroll-top { display: none !important; }
    
    .stats-bar {
        padding: 2rem 0;
        background: var(--g);
    }
    .sb-grid {
        padding: 0 2rem;
    }
    .sb-val {
        font-size: 3.6rem;
    }
    .cta-sec,
    .why-sec,
    .data-sec,
    .dev-sec{
        padding: 4rem 0;
    }
    .cta-inner {
        gap: 4rem;
    }
    .sec-head {
        margin-bottom: 4rem;
    }
    .data-grid,
    .dev-grid {
        gap: 2rem;
        margin-top: 0;
    }
    .data-desc {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    #footerInfo {
        padding: 3rem 2rem;
    }
    #footerMenu {
        padding: 1.8rem 0;
    }
    #footerInfo .inner3 .footerLogo img {
        height: 4.2rem;
    }
    #footerInfo .inner3 p {
        font-size: 1.3rem;
    }
    .lab-ico {
        width: 12rem;
        height: 12rem;
    }
    .dc-n {
        font-size: 3.6rem;
    }
    .trust-panel {
        padding: 2.4rem;
    }
    .ti-ico {
        display: none;
    }
    .sec-ttl {
        font-size: clamp(2.8rem, 3.2vw, 4.2rem);
    }
    .kicker {
        font-size: 1.6rem;
    }
}


@media (max-width: 56rem) {
    .h-btns {
        flex-direction: column;
    }
    .btn-g, .btn-out {
        text-align: center;
        padding: 1.2rem 2.4rem;
        font-size: 1.4rem;
        white-space: nowrap;
        display: block;
        width: fit-content;
        /*margin: 0 auto;*/
    }
    .reveal .btn-g {
        margin: 0 auto;
    }
    .h-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    .h-stat {
        min-width: auto;
    }
    .type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /*section {
        padding: 1.8rem 0 !important;
    }*/
    .data-cards {
        grid-template-columns: 1fr;
    }
    .dc.span2 {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* ============================================================
 * 내 식습관 맞춤형 권장사항 (진단결과.html)
 * ============================================================ */

/* 식습관 맞춤형 권장사항 컨테이너 */
.advice { margin-top: 1.5rem; }

/* 유틸리티 컬러 */
.blueTxt { color: #2a9d8f; }
.redTxt  { color: var(--brand, #e81f86); }

/* 좋은/나쁜 습관 — 보더로 그룹 구분 */
.good-habit, .bad-habit {
    border: 0.1rem solid #ececf2;
    border-radius: 1.4rem;
    padding: 2.4rem 2.4rem 2rem;
    background: #fff;
    box-shadow: none;
    margin: 1.6rem 0;
}
.good-habit + .bad-habit {
    margin-top: 1.6rem;
}

/* 섹션 제목 — 색상으로만 구분 (좋은=틸 / 나쁜=핑크) — 아코디언 토글 */
.advice .good-habit > h5.ui.header,
.advice .bad-habit > h5.ui.header {
    margin: 0 0 1.4rem !important;
    padding: 0 !important;
    font-size: 2.6rem !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
    line-height: 1.25;
    background: transparent !important;
    cursor: pointer;
    user-select: none;
    display: block !important;
    text-align: center !important;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .2s;
}
.advice .good-habit > h5.ui.header:hover,
.advice .bad-habit > h5.ui.header:hover {
    opacity: .85;
}
/* 클릭/포커스 시 나타나는 브라우저 기본 하늘색 테두리 제거 */
.good-habit,
.bad-habit,
.good-habit:focus,
.bad-habit:focus,
.good-habit:active,
.bad-habit:active,
.good-habit *:focus,
.bad-habit *:focus,
.advice .good-habit > h5.ui.header,
.advice .bad-habit > h5.ui.header,
.advice .good-habit > h5.ui.header:focus,
.advice .bad-habit > h5.ui.header:focus,
.advice .good-habit > h5.ui.header:focus-visible,
.advice .bad-habit > h5.ui.header:focus-visible,
.advice .good-habit > h5.ui.header:active,
.advice .bad-habit > h5.ui.header:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
.advice .good-habit > h5.ui.header { color: #1f7368; }
.advice .bad-habit > h5.ui.header  { color: #b81a6e; }

/* 아코디언 화살표 — 카드(.lf-chev/.adv-chev)와 동일 스타일 */
.acc-chev {
    display: block;
    margin: 0.8rem auto 0;
    text-align: center;
    width: 100%;
    font-size: 2rem !important;
    color: #9ca3af;
    transition: transform .3s cubic-bezier(.22,.8,.34,1), color .2s;
    line-height: 1;
}
.advice .good-habit > h5.ui.header:hover .acc-chev,
.advice .bad-habit > h5.ui.header:hover .acc-chev {
    color: #6b7280;
}
.good-habit.collapsed > h5.ui.header .acc-chev,
.bad-habit.collapsed > h5.ui.header .acc-chev {
    transform: rotate(180deg);
    color: #6b7280;
}

/* 접혔을 때 콘텐츠 숨김 */
.good-habit.collapsed > .plenty-good-food,
.good-habit.collapsed > .Little-good-food,
.bad-habit.collapsed > .plenty-good-food,
.bad-habit.collapsed > .Little-good-food {
    display: none;
}
.good-habit.collapsed > h5.ui.header,
.bad-habit.collapsed > h5.ui.header {
    margin-bottom: 0;
}

/* 카테고리 컨테이너: 4-per-row 그리드 */
.advice .plenty-good-food,
.advice .Little-good-food {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
    align-items: start;
}

/* 카테고리 소제목: A. 충분히 드시면 좋은 음식 / B. 적게 드시면 좋은 음식 */
.advice .plenty-good-food > h6,
.advice .Little-good-food > h6 {
    font-size: 1.7rem; font-weight: 700;
    margin: 1rem 0 0;
    grid-column: 1 / -1;
}
.advice .plenty-good-food > h6 { color: #2a9d8f; }
.advice .Little-good-food > h6 { color: var(--brand, #e81f86); }

/* 개별 음식 아이템 카드 — 4-per-row 그리드 셀 */
.advice .items {
    background: #fff;
    border: 0.1rem solid #e7e9ee;
    border-radius: 1.4rem;
    padding: 1.6rem 1.4rem;
    margin-bottom: 0;
    transition: all .3s cubic-bezier(.22,.8,.34,1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.advice .items.show-detail {
    padding: 1.8rem 1.4rem;
}
.advice .items:hover {
    border-color: #d1d5db;
    transform: translateY(-0.15rem);
    box-shadow: 0 .4rem 1.4rem rgba(0, 0, 0, .05);
}
.advice .items.show-detail {
    transform: translateY(-0.15rem);
    box-shadow: 0 .6rem 1.8rem rgba(0, 0, 0, .07);
}
.advice .plenty-good-food .items.show-detail {
    border-color: #b8e5da;
}
.advice .Little-good-food .items.show-detail {
    border-color: #f9c2d9;
}

/* 음식 이름 헤더 — 항상 세로 정렬 (.lf-group과 동일 크기) */
.advice .items h6[id] {
    cursor: pointer;
    font-size: 2.8rem; font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: #1f2937;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    width: 100%;
}
/* 카테고리별 음식명 색상 — 좋은 음식: 녹색 / 나쁜 음식: 핑크 */
.advice .plenty-good-food .items h6[id] { color: #2a9d8f; }
.advice .Little-good-food .items h6[id] { color: #e81f86; }

/* 카테고리별 카드 — 본체는 흰색 유지, 음식명 색상만 카테고리에 맞게 (위에서 처리됨) */
.advice .plenty-good-food .items.show-detail {
    border-color: rgba(42, 157, 143, .35);
}
.advice .Little-good-food .items.show-detail {
    border-color: rgba(232, 31, 134, .32);
}
.advice .items h6[id]:focus,
.advice .items h6[id]:focus-visible {
    outline: none;
    box-shadow: none;
}

/* 음식 라벨: 아이콘 + 이름 (항상 세로 정렬) */
.advice .items h6[id] .food-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 0 0 auto;
    width: 100%;
}
/* 음식 카드 안 아이콘 — 카테고리별 색상 원형 배경 */
.advice .items h6[id] .food-ico {
    width: 6rem;
    height: 6rem;
    object-fit: contain;
    flex-shrink: 0;
    padding: 0.8rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.advice .plenty-good-food .items h6[id] .food-ico {
    background: rgba(42, 157, 143, .08);
    box-shadow: 0 .3rem 1rem rgba(42, 157, 143, .12);
}
.advice .Little-good-food .items h6[id] .food-ico {
    background: rgba(232, 31, 134, .08);
    box-shadow: 0 .3rem 1rem rgba(232, 31, 134, .12);
}
.advice .items:hover h6[id] .food-ico {
    transform: scale(1.06);
}

/* 기존 h6 안 토글 알약 버튼은 완전 숨김 (하단 .adv-chev로 대체) */
.advice .items h6[id] .toggle-wrap,
.advice .items h6[id] i.icon.angle {
    display: none !important;
}

/* 식습관 카드 하단 화살표 (몸무게 카드와 동일한 패턴) */
.advice .items .adv-chev {
    display: block;
    margin: 0.8rem auto 0;
    text-align: center;
    width: 100%;
    font-size: 2rem !important;
    color: #9ca3af;
    transition: transform .3s cubic-bezier(.22,.8,.34,1), color .2s;
    line-height: 1;
}
.advice .items:hover .adv-chev {
    color: #6b7280;
}
.advice .items.show-detail .adv-chev {
    transform: rotate(180deg);
    color: #6b7280;
}
.advice .items:hover h6[id] .toggle-wrap {
    background: #eceef2;
}
.advice .plenty-good-food .items.show-detail h6[id] .toggle-wrap {
    background: #d7f0e9; color: #2a9d8f;
}
.advice .Little-good-food .items.show-detail h6[id] .toggle-wrap {
    background: #fbdae8; color: var(--brand, #e81f86);
}
.advice .items h6[id] .toggle-label { line-height: 1; }
.advice .items h6[id] .chev {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.6rem; height: 1.6rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(.22,.8,.34,1);
    transform-origin: 50% 50%;
    line-height: 1;
}
.advice .items h6[id] .chev i.icon {
    font-size: 1.3rem;
    margin: 0 !important;
    padding: 0;
    line-height: 1;
    height: 1.3rem;
    width: auto;
    display: flex; align-items: center;
}
.advice .items.show-detail h6[id] .chev {
    transform: rotate(180deg);
}

/* 한 줄 요약 — 기본 표시, 클릭(펼침) 시 숨김 */
.advice .items .line-one {
    display: block;
    margin: 0.6rem 0 0;
    padding-left: 0;
    font-size: 1.7rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.45;
    text-align: center;
    word-break: keep-all;
}

/* 상세 설명 — 카드 폭 내에서 줄바꿈 */
.advice .items .description {
    max-height: 0; opacity: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
    line-height: 1.65;
    color: #374151;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: left;
    width: 100%;
    transition: max-height 0.45s cubic-bezier(.4,0,.2,1), opacity 0.35s ease 0.05s, margin 0.3s ease, padding 0.3s ease;
    position: relative;
}
.advice .items.show-detail .description {
    padding-top: 1.2rem;
    border-top: 0.1rem solid #f0f1f5;
}

/* 토글 열림 상태 */
.advice .items.show-detail .description {
    max-height: 60rem; opacity: 1;
    margin: 1.4rem 0 0.4rem;
}
.advice .items.show-detail .line-one {
    display: none;
}

/* 전체 음식 아이콘 갤러리 */
.food-gallery {
    display: flex; flex-direction: column; gap: 2rem;
    padding: 2.4rem 2.8rem;
    background: #fafbfc;
    border: 0.1rem solid #e2e4e8;
    border-radius: 1.2rem;
    margin-top: 2.4rem;
}
.food-gallery-group .gallery-label {
    font-size: 1.7rem; font-weight: 700;
    margin: 0 0 1.4rem;
}
.food-icons {
    display: flex; flex-wrap: wrap; gap: 1.2rem;
    list-style: none; padding: 0; margin: 0;
}
.food-icons li {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.6rem;
    min-width: 7.2rem;
    padding: 1.2rem 1rem;
    background: #fff;
    border: 0.1rem solid #e2e4e8;
    border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.food-icons li:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 .3rem .8rem rgba(0,0,0,.08);
}
.food-icons .fi {
    width: 4.4rem; height: 4.4rem;
    object-fit: contain;
    filter: drop-shadow(0 .2rem .4rem rgba(0,0,0,.18));
}
.food-icons .fn {
    font-size: 1.3rem;
    color: var(--text, #333);
    font-weight: 500;
}

/* 반응형 (모바일) */
@media (max-width: 768px) {
    .good-habit, .bad-habit { padding: 1.6rem 1.4rem; border-radius: 1rem; }
    .advice .plenty-good-food > h6,
    .advice .Little-good-food > h6 { font-size: 1.5rem; }
    .advice .items { padding: 1.6rem; border-radius: 0.8rem; }
    .advice .items h6[id] { font-size: 2.1rem; }
    .advice .items h6[id] .food-ico { width: 5rem; height: 5rem; padding: 0.5rem; }
    .advice .items .line-one { font-size: 1.5rem; }
    .advice .items .description { font-size: 1.3rem; }
    .food-gallery { padding: 1.6rem; }
    .food-icons li { min-width: 6rem; padding: 0.8rem 0.6rem; }
    .food-icons .fi { width: 3.6rem; height: 3.6rem; }
    .food-icons .fn { font-size: 1.2rem; }
    /* 4-per-row → 모바일 1열 (100% 폭) */
    .advice .plenty-good-food,
    .advice .Little-good-food {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .advice .items h6[id] .food-ico { width: 3.6rem; height: 3.6rem; }
}

/* ============================================================
 * 리포트 메타 정보 (수검자 / 검사일) + 액션 툴바 (인쇄 / PDF)
 * ============================================================ */
.report-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.6rem;
    padding: 1.6rem 2.2rem;
    margin: 1.6rem 0;
    background: #fafbfc;
    border: 0.1rem solid #ececf2;
    border-radius: 1.2rem;
}
.rm-info {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    flex-wrap: wrap;
}
.rm-row {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
}
.rm-label {
    font-weight: 700;
    color: #6b7280;
    letter-spacing: .02em;
}
.rm-label::before {
    content: '';
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #e81f86;
    margin-right: 0.6rem;
    vertical-align: middle;
}
.rm-value {
    font-weight: 700;
    color: #1f2937;
}
.rm-actions {
    display: inline-flex;
    gap: 0.8rem;
}
.rm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.6rem;
    border-radius: 99rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #4b5563;
    background: #fff;
    border: 0.1rem solid #d4d6db;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.rm-btn .material-symbols-outlined { font-size: 1.8rem; }
.rm-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-.1rem);
}
.rm-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #f06aa8, #e81f86);
    border-color: #e81f86;
    box-shadow: 0 .3rem .8rem rgba(232, 31, 134, .25);
}
.rm-btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #e81f86, #c4196f);
    border-color: #c4196f;
}
@media (max-width: 76.8rem) {
    .report-meta {
        padding: 1.2rem 1.4rem;
    }
    .rm-info { gap: 1.4rem; }
    .rm-row { font-size: 1.3rem; }
    .rm-actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
 * 사이드 목차 nav (sticky)
 * ============================================================ */
.report-toc {
    position: fixed;
    top: 14rem;
    right: 1.6rem;
    z-index: 50;
    width: 18rem;
    padding: 1.4rem 1.6rem;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0.1rem solid #ececf2;
    border-radius: 1.2rem;
    box-shadow: 0 .8rem 2.4rem rgba(0, 0, 0, .06);
}
.toc-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #6b7280;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding-bottom: 0.8rem;
    margin-bottom: 0.6rem;
    border-bottom: 0.1rem solid #ececf2;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}
.toc-list li { counter-increment: toc; }
.toc-list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.4rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.6rem;
    transition: color .2s, background .2s, transform .2s;
}
.toc-list a::before {
    content: counter(toc, decimal-leading-zero);
    flex-shrink: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #d4d6db;
    letter-spacing: .04em;
}
.toc-list a:hover {
    color: #1f2937;
    background: #f3f4f6;
}
.toc-list a.active {
    color: #e81f86;
    background: rgba(232, 31, 134, .08);
}
.toc-list a.active::before {
    color: #e81f86;
}
/* 화면 작을 때(태블릿/모바일) 사이드 nav 숨김 */
@media (max-width: 128rem) {
    .report-toc { display: none; }
}
/* sticky 헤더 보정용 anchor */
.toc-anchor {
    display: block;
    position: relative;
    top: -10rem;
    visibility: hidden;
    height: 0;
}

/* ============================================================
 * 면책 고지문
 * ============================================================ */
.report-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.6rem 2rem;
    margin: 2.4rem 0 1.2rem;
    background: #f9fafb;
    border: 0.1rem solid #ececf2;
    border-radius: 1rem;
    font-size: 1.3rem;
    line-height: 1.65;
    color: #6b7280;
    word-break: keep-all;
}
.report-disclaimer .material-symbols-outlined {
    flex-shrink: 0;
    font-size: 1.8rem;
    color: #9ca3af;
    margin-top: 0.1rem;
    font-variation-settings: 'FILL' 1;
}
.report-disclaimer .rd-text strong {
    display: block;
    color: #4b5563;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
@media (max-width: 76.8rem) {
    .report-disclaimer {
        padding: 1.2rem 1.4rem;
        font-size: 1.2rem;
    }
}

/* ============================================================
 * 인쇄 스타일
 * ============================================================ */
@media print {
    header#hd, footer, .mob-nav, .mob-backdrop,
    .no-print, .bntZone {
        display: none !important;
    }
    .report-card {
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    body { background: #fff !important; }
    .report-wrap { padding-top: 1rem !important; }
}

/* ============================================================
 * Top Findings — 한눈 요약 박스
 * ============================================================ */
.top-findings {
    background: linear-gradient(135deg, #fff 0%, #fdf6fa 100%);
    padding: 4rem 4rem 3rem;
}

/* 상단: 타이틀 + 등급별 stat 칩 */
.tf-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}
.tf-title {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
    letter-spacing: -.02em;
    line-height: 1.1;
}
.tf-title .material-symbols-outlined {
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.4rem;
    background: linear-gradient(135deg, #f06aa8, #e81f86);
    color: #fff;
    font-size: 2.8rem !important;
    font-variation-settings: 'FILL' 1;
    box-shadow: 0 .6rem 1.6rem rgba(232, 31, 134, .25);
}
/* 등급별 카운트 — 큰 숫자 + 라벨 */
.tf-stats {
    display: inline-flex;
    align-items: stretch;
    gap: 0.8rem;
}
.tf-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 8rem;
    padding: 1.2rem 1.6rem;
    border-radius: 1.4rem;
    line-height: 1;
    text-align: center;
}
.tf-stat em {
    font-style: normal;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -.02em;
}
.tf-stat span {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.tf-stat-green {
    background: linear-gradient(135deg, rgba(42, 157, 143, .1), rgba(42, 157, 143, .18));
    color: #1f7368;
}
.tf-stat-yellow {
    background: linear-gradient(135deg, rgba(232, 144, 80, .12), rgba(232, 144, 80, .2));
    color: #b86a2e;
}
.tf-stat-red {
    background: linear-gradient(135deg, rgba(232, 31, 134, .1), rgba(232, 31, 134, .2));
    color: #b81a6e;
}
.tf-summary {
    font-size: 2rem;
    line-height: 1.55;
    color: #1f2937;
    word-break: keep-all;
    margin: 0 0 2.4rem;
    padding: 0;
    background: transparent;
    font-weight: 500;
}
.tf-summary strong {
    font-weight: 800;
    color: #e81f86;
}
.tf-summary strong {
    font-weight: 800;
    color: #1f2937;
}

.tf-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.tf-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    padding: 1.6rem 1.8rem;
    background: #fff;
    border: 0.1rem solid #ececf2;
    border-radius: 1.2rem;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    box-shadow: 0 .2rem .6rem rgba(0,0,0,.04);
}
.tf-item:hover {
    transform: translateY(-.3rem);
    box-shadow: 0 .6rem 1.6rem rgba(0,0,0,.08);
}
.tf-item-level {
    align-self: center;
    padding: 0.4rem 1rem;
    border-radius: 99rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
}
.tf-item-cat {
    font-size: 1.4rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1;
}
.tf-item-main {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -.01em;
    word-break: keep-all;
}
/* 시급 항목 카드 — 본체는 흰색 유지, 칩과 결과 라벨만 색상 강조 */
.tf-item.tf-yellow .tf-item-level {
    background: rgba(232, 144, 80, .14);
    color: #b86a2e;
}
.tf-item.tf-yellow .tf-item-main { color: #b86a2e; }
.tf-item.tf-red .tf-item-level {
    background: rgba(232, 31, 134, .12);
    color: #b81a6e;
}
.tf-item.tf-red .tf-item-main { color: #b81a6e; }

@media (max-width: 76.8rem) {
    .top-findings { padding: 2.4rem 1.8rem; }
    .tf-top { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
    .tf-title { font-size: 2.2rem; }
    .tf-title .material-symbols-outlined { width: 4rem; height: 4rem; font-size: 2.2rem !important; }
    .tf-stats { width: 100%; justify-content: space-between; }
    .tf-stat { min-width: 0; flex: 1; padding: 1rem 0.6rem; }
    .tf-stat em { font-size: 2.4rem; }
    .tf-stat span { font-size: 1.1rem; }
    .tf-summary { font-size: 1.6rem; }
    .tf-list { grid-template-columns: 1fr; }
    .tf-item-main { font-size: 1.7rem; }
}

/* ============================================================
 * 생활습관 권장사항 — 4 카테고리 카드 (비만/음주/흡연/운동)
 * 기본: 4열 그리드, 아이콘+텍스트만 표시
 * 클릭: 카드가 전체 폭으로 확장되며 상세 설명 펼침
 * 호버: 풍선 툴팁으로 미리 보여줌
 * ============================================================ */
.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    margin-top: 2rem;
    align-items: start;
}
.lf-card {
    border: 0.1rem solid #e7e9ee;
    border-radius: 1.4rem;
    padding: 2rem 1.6rem;
    background: #fff;
    cursor: pointer;
    position: relative;
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s;
    -webkit-tap-highlight-color: transparent;
}
.lf-card:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 .6rem 1.8rem rgba(0,0,0,.07);
}
/* 기본 헤드: 세로 정렬 (라벨 중앙) — flex:1로 카드 높이 균등화 */
.lf-head {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
}
/* 펼친 상태: 그리드 폭은 유지(1열), 카드 안에 상세 설명만 펼침 */
.lf-card.show-detail {
    padding: 2rem 1.6rem;
    cursor: default;
}
.lf-card.show-detail .lf-head {
    padding-bottom: 1.2rem;
    border-bottom: 0.1rem solid #f0f1f5;
    margin-bottom: 1.2rem;
}
.lf-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .08);
    margin: 0 auto 1rem;
}
.lf-icon .material-symbols-outlined {
    font-size: 2.6rem;
    color: #fff;
    font-variation-settings: 'FILL' 1;
}
.lf-meta {
    min-width: 0;
    width: 100%;
    text-align: center;
}
.lf-cat {
    font-size: 1.8rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: .02em;
    margin-bottom: 0.8rem;
}
.lf-group {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.lf-sub {
    font-size: 1.4rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 0.5rem;
    word-break: keep-all;
}
.lf-sub:empty { display: none; }

/* 등급 안내 범례 (lifestyle 섹션 상단) — 단정한 인라인 라인 디자인 */
.lf-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    padding: 1.2rem 1.8rem;
    margin: 1.2rem 0 1.8rem;
    background: linear-gradient(180deg, #fafbfc 0%, #f4f5f7 100%);
    border: 0.1rem solid #ececf2;
    border-radius: 99rem;
    font-size: 1.35rem;
}
.lf-legend-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: -.01em;
    padding-right: 1rem;
    border-right: 0.1rem solid #d4d6db;
}
.lf-legend-title .material-symbols-outlined {
    font-size: 1.7rem;
    color: #9ca3af;
    font-variation-settings: 'FILL' 1;
}
.lf-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}
.lf-legend-item .lf-legend-dot {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.lf-legend-item em {
    font-style: normal;
    font-weight: 500;
    color: #6b7280;
    margin-left: 0.2rem;
}
.lf-legend-sep {
    width: 0.1rem;
    height: 1.2rem;
    background: #d4d6db;
}
.lf-legend-green .lf-legend-dot { background: linear-gradient(135deg, #5fb8a8, #2a9d8f); }
.lf-legend-yellow .lf-legend-dot { background: linear-gradient(135deg, #f4b78a, #e89050); }
.lf-legend-red .lf-legend-dot { background: linear-gradient(135deg, #f06aa8, #e81f86); }
.lf-legend-green { color: #1f7368; }
.lf-legend-yellow { color: #b86a2e; }
.lf-legend-red { color: #b81a6e; }

@media (max-width: 76.8rem) {
    .lf-legend {
        gap: 0.6rem 1rem;
        padding: 1rem 1.2rem;
        border-radius: 1.4rem;
        font-size: 1.2rem;
    }
    .lf-legend-title {
        flex-basis: 100%;
        padding-right: 0;
        border-right: none;
        padding-bottom: 0.4rem;
        border-bottom: 0.1rem solid #d4d6db;
    }
    .lf-legend-sep { display: none; }
}

/* 등급 칩 (Level 1/2/3) — 카드 상단 작은 라벨 */
.lf-level {
    display: inline-block;
    margin: 0 auto 0.6rem;
    padding: 0.3rem 0.9rem;
    border-radius: 99rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #f3f4f6;
    color: #6b7280;
    line-height: 1;
}
.lf-level:empty { display: none; }
.lf-card.lf-green .lf-level {
    background: rgba(42, 157, 143, .14);
    color: #1f7368;
}
.lf-card.lf-yellow .lf-level {
    background: rgba(232, 144, 80, .16);
    color: #b86a2e;
}
.lf-card.lf-red .lf-level {
    background: rgba(232, 31, 134, .14);
    color: #b81a6e;
}

/* 상태 칩 (행동 지향 문구 + 아이콘) */
.lf-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 1rem auto 0;
    padding: 0.5rem 1.1rem;
    border-radius: 99rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    background: #f3f4f6;
    color: #4b5563;
    word-break: keep-all;
}
.lf-status:empty { display: none; }
.lf-status .material-symbols-outlined {
    font-size: 1.6rem;
    font-variation-settings: 'FILL' 1;
    line-height: 1;
}
.lf-card.lf-green .lf-status {
    display: none;
}
.lf-card.lf-yellow .lf-status {
    background: rgba(232, 144, 80, .14);
    color: #b86a2e;
}
.lf-card.lf-red .lf-status {
    background: rgba(232, 31, 134, .12);
    color: #b81a6e;
}
.lf-text {
    display: none;
    font-size: 1.45rem;
    line-height: 1.75;
    color: #374151;
    word-break: keep-all;
}
.lf-card.show-detail .lf-text {
    display: block;
}

/* 펼침 표시용 아래 화살표 — 항상 가로 가운데 정렬 */
.lf-chev {
    display: block;
    margin: 0.8rem auto 0;
    text-align: center;
    width: 100%;
    font-size: 2rem !important;
    color: #9ca3af;
    transition: transform .3s cubic-bezier(.22,.8,.34,1), color .2s;
    line-height: 1;
}
.lf-card:hover .lf-chev {
    color: #6b7280;
}
.lf-card.show-detail .lf-chev {
    transform: rotate(180deg);
    color: #6b7280;
}


/* 색상별 변형 — 카드 본체는 흰색 유지, 결과 라벨(.lf-group) 색상만 변경 */
.lf-card.lf-green .lf-group  { color: #1f7368; }
.lf-card.lf-yellow .lf-group { color: #b86a2e; }
.lf-card.lf-red .lf-group    { color: #b81a6e; }

/* ============================================================
 * 식이 종합결과 카드
 * ============================================================ */
.diet-summary {
    border: 0;
    border-radius: 0;
    padding: 0.8rem 0 0;
    background: transparent;
    margin-top: 1.2rem;
}
.ds-head {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding-bottom: 1.2rem;
    border-bottom: 0;
    margin-bottom: 1rem;
}
.ds-icon { display: none; }
.ds-meta {
    flex: 1;
    min-width: 0;
    text-align: center;
    width: 100%;
}
.ds-counts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.6rem;
    margin: 0 auto 1.6rem;
}
.ds-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 22rem;
    width: 22rem;
    height: 22rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    text-align: center;
    color: #fff;
    line-height: 1.2;
    box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .14);
    padding: 0;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}
.ds-count,
.ds-count:link,
.ds-count:visited,
.ds-count:hover,
.ds-count:active,
.ds-count:focus,
.ds-count * {
    color: #fff !important;
}
.ds-count:hover {
    transform: translateY(-0.3rem) scale(1.02);
    box-shadow: 0 1.2rem 2.6rem rgba(0, 0, 0, .18);
}
.ds-count:focus { outline: none; }
.ds-count:focus-visible {
    outline: 0.3rem solid rgba(0, 0, 0, .12);
    outline-offset: 0.4rem;
}

/* 클릭 후 타겟 섹션 강조 효과 */
.flash-highlight {
    animation: flashHighlight 1.2s ease;
}
@keyframes flashHighlight {
    0%   { box-shadow: 0 0 0 0 rgba(232, 31, 134, .35); }
    30%  { box-shadow: 0 0 0 1.2rem rgba(232, 31, 134, .15); }
    100% { box-shadow: 0 0 0 0 rgba(232, 31, 134, 0); }
}
.ds-count .dsc-lbl {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    white-space: nowrap;
}
.ds-count .dsc-val {
    font-size: 5.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}
.ds-count .dsc-val em { font-size: 1em; }
.ds-count em {
    font-style: normal;
    font-weight: 800;
    color: #fff;
    font-size: 1em;
}
/* 레벨별 두 원 농도 차이 — 좋은=연하게, 나쁜=진하게 (같은 색 계열) */

/* Level 1 (녹색/양호) */
.diet-summary.ds-green .ds-good,
.ds-good {
    background: linear-gradient(135deg, #8fd0c2, #5fb8a8);
}
.diet-summary.ds-green .ds-bad,
.ds-bad {
    background: linear-gradient(135deg, #5fb8a8, #2a9d8f);
}

/* Level 2 (황색/주의) */
.diet-summary.ds-yellow .ds-good {
    background: linear-gradient(135deg, #f4b78a, #e89050);
}
.diet-summary.ds-yellow .ds-bad {
    background: linear-gradient(135deg, #e89050, #c25b1e);
}

/* Level 3 (적색/관리 필요) */
.diet-summary.ds-red .ds-good {
    background: linear-gradient(135deg, #f9a4cb, #e87ab3);
}
.diet-summary.ds-red .ds-bad {
    background: linear-gradient(135deg, #f06aa8, #e81f86);
}
.ds-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.3;
    letter-spacing: -.01em;
}
/* 식이 종합결과 제목 — 위험도 레벨에 따른 색상 */
.diet-summary.ds-green  .ds-title { color: #1f7368; }
.diet-summary.ds-yellow .ds-title { color: #b86a2e; }
.diet-summary.ds-red    .ds-title { color: #b81a6e; }

/* 식이 Level 칩 (Level 1/2/3) — 식이 종합결과 상단 */
.ds-level {
    display: inline-block;
    margin: 0 auto 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 99rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #f3f4f6;
    color: #6b7280;
    line-height: 1;
}
.ds-level:empty { display: none; }
.diet-summary.ds-green  .ds-level {
    background: rgba(42, 157, 143, .14);
    color: #1f7368;
}
.diet-summary.ds-yellow .ds-level {
    background: rgba(232, 144, 80, .16);
    color: #b86a2e;
}
.diet-summary.ds-red    .ds-level {
    background: rgba(232, 31, 134, .14);
    color: #b81a6e;
}
.ds-text {
    font-size: 1.65rem;
    line-height: 1.85;
    color: #374151;
    word-break: keep-all;
    text-align: center;
}


@media (max-width: 102.4rem) {
    .lifestyle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 76.8rem) {
    .lifestyle-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .lf-card { padding: 1.4rem 1rem; }
    .lf-cat { font-size: 1.5rem; }
    .lf-group { font-size: 2.1rem; }
    .lf-sub { font-size: 1.3rem; }
    .diet-summary { padding: 1.8rem 1.8rem; }
    .ds-count { flex-basis: 16rem; width: 16rem; height: 16rem; }
    .ds-count .dsc-lbl { font-size: 1.4rem; }
    .ds-count .dsc-val { font-size: 3.6rem; }
    .ds-title { font-size: 2rem; }
    .ds-text { font-size: 1.45rem; }
}

