@charset "utf-8";

/* ============================================================================
   실비체크 랜딩 — Tier 2 : 레이아웃 & 컴포넌트

   색/크기/간격/시간 값은 여기서 직접 쓰지 않고 tokens.css 의 변수만 참조한다.
   피그마 시안의 좌표(top/left)·고정 width/height 는 그대로 옮기지 않고
   flex / grid / gap 으로 다시 세웠다. (주의사항 1~3, 11항)
   ========================================================================= */

/* ---- common/ 모듈 호환 ------------------------------------------------
   privacy_modal / insu_cost_popup / alert_modal 은 굿리치 랜딩에서 그대로
   가져온 파일이라 그쪽 변수명을 쓴다. 값은 이 프로젝트 토큰으로 연결한다.
   (해당 파일들을 수정하지 않기 위한 다리일 뿐, 새 코드에서는 쓰지 않는다) */
:root {
    --fs-13: 1.3rem;
    --fs-14: 1.4rem;
    --fs-15: 1.5rem;
    --fs-16: 1.6rem;
    --fs-17: 1.7rem;
    --fs-18: 1.8rem;
    --fs-20: 2rem;
    --color-white: #ffffff;
    --color-border: var(--color-line);
    --mo-gutter: 2rem;
}

/* ---- base ------------------------------------------------------------- */
body {
    font-family: var(--font-base);
    font-size: var(--fs-body);
    line-height: var(--lh-base);
    letter-spacing: var(--ls-soft);
    color: var(--color-text);
    background: var(--color-bg);
    word-break: keep-all;
}
body.notScroll { overflow: hidden; }

/* 페이지는 1440 폭 안에서만 그려진다. 회색 바탕도 히어로 배경도 이 안에 갇힌다.
   (피그마의 page > wrap 구조. 1440보다 넓은 화면은 양옆이 흰 여백으로 남는다) */
#wrap {
    width: 100%;
    max-width: var(--page-max);
    margin-inline: auto;
    background: var(--color-bg-page);
    overflow: hidden;
}

:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: calc(var(--container-max) + var(--container-pad-x) * 2);
    margin: 0 auto;
    padding-inline: var(--container-pad-x);
}
.container--wide { max-width: calc(var(--container-wide) + var(--container-pad-x) * 2); }

.section { padding-block: var(--section-py); }

.section-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;                 /* 시안 10px */
    text-align: center;
    align-items: center;
}
.section-head__title {
    font-size: var(--fs-display);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
}
.section-head__desc {
    font-size: var(--fs-lead);
    font-weight: var(--fw-regular);
    line-height: var(--lh-base);
    color: var(--color-text-sub);
}

.pc { display: block; }
.mob { display: none; }

/* 화면에서만 숨기고 스크린리더·키보드에는 남기는 입력 (세그먼트 버튼용) */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---- 공통 : 태그 ------------------------------------------------------- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    border-radius: var(--radius-xs);
    font-weight: var(--fw-semibold);
}
.tag--lg {
    padding: 6px var(--space-sm);
    font-size: var(--fs-title);
    background: var(--color-bg-card);
    color: var(--color-primary);
}
.tag--sm {
    padding: var(--space-4) var(--space-xs);
    font-size: var(--fs-micro);
    line-height: var(--lh-relaxed);
    background: var(--color-bg-page);
    color: var(--color-text);
}
.tag--soft {
    padding: var(--space-4) var(--space-sm);
    font-size: var(--fs-caption);
    background: var(--color-primary-soft);
    color: var(--color-primary);
}
.tag__icon { flex-shrink: 0; width: 2.4rem; height: 2.4rem; }

/* ---- 공통 : 버튼 ------------------------------------------------------- */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    min-height: 4.9rem;
    padding: var(--space-sm) var(--space-lg);
    border: 0;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
    cursor: pointer;
    transition: background-color var(--duration-base) var(--easing-standard),
                opacity var(--duration-base) var(--easing-standard);
}
.btn--accent { background: var(--color-accent); color: var(--color-text-invert); }
.btn--primary { background: var(--color-primary); color: var(--color-text-invert); }
.btn--mute { background: var(--color-bg-mute); color: var(--color-text); }
.btn--white { background: var(--color-bg-card); color: var(--color-primary); }
.btn--block { width: 100%; }
.btn__chevron { flex-shrink: 0; width: 2.8rem; height: 2.8rem; }

/* ---- 공통 : 패널 ------------------------------------------------------- */
.panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-md) var(--space-xl);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
}
.panel__title {
    padding: var(--space-md) var(--space-md) var(--space-xs);
    font-size: var(--fs-title);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
}

/* 아이콘 자리. 파일 연결은 아래 .ico--* 한 곳에서만 한다. */
.icon-slot {
    flex-shrink: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* 배경(파스텔 사각)까지 들어있는 아이콘 — 실비 체크포인트 / 포인트 카드 */
.ico--period { background-image: url(../Img/icon_period.png); }
.ico--fee { background-image: url(../Img/icon_fee.png); }
.ico--coverage { background-image: url(../Img/icon_coverage.png); }

/* 배경 없는 글리프 — 포인트 카드의 원 안에 들어간다 */
.ico--calendar { background-image: url(../Img/icon_calendar.png); }
.ico--shield-plain { background-image: url(../Img/icon_shield_plain.svg); }

/* 배경이 흰색(또는 없는) 아이콘 — 세대별 차이 칩, 포인트 카드 */
.ico--person { background-image: url(../Img/icon_person.svg); }
.ico--shield { background-image: url(../Img/icon_shield_green.svg); }
/* 동전만 배경이 없는 파일이라 크기를 맞춰 준다 */
.ico--coin { background-image: url(../Img/icon_coin.png); background-size: 58%; }

/* =========================================================================
   1. 히어로 (GNB + 카피 + DB 입력폼)
   ====================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    /* 배경이미지에서 뽑은 바탕색. 이미지가 뜨기 전에도 색이 튀지 않는다. */
    background: var(--color-hero-bg);
}
/* 장식용 배경. 이미지가 못 뜨면 아래 그라데이션만 보이고 레이아웃은 그대로다.
   PC 는 정사각(1447), 모바일은 세로형(393x1022) 파일을 쓴다. */
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url(../Img/hero_bg_pc.webp);
    background-position: center;
    background-size: cover;
    pointer-events: none;
}
.hero > .container,
.hero > .gnb { position: relative; }

.gnb { padding-block: var(--space-md); }
.gnb__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    min-height: var(--header-height);
}
.gnb__logo {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--color-text-invert);
}
.gnb__logo-mark { width: 4.6rem; height: auto; }
.gnb__logo-text { width: auto; height: 3rem; }
.gnb__menu { display: flex; align-items: center; gap: var(--space-3xl); }
.gnb__menu a {
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    color: var(--color-text-invert);
    white-space: nowrap;
}

.hero__body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-2xl);
    padding-block: var(--space-2xl) var(--space-3xl);
}

.hero__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xl);
    padding-top: var(--space-2xl);
    /* 시안의 Frame 5 발광. 글자·태그·퀵 카드가 모두 이 그림자를 받는다 */
    filter: drop-shadow(var(--shadow-glow));
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xl); }
.hero__title {
    font-size: var(--fs-hero);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    color: var(--color-text-invert);
}
.hero__desc {
    margin-top: var(--space-xs);
    font-size: var(--fs-hero-desc);
    font-weight: var(--fw-medium);
    line-height: var(--lh-base);
    color: var(--color-text-invert);
}

/* 실비 체크포인트 3종 */
.quick { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); width: 100%; }
.quick__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    width: 100%;
    max-width: 61.8rem;
}
.quick__item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    min-height: 6.4rem;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-xs);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
}
.quick__thumb { width: 4rem; height: 4rem; border-radius: var(--radius-sm); }  /* 타일 이미지가 사각이라 여기서 둥글린다 */

/* ---- DB 입력폼 --------------------------------------------------------- */
.db-form {
    flex: 0 0 47.7rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding: var(--space-md) var(--space-md) var(--space-xl);
    background: var(--color-bg-card);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-form);
}
.db-form__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-md) var(--space-md) var(--space-xs);
}
.db-form__title {
    font-size: var(--fs-hero-desc);   /* 28px — 시안보다 한 단계 크게 */
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
}
.db-form__desc { font-size: var(--fs-body); color: var(--color-text-sub); }
.db-form__submit { padding: var(--space-xs) var(--space-md) 0; }

.field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
}
.field__label {
    font-size: var(--fs-caption);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}
.input {
    width: 100%;
    min-height: 4.2rem;
    padding: var(--space-xs) var(--space-md);
    border: var(--size-hairline) solid transparent;
    border-radius: var(--radius-md);
    background: var(--color-bg-input);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}
/* 입력한 글자와 구분되도록 플레이스홀더만 한 단계 연하게 (기존보다는 진하다) */
.input::placeholder { color: var(--figma-ink-a60); font-weight: var(--fw-medium); }
.input:focus { outline: 0; border-color: var(--color-accent); background: var(--color-bg-selected); }


/* 성별 세그먼트 */
.seg { display: flex; gap: var(--space-xs); }
.seg__btn {
    flex: 1;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 4.9rem;                 /* 시안 49px — 글자 크기에 밀려 높아지지 않게 못박는다 */
    padding: 0 var(--space-lg);
    border: var(--size-hairline) solid transparent;
    border-radius: var(--radius-md);
    background: var(--color-bg-input);
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--easing-standard),
                border-color var(--duration-fast) var(--easing-standard),
                color var(--duration-fast) var(--easing-standard);
}
.seg__input:checked + .seg__btn {
    background: var(--color-bg-selected);
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.seg__input:focus-visible + .seg__btn { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* 개인정보 동의 */
.agree {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    /* 체크하려고 누를 때 글자가 선택되지 않도록 */
    -webkit-user-select: none;
    user-select: none;
}
.agree__check {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    margin: 0;
    appearance: none;
    border: 0;
    /* 아이콘 자체가 원이라 여기서 border-radius 로 또 자르면 가장자리가 거칠어진다 */
    border-radius: 0;
    /* 미체크도 같은 모양의 회색 아이콘을 쓴다 */
    background: url(../Img/agree_check_off.svg) center / 100% no-repeat;
    cursor: pointer;
}
.agree__check:checked {
    background-image: url(../Img/agree_check.svg);
}
.agree__label {
    flex: 1;
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    cursor: pointer;
}
.agree__view {
    flex-shrink: 0;
    padding: var(--space-4) 0 var(--space-4) var(--space-4);
    font-size: var(--fs-caption);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
}

/* =========================================================================
   2. 세대 확인
   ====================================================================== */
.gen__inner { display: flex; align-items: center; gap: var(--space-xl); }
.gen__intro {
    /* 제목 줄바꿈("내 실비, 몇세대인지 / 알고 있나요?")이 유지되도록 내용 폭을 그대로 쓴다 */
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xl);
}
.gen__title {
    font-size: var(--fs-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
}
.gen__desc { margin-top: var(--space-xs); font-size: var(--fs-lead); color: var(--color-text-sub); }
.gen__panel { flex: 1 1 auto; min-width: 0; }
.gen__sub {
    padding-inline: var(--space-md);
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-semibold);
}

/* 세대 타임라인 */
.timeline-box {
    padding: var(--space-lg) 4rem;      /* 시안 24px 40px */
    background: var(--color-bg-soft);
    border-radius: var(--radius-lg);
}
/* 단계는 글자 폭만 차지하고, 사이의 선이 남는 공간을 모두 가져간다.
   그래서 첫 점과 끝 점이 박스 양끝에 붙는다. */
.timeline {
    display: flex;
    align-items: flex-start;
    padding-inline: var(--space-md);
}
.timeline__line {
    flex: 1;
    min-width: var(--space-md);
    padding-top: 1.4rem;            /* 점 가운데(15px)에서 선 두께 절반만큼 올린 값 */
}
.timeline__line::before {
    content: '';
    display: block;
    height: 1px;
    border-radius: var(--radius-pill);
    background: var(--color-line-strong);
}
/* li 가 step/line 번갈아 들어 있어 :last-of-type 은 마지막 '단계'를 잡는다.
   끝에서 두 번째 li 가 마지막 선이다. */
.timeline__line:nth-last-of-type(2)::before {
    background: linear-gradient(90deg, var(--color-line-strong), var(--color-primary));
}
.timeline__step {
    display: flex;
    white-space: nowrap;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}
.timeline__dot-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-circle);
}
.timeline__dot {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: var(--radius-circle);
    background: var(--color-line-strong);
}
.timeline__step.is-current .timeline__dot-wrap { background: var(--color-primary-soft); }
.timeline__step.is-current .timeline__dot {
    background: var(--color-primary);
    border: 2px solid var(--color-bg-card);
}
.timeline__period { font-size: var(--fs-caption); font-weight: var(--fw-semibold); }
.timeline__gen { font-size: var(--fs-13); color: var(--color-text-sub); }
.timeline__step.is-current .timeline__period { color: var(--color-primary); }

/* 세대별 차이 칩 */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.chip {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-sm);
    background: var(--color-bg-page);
    border-radius: var(--radius-lg);
}
.chip__icon {
    width: 5.6rem;
    height: 5.6rem;
    background-size: 100%;
}
/* 동전 아이콘만 배경이 없는 파일이라 흰 박스를 CSS 로 깐다 */
.chip__icon.ico--coin {
    background-color: var(--color-bg-card);
    background-size: 100%;
    border-radius: 1.12rem;
}
.chip__text { display: flex; flex-direction: column; gap: var(--space-2); }
.chip__title { font-size: var(--fs-body); font-weight: var(--fw-bold); }
.chip__desc { font-size: var(--fs-caption); color: var(--color-text-sub); }

/* =========================================================================
   3. 확인 포인트 카드
   ====================================================================== */
.points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;                  /* 시안 30px */
    margin-top: var(--space-2xl);
}
.point-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;                  /* 시안 20px */
    min-height: 24rem;          /* 시안 240px */
    padding: var(--space-xl) 2.8rem;   /* 시안 0 28px — 모바일에서 글이 붙지 않게 위아래도 준다 */
    background: var(--color-bg-card);
    border-radius: var(--radius-2xl);
}
.point-card__icon {
    width: 5.6rem;
    height: 5.6rem;
    background-size: 88%;
    border-radius: var(--radius-circle);
}
.point-card__icon--blue { background-color: var(--color-icon-bg-blue); }
.point-card__icon--yellow { background-color: var(--color-icon-bg-yellow); }
.point-card__icon--green { background-color: var(--color-icon-bg-green); }   /* #56DE9833 */
.point-card__icon.ico--coin { background-size: 100%; }   /* 파일에 투명 여백이 있어 조금 키운다 */
/* 방패는 세로로 긴 도형이라 같은 비율이면 혼자 커 보인다 */
.point-card__icon.ico--shield-plain { background-size: 44%; }
.point-card__title { font-size: var(--fs-subtitle); font-weight: var(--fw-bold); }
.point-card__desc { margin-top: var(--space-xs); font-size: var(--fs-body-lg); color: var(--color-text-sub); }

/* =========================================================================
   4. 보험사 비교
   ====================================================================== */
.compare__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-lg); }
.compare__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    width: 100%;
}
.ins-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-md) var(--space-xs);
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
}
.ins-card__head {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-md) var(--space-xs);
}
.ins-card__dot { width: 1.6rem; height: 1.6rem; border-radius: var(--radius-circle); }
.ins-card__dot--blue { background: var(--color-primary); }
.ins-card__dot--green { background: var(--color-success); }
.ins-card__dot--coral { background: var(--color-coral); }
.ins-card__name { font-size: var(--fs-body-lg); font-weight: var(--fw-semibold); }
.ins-card__price { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-xs) var(--space-md); }
.ins-card__price-label { font-size: var(--fs-caption); color: var(--color-text-sub); }
.ins-card__price-value {
    font-size: var(--fs-heading);
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-tight);
}
.ins-card__price-value--blue { color: var(--color-primary); }
.ins-card__price-value--green { color: var(--color-success-text); }
.ins-card__price-value--coral { color: var(--color-coral); }

.ins-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-xs) var(--space-md);
}
/* 시안 : 항목 묶음마다 연한 구분선. 좌우 패딩 안쪽으로만 긋는다 */
.ins-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-md);
    right: var(--space-md);
    height: var(--size-hairline);
    background: var(--color-bg-page);
}
.ins-row__label { font-size: var(--fs-caption); color: var(--color-text-sub); }
.ins-row__list { display: flex; flex-direction: column; gap: var(--space-2); }
.ins-row__list li {
    position: relative;
    padding-left: var(--space-xs);
    font-size: var(--fs-18);
    line-height: var(--lh-relaxed);
}
.ins-row__list li::before { content: '·'; position: absolute; left: 0; }

.notice-box {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-lg) 2.8rem;    /* 시안 24px 28px */
    background: var(--color-bg-subtle);
    border-radius: var(--radius-2xl);
}
.notice-box__head { display: flex; align-items: center; gap: var(--space-xs); }
.notice-box__title { font-size: var(--fs-20); font-weight: var(--fw-bold); }
.notice-box__icon { flex-shrink: 0; width: 2.4rem; height: 2.4rem; color: var(--color-primary); }
.notice-box li { font-size: var(--fs-body); line-height: var(--lh-loose); color: var(--color-text-sub); }

/* =========================================================================
   5. 하단 CTA
   ====================================================================== */
.cta-wrap { padding: 4rem; }        /* 시안 40px — 배너는 콘텐츠보다 넓다 */
.cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    padding: 4rem var(--space-4xl);     /* 시안 40px 120px */
    background: var(--color-primary);
    border-radius: var(--radius-4xl);
    text-align: center;
}
.cta__bg {
    position: absolute;
    inset: 0;
    /* 전용 파일이 오기 전까지는 히어로와 같은 배경을 쓴다 */
    background-image: url(../Img/hero_bg_pc.webp);
    background-position: center;
    background-size: cover;
    transform: scaleX(-1);
    pointer-events: none;
}
.cta__text { position: relative; display: flex; flex-direction: column; gap: var(--space-xs); }
.cta__title {
    font-size: var(--fs-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    color: var(--color-text-invert);
}
.cta__desc { font-size: var(--fs-20); color: var(--color-text-invert); opacity: 0.9; }
.cta__btn {
    position: relative;
    width: 100%;
    max-width: 49.8rem;
    min-height: 5.8rem;
    font-size: var(--fs-subtitle);
}
.cta__btn .btn__chevron { width: 3.2rem; height: 3.2rem; }

/* =========================================================================
   6. 푸터 안내문
   ====================================================================== */
/* 하단 고정 입력바/플로팅 버튼이 안내문 마지막 줄을 가리지 않도록 아래를 비워둔다. */
.footer-note { padding-block: var(--space-xl) calc(var(--space-3xl) + 11rem); }
.footer-note li {
    font-size: var(--fs-caption);
    line-height: var(--lh-loose);
    color: var(--color-text-sub);
}

/* =========================================================================
   7. 스크롤 상태 : 하단 고정 입력바(PC) / 플로팅 버튼(모바일)
   ====================================================================== */
.sticky-form,
.float-btn {
    position: fixed;
    left: 50%;
    bottom: calc(var(--space-md) + var(--safe-bottom));
    transform: translateX(-50%) translateY(1.6rem);
    z-index: var(--z-floating);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--easing-standard),
                transform var(--duration-base) var(--easing-standard);
}
.sticky-form.is-visible,
.float-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* 시안: 페이지 폭(1440)에 padding 16 16 0, 다섯 칸이 같은 비율로 나뉘고
   각 칸이 자기 패딩 16 을 갖는다. 칸 사이 gap 은 없다. */
.sticky-form {
    display: flex;
    align-items: stretch;
    /* 100vw 는 zoom 의 영향을 받지 않아 본문과 폭이 어긋난다. % 로 잡는다 */
    width: min(var(--page-max), calc(100% - var(--space-md) * 2));
    padding: var(--space-md) var(--space-md) 0;
    background: var(--color-bg-card);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-sticky);
}
.sticky-form .field,
.sticky-form__submit {
    flex: 1 1 0;
    min-width: 0;
    padding: var(--space-md);
    display: flex;
    align-items: center;
}
.sticky-form .field {
    justify-content: center;
    gap: var(--space-xs);
}
.sticky-form .seg { gap: var(--space-xs); }
.sticky-form .seg__btn {
    height: 4.2rem;                 /* 하단바는 입력창과 같은 42px */
    font-size: var(--fs-body-lg);
}

.float-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    background: var(--color-text);
    color: var(--color-text-invert);
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-semibold);
    backdrop-filter: blur(5px);
}
.float-btn__icon { width: 2.4rem; height: 2.4rem; }

/* PC 에서는 하단 고정 입력바가 그 역할을 하므로 플로팅 버튼은 쓰지 않는다. */
@media (min-width: 1025px) {
    .float-btn { display: none; }
}

/* =========================================================================
   8. 모션
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
    :root { --duration-fast: 0s; --duration-base: 0s; --duration-slow: 0s; }
}

/* =========================================================================
   9. 반응형
   ====================================================================== */
@media (max-width: 1024px) {
    .hero__body { flex-direction: column; align-items: stretch; }
    .hero__text { padding-top: 0; }
    .db-form { flex-basis: auto; width: 100%; }
    .quick__list { max-width: none; }

    /* 시안(모바일) 순서 : 제목·설명 → 패널 → 버튼
       .gen__intro 를 display:contents 로 풀어 자식들이 바로 세로 열에 들어가게 한다 */
    .gen__inner { flex-direction: column; align-items: stretch; }
    .gen__intro { display: contents; }
    .gen__intro > div { order: 1; }
    .gen__panel { order: 2; }
    .gen__intro > .btn { order: 3; width: 100%; }

    .points { gap: var(--space-lg); }
    .point-card { min-height: 0; }

    /* 좁은 화면에서 한 줄 입력바는 칸이 너무 좁아진다 → 플로팅 버튼만 노출 */
    .sticky-form { display: none; }
}

@media (max-width: 768px) {
    .pc { display: none; }
    .mob { display: block; }
    br.mob { display: inline; }

    /* ---- 헤더 : 로고 줄 아래에 메뉴 줄 (메뉴는 양끝 정렬) ---- */
    .gnb { padding-block: 18px 20px; }
    .gnb__inner {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
        min-height: 0;
    }
    .gnb__logo-mark { width: 3.2rem; }
    .gnb__logo-text { height: 1.6rem; }
    .gnb__menu { justify-content: space-between; gap: var(--space-xs); }
    .gnb__menu a { font-size: 1.4rem; font-weight: var(--fw-bold); }

    /* ---- 히어로 카피 ---- */
    .hero__body { padding-block: 14px 32px; gap: var(--space-xl); }
    .hero__text { gap: var(--space-md); }
    .hero__copy { gap: var(--space-md); }
    .tag--lg { padding: 5px 10px; gap: 5px; font-size: 1.4rem; font-weight: var(--fw-bold); }
    .tag--lg .tag__icon { width: 1.6rem; height: 1.6rem; }
    .hero__title { font-size: 3.2rem; }
    .hero__desc { margin-top: var(--space-4); font-size: 1.6rem; line-height: var(--lh-loose); }

    /* ---- 실비 체크포인트 : 가로 3칸 ---- */
    .quick { gap: var(--space-xs); }
    .quick__list { gap: 6px; }
    .quick__item {
        gap: 5px;
        min-height: 4.4rem;
        padding: 10px 7px;
        border-radius: 1rem;
        font-size: 1.2rem;
        font-weight: var(--fw-bold);
        white-space: nowrap;
    }
    .quick__thumb { width: 2.4rem; height: 2.4rem; border-radius: var(--radius-xs); }

    /* ---- DB 입력폼 ---- */
    .db-form { padding: 0 2rem var(--space-md); border-radius: var(--radius-xl); }
    .db-form__head { padding: var(--space-md) 0 var(--space-xs); }
    .db-form__title { font-size: 2.4rem; }
    .db-form__desc { font-size: 1.4rem; }
    .field__label { font-size: 1.4rem; }
    .field { padding: var(--space-xs) 0; }
    .input { min-height: 4.5rem; padding: 12px 14px; font-size: 1.6rem; font-weight: var(--fw-semibold); }
    .input::placeholder { font-size: 1.6rem; font-weight: var(--fw-medium); }
    .seg__btn { height: 4.4rem; padding: 10px; font-size: 1.4rem; }
    .seg__input:checked + .seg__btn { color: var(--color-primary); font-weight: var(--fw-bold); }
    .agree { padding: var(--space-xs) 0; }
    .agree__label { font-size: 1.4rem; }
    .agree__view { font-size: 1.4rem; }
    .db-form__submit { padding: var(--space-xs) 0 0; }
    .db-form__submit .btn { min-height: 5.2rem; font-size: 1.6rem; }

    /* ---- 섹션 공통 ---- */
    .section { padding-block: 40px; }
    .gen.section { padding-block: 80px 40px; }
    .section-head { align-items: flex-start; text-align: left; gap: var(--space-sm); }
    .section-head__title { font-size: 2.8rem; }
    .section-head__desc { font-size: 1.6rem; line-height: var(--lh-loose); }

    /* ---- 세대 확인 ---- */
    .gen__inner { gap: var(--space-lg); }
    .gen__title { font-size: 2.8rem; }
    .gen__desc { margin-top: var(--space-sm); font-size: 1.6rem; font-weight: var(--fw-regular); line-height: var(--lh-loose); }
    .gen__panel { padding: 2rem; gap: 2rem; border-radius: var(--radius-xl); }
    .panel__title { padding: 0; font-size: 1.6rem; font-weight: var(--fw-semibold); }
    .gen__sub { padding-inline: 0; font-size: 1.6rem; font-weight: var(--fw-bold); }
    .gen__intro > .btn { min-height: 5.2rem; font-size: 1.6rem; }

    /* 타임라인 : 선 대신 구분선이 있는 세로 목록 */
    .timeline-box { padding: var(--space-md); border-radius: var(--radius-md); }
    .timeline { flex-direction: column; align-items: stretch; padding-inline: 0; }
    .timeline__line { display: none; }
    .timeline__step {
        flex-direction: row;
        align-items: center;
        gap: var(--space-sm);
        padding: var(--space-sm) 0;
        text-align: left;
    }
    .timeline__step { border-bottom: var(--size-hairline) solid var(--color-bg-page); }
    .timeline__step:last-child { border-bottom: 0; }
    .timeline__dot-wrap { width: 1rem; height: 1rem; background: none; }
    .timeline__dot { width: 1rem; height: 1rem; background: #BDC5CE; border: 0; }
    .timeline__step.is-current .timeline__dot-wrap { background: none; }
    .timeline__step.is-current .timeline__dot { background: var(--color-accent); border: 0; }
    .timeline__period {
        flex: 1;
        font-size: 1.4rem;
        font-weight: var(--fw-regular);
        color: var(--color-text);
    }
    .timeline__gen { font-size: 1.4rem; font-weight: var(--fw-bold); color: #7B8796; }
    .timeline__step.is-current .timeline__period { color: var(--color-text); }
    .timeline__step.is-current .timeline__gen { color: var(--color-accent); }

    /* 세대별 차이 칩 */
    .chips { grid-template-columns: 1fr; gap: 10px; }
    .chip { gap: var(--space-sm); padding: 14px; border-radius: var(--radius-md); align-items: center; }
    .chip__icon { width: 3.6rem; height: 3.6rem; }
    .chip__title { font-size: 1.4rem; }
    .chip__desc { font-size: 1.4rem; line-height: var(--lh-relaxed); }

    /* ---- 포인트 카드 : 아이콘 왼쪽 가로 배치 ---- */
    .points { grid-template-columns: 1fr; gap: var(--space-sm); margin-top: 28px; }
    .point-card {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--space-md);
        min-height: 0;
        padding: 18px;
        border-radius: var(--radius-xl);
    }
    .point-card__icon { width: 4.4rem; height: 4.4rem; }
    .point-card__title { font-size: 2rem; }
    .point-card__desc { margin-top: var(--space-xs); font-size: 1.6rem; font-weight: var(--fw-regular); }

    .compare__inner { align-items: flex-start; }
    .compare__cards { grid-template-columns: 1fr; }
    .notice-box { padding: var(--space-md); }
    .ins-card__name { font-size: 1.6rem; }
    .ins-card__price-label { font-size: 1.4rem; }
    .ins-card__price-value { font-size: 2.8rem; }
    .ins-row__label { font-size: 1.4rem; }
    .ins-row__list li { font-size: 1.6rem; }
    .tag--soft { font-size: 1.4rem; }
    .notice-box__title { font-size: 1.6rem; }
    .notice-box li { font-size: 1.4rem; }
    .cta__title { font-size: 2.4rem; }
    .cta__desc { font-size: 1.6rem; }
    .cta__btn { font-size: 1.8rem; }
    .footer-note li { font-size: 1.3rem; }

    /* 시안 모바일 CTA : 라운드를 줄이고 여백·간격을 키운다 */
    .cta-wrap { padding: var(--space-md); }
    .cta {
        gap: 2.8rem;
        padding: 3.2rem 2.4rem;
        border-radius: 2.4rem;
    }
    .cta__text { gap: var(--space-sm); }
    .cta__btn { min-height: 5.2rem; border-radius: var(--radius-lg); }
    .cta__btn .btn__chevron { width: 2.4rem; height: 2.4rem; }

    /* 하단 고정 입력바가 없는 폭이라 아래 여백을 줄인다 (플로팅 버튼 자리만) */
    .footer-note { padding-block: var(--space-md) 8rem; }

    .hero__bg,
    .cta__bg { background-image: url(../Img/hero_bg_mo.webp); }
    /* 배너는 같은 배경의 아래쪽을 보여준다 (히어로와 겹치는 느낌을 피한다) */
    .cta__bg { background-position: center bottom; }
}

/* =========================================================================
   10. 개인정보취급방침 모달
   시안(PC) : 박스 841 폭, 라운드 16 / 헤더 16 20 8, 제목 20 Bold
             본문 좌우 20, 최대 높이 240 안에서 스크롤 / 버튼 영역 패딩 16, 버튼 높이 49
   좁은 화면에서는 폭과 본문 높이가 화면에 맞춰 줄어든다.
   ====================================================================== */
.policy-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
    background: var(--color-scrim);
}
.policy-modal.is-open { display: flex; }

.policy-modal__box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 84.1rem;
    max-height: calc(100% - var(--space-xl));
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.policy-modal__head { padding: var(--space-md) 2rem var(--space-xs); }
.policy-modal__title {
    font-size: var(--fs-lead);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--color-text);
}

.policy-modal__body {
    flex: 1 1 auto;
    max-height: 24rem;
    padding: 0 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: var(--fs-body);
    line-height: var(--lh-loose);
    color: var(--color-text);
}
.policy-modal__body p { margin-bottom: var(--space-sm); }
.policy-modal__h {
    margin: var(--space-lg) 0 var(--space-xs);
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-bold);
}
.policy-modal__sub {
    margin: var(--space-md) 0 var(--space-4);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
}
.policy-modal__term {
    margin-bottom: var(--space-4) !important;
    font-weight: var(--fw-semibold);
    color: var(--color-text-sub);
}
.policy-modal__list { margin-bottom: var(--space-sm); }
.policy-modal__list li {
    position: relative;
    padding-left: var(--space-sm);
    color: var(--color-text-sub);
}
.policy-modal__list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: calc(var(--lh-loose) * 0.5em - 1.5px);
    width: 3px;
    height: 3px;
    border-radius: var(--radius-circle);
    background: var(--color-text-sub);
}

.policy-modal__foot { padding: var(--space-md); }
.policy-modal__close {
    height: 4.9rem;
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    .policy-modal__body { max-height: min(46rem, 64vh); }
}

/* =========================================================================
   11. 문자 인증 모달
   시안(PC) : 박스 480 폭, padding 0 16 16, 라운드 28
             헤더 16/16/8 · 제목 26 Bold
             각 줄 = [입력칸(패딩 16, gap 8)] + [버튼 96x49, 라운드 12]
             입력칸은 밑줄(1px) 위에 22 SemiBold 글자
             맨 아래 닫기 버튼은 가로 전체, 높이 49, 라운드 14
   ====================================================================== */
#cost_background {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    display: none;
    background: var(--color-scrim);
}

.sms-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: var(--z-modal);
    display: none;
    width: min(48rem, calc(100% - var(--space-xl)));
    max-height: calc(100% - var(--space-xl));
    padding: 0 var(--space-lg) var(--space-md);
    background: var(--color-bg-card);
    border-radius: var(--radius-3xl);
    overflow-y: auto;
}
.sms-modal__head { padding: var(--space-md) 0 var(--space-xs); }
.sms-modal__title {
    font-size: var(--fs-title);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--color-text);
}

/* 입력칸의 좌우 패딩을 빼고 줄 자체에 gap 을 줘서
   입력 밑줄 왼쪽 끝과 아래 닫기 버튼의 왼쪽 끝이 같은 선에 오도록 한다. */
.sms-modal__row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.sms-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-md) 0;
}
.sms-field__label {
    font-size: var(--fs-caption);
    font-weight: var(--fw-semibold);
    color: var(--color-text-sub);
}
.sms-field__line {
    display: flex;
    align-items: center;
    min-width: 0;
    padding-bottom: var(--space-xs);
    border-bottom: var(--size-hairline) solid var(--color-line);
}
.sms-field__input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: var(--fs-subtitle);
    font-weight: var(--fw-semibold);
    line-height: 1.5;
    color: var(--color-text);
}
.sms-field__input:focus { outline: 0; }
.sms-field__input::placeholder { color: var(--color-text-sub); font-weight: var(--fw-semibold); }
.sms-field__desc { font-size: var(--fs-body); font-weight: var(--fw-medium); color: var(--color-text-sub); }

.sms-modal__btn {
    flex: 0 0 9.6rem;
    height: 4.9rem;
    border-radius: var(--radius-sm);
}
.sms-modal__foot { padding-top: var(--space-xs); }
.sms-modal__close { height: 4.9rem; border-radius: var(--radius-md); }

/* 모바일 시안 : 박스 361 폭, 라운드 16, 버튼 80x49
   글자 크기는 유동 토큰이 393px 에서 작아지므로 시안 px 로 못박는다 */
@media (max-width: 768px) {
    .sms-modal {
        padding: 0 var(--space-md) var(--space-md);
        border-radius: var(--radius-lg);
    }
    .sms-modal__title { font-size: 2.2rem; }
    .sms-field { padding: var(--space-md) 0; }
    .sms-field__label { font-size: 1.4rem; }
    .sms-field__input { font-size: 2.2rem; }
    .sms-field__input::placeholder { font-size: 2.2rem; }
    .sms-field__desc { font-size: 1.6rem; }
    .sms-modal__btn { flex-basis: 8rem; font-size: 1.8rem; }
    .sms-modal__close { font-size: 1.8rem; }
}

/* =========================================================================
   12. 알림 모달 (customAlert)
   시안 : 박스 361 폭, 라운드 16
         헤더 16/20/8 · 제목 20 Bold
         본문 좌우 20 · 16 SemiBold 회색
         버튼 영역 패딩 16 · 버튼 높이 49, 라운드 12
   ====================================================================== */
.custom-alert-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
    background: var(--color-scrim);
}
.custom-alert-modal.active { display: flex; }

.custom-alert-container {
    width: 100%;
    max-width: 36.1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.custom-alert-head { padding: var(--space-md) 2rem var(--space-xs); }
.custom-alert-title {
    font-size: var(--fs-lead);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--color-text);
}
.custom-alert-body { padding: 0 2rem; }
.custom-alert-desc {
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-loose);
    color: var(--color-text-sub);
}
.custom-alert-foot { padding: var(--space-md); }
.custom-alert-confirm {
    height: 4.9rem;
    border-radius: var(--radius-sm);
}

/* 모바일 알림 모달 : 유동 토큰이 작아지는 구간이라 시안 px 로 못박는다 */
@media (max-width: 768px) {
    .custom-alert-title { font-size: 2rem; }
    .custom-alert-desc { font-size: 1.6rem; }
    .custom-alert-confirm { font-size: 1.8rem; }
}
