/*
 * 첫 화면 (index.php)
 * 휴대폰 그림(.phone)은 폭만 정하면 안의 글자·간격이 em 으로 함께 줄고 늘어남 (기준 폭 280px = 글자 14px)
 */

/* 히어로: 어두운 배경, 머리글 아래까지 */
.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--site-header-height) + 48px) 0 64px;
    background: var(--site-dark-background);
    color: #fff;
}

/* 뒤쪽의 흐린 빛 (그라데이션 대신 흐림 처리한 단색 원) */
.hero::before {
    content: "";
    position: absolute;
    top: 12%;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(var(--payper-main-accent-color-rgb), 0.45);
    filter: blur(110px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.hero-text h1 {
    font-size: 40px;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-text h1 em {
    font-style: normal;
    color: #8fa8f0;
}

.hero-lead {
    margin: 20px 0 32px;
    max-width: 500px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

/* 어두운 배경 위 스토어 버튼은 흰 바탕 */
.hero .store-button,
.closing .store-button {
    background: #fff;
    color: var(--payper-main-active-color);
}

.hero .store-button.is-disabled,
.closing .store-button.is-disabled {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-visual .phone {
    width: min(78vw, 300px);
}

/*
 * 좁은 화면(1024px 미만, 글 아래에 휴대폰): 휴대폰 전체를 보이면 빈 흰 화면이 한 화면을 차지하므로
 * 히어로 아래 끝에서 올라오는 모양으로 윗부분(카드 + 내역 첫 줄)만 보이고 아래는 잘림
 */
@media (max-width: 1023.98px) {
    .hero {
        padding-bottom: 0;
    }

    .hero-visual {
        height: calc(min(78vw, 300px) * 1.42);
        overflow: hidden;
        align-items: flex-start;
    }

    .hero-visual .phone {
        flex: none;
    }
}

/*
 * 한눈에 보는 기능 표: 왼쪽 제목 | 오른쪽 표 (넓은 화면), 좁으면 위아래
 * 표는 서비스마다 한 줄: 번호·이름 | 항목 3개(굵은 제목 + 회색 설명). 위아래 가는 선만, 칸 테두리·아이콘 없음
 */
.feature-table-section {
    padding: 88px 0 0;
}

.feature-table-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-table-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--payper-sub-text-color);
}

.feature-table {
    border-top: 2px solid var(--payper-main-active-color);
}

.feature-table-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 0;
    border-bottom: 1px solid var(--site-border-color);
}

.feature-table-name {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.feature-table-name span {
    min-width: 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--payper-sub-text-color);
    font-variant-numeric: tabular-nums;
}

.feature-table-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
}

.feature-table-items dt {
    font-size: 16px;
    font-weight: 700;
}

.feature-table-items dd {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--payper-sub-text-color);
}

/* 휴대폰(560px 미만): 항목마다 한 줄 — 왼쪽 굵은 제목 | 오른쪽 설명 (세로로 길게 늘어지지 않게) */
@media (max-width: 559.98px) {
    .feature-table-section {
        padding-top: 64px;
    }

    .feature-table-row {
        gap: 14px;
        padding: 24px 0;
    }

    .feature-table-name {
        font-size: 22px;
    }

    .feature-table-items {
        gap: 10px;
    }

    .feature-table-items > div {
        display: grid;
        grid-template-columns: 7.5em 1fr;
        column-gap: 12px;
        align-items: baseline;
    }

    .feature-table-items dt {
        font-size: 15px;
    }

    .feature-table-items dd {
        margin: 0;
    }
}

/* 공통 줄: 이름을 회색으로 낮춤 (서비스 4줄이 주인공) */
.feature-table-row.is-common .feature-table-name {
    color: var(--payper-sub-text-color);
}

@media (min-width: 560px) {
    .feature-table-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .feature-table-section {
        padding-top: 120px;
    }

    .feature-table-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 64px;
    }

    .feature-table-intro {
        flex: none;
        width: 280px;
        position: sticky;
        top: calc(var(--site-header-height) + 32px);
    }

    .feature-table {
        flex: 1;
    }

    .feature-table-row {
        flex-direction: row;
        align-items: baseline;
        gap: 0;
        padding: 32px 0;
    }

    /* 이름 칸은 폭 고정, 넘치면 줄바꿈 (언어마다 이름 길이가 다름) — 항목 칸과 겹치지 않게 */
    .feature-table-name {
        flex: 0 0 180px;
        min-width: 0;
        padding-right: 20px;
        font-size: 26px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .feature-table-row.is-common .feature-table-name {
        font-size: 22px;
    }

    .feature-table-items {
        flex: 1;
        min-width: 0;
        gap: 24px;
    }
}

/* 구역 제목 */
.section-head {
    margin-bottom: 48px;
}

.section-head.is-center {
    text-align: center;
}

.section-eyebrow {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--payper-main-accent-color);
}

.section-title {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* 기능 소개: 글과 휴대폰 그림 (넓은 화면에서 좌우 번갈아) */
.showcase {
    padding: 88px 0 40px;
}

.showcase-row {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-bottom: 88px;
}

.showcase-label {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--payper-main-accent-color);
}

.showcase-text h3 {
    margin-bottom: 16px;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.showcase-text p {
    max-width: 440px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--payper-sub-text-color);
}

.showcase-text .showcase-sub {
    margin-top: 12px;
    font-size: 15px;
}

.showcase-visual {
    display: flex;
    justify-content: center;
    padding: 40px 0;
    border-radius: 28px;
    background: var(--site-soft-background);
}

.showcase-visual .phone {
    width: min(68vw, 260px);
}

/* 좁은 화면(1024px 미만, 글 아래에 그림): 히어로처럼 휴대폰 윗부분만, 회색 상자 아래 끝에서 잘림 */
@media (max-width: 1023.98px) {
    .showcase-visual {
        height: calc(min(68vw, 260px) * 1.45 + 40px);
        padding-bottom: 0;
        overflow: hidden;
        align-items: flex-start;
    }

    .showcase-visual .phone {
        flex: none;
    }
}

/* 휴대폰 그림 */
.phone {
    aspect-ratio: 9 / 18.5;
    padding: 2.6%;
    border-radius: 15% / 7.3%;
    background: #1f2430;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.phone-screen {
    display: flex;
    flex-direction: column;
    gap: 1em;
    height: 100%;
    padding: 2.6em 1.15em 1.2em;
    overflow: hidden;
    border-radius: 13% / 6.2%;
    background: #fff;
    color: var(--payper-main-active-color);
}

/* 폭에 따라 안의 글자 크기 맞춤 (기준 280px = 14px) */
.hero-visual .phone { font-size: clamp(11px, 3.9vw, 15px); }
.showcase-visual .phone { font-size: clamp(10.5px, 3.4vw, 13px); }

.mock-title {
    font-size: 1.35em;
    font-weight: 800;
}

/* 결제 카드 */
.mock-pay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    padding: 1.6em 1.2em;
    border-radius: 1.3em;
    background: var(--payper-main-active-color);
    color: #fff;
}

.mock-pay-card img {
    align-self: flex-start;
    height: 1.1em;
    width: auto;
    filter: invert(1);
}

.mock-pay-qr {
    width: 62%;
    aspect-ratio: 1;
    padding: 0.9em;
    border-radius: 0.9em;
    background: #fff;
    color: var(--payper-main-active-color);
}

.mock-pay-qr svg {
    width: 100%;
    height: 100%;
}

.mock-pay-label {
    margin-top: 0.2em;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.66);
}

.mock-pay-balance {
    margin-top: -0.6em;
    font-size: 1.7em;
    font-weight: 800;
}

/* 어두운 카드 위 동전은 파랑 바탕 (검정 카드에 묻히지 않게) */
.mock-pay-card .payper-coin {
    background-color: var(--payper-main-accent-color);
}

.mock-pay-card.is-small {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1.2em;
}

.mock-pay-card.is-small .mock-pay-qr {
    width: 38%;
    padding: 0.6em;
}

/* 목록 줄 (이용 내역) */
.mock-list {
    display: flex;
    flex-direction: column;
}

.mock-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85em 0;
    border-bottom: 1px solid var(--site-border-color);
    font-size: 0.95em;
}

/* 왼쪽 이름·시각만 세로로 (금액 .payper-point 의 span 은 제외) */
.mock-list-row > span {
    display: flex;
    flex-direction: column;
    font-weight: 600;
}

.mock-list-row small {
    font-size: 0.82em;
    font-weight: 400;
    color: var(--payper-sub-text-color);
}

/* 주문 메뉴 */
.mock-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7em;
}

.mock-menu-item {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    font-size: 0.88em;
    font-weight: 600;
}

.mock-menu-item i {
    display: block;
    aspect-ratio: 1;
    border-radius: 0.9em;
}

/* 상품 사진 자리: 채도 낮은 단색 */
.mock-menu-item i.is-coffee { background: #d9c7b8; }
.mock-menu-item i.is-latte { background: #eadfd3; }
.mock-menu-item i.is-tea { background: #f1d3c9; }
.mock-menu-item i.is-bakery { background: #efe2c4; }

.mock-menu-item span {
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    line-height: 1.3;
}

.mock-menu-item b {
    font-weight: 700;
}

.mock-button {
    margin-top: auto;
    padding: 0.95em;
    border-radius: 0.8em;
    background: var(--payper-main-active-color);
    color: #fff;
    font-size: 0.95em;
    font-weight: 700;
    text-align: center;
}

/* 예약 달력 */
.mock-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35em 0.2em;
    text-align: center;
    font-size: 0.88em;
}

.mock-calendar span {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 50%;
}

.mock-calendar .is-weekday {
    aspect-ratio: auto;
    font-size: 0.85em;
    color: var(--payper-sub-text-color);
}

.mock-calendar .is-selected,
.mock-slots .is-selected {
    background: var(--payper-main-active-color);
    color: #fff;
    font-weight: 700;
}

.mock-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5em;
    font-size: 0.88em;
}

.mock-slots span {
    padding: 0.7em 0;
    border: 1px solid var(--site-border-color);
    border-radius: 0.7em;
    text-align: center;
    font-weight: 600;
}

.mock-slots .is-selected {
    border-color: var(--payper-main-active-color);
}

.mock-slots .is-disabled {
    color: #b8bdc7;
    text-decoration: line-through;
}

/* 이용 내역 요약·그래프 */
.mock-summary {
    padding: 1.2em;
    border-radius: 1em;
    background: rgba(var(--payper-main-accent-color-rgb), 0.1);
}

.mock-summary p {
    font-size: 0.85em;
    color: var(--payper-sub-text-color);
}

.mock-summary strong {
    display: block;
    margin-top: 0.2em;
    font-size: 1.6em;
    font-weight: 800;
}

.mock-bars {
    display: flex;
    flex-direction: column;
    gap: 0.9em;
}

.mock-bars div {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    font-size: 0.88em;
    font-weight: 600;
}

.mock-bars i {
    display: block;
    height: 0.6em;
    border-radius: 0.3em;
    background: var(--payper-main-accent-color);
}

.mock-bars div:nth-child(2) i { opacity: 0.65; }
.mock-bars div:nth-child(3) i { opacity: 0.35; }

/* 시작 방법 */
.steps {
    padding: 88px 0;
    background: var(--site-soft-background);
}

.step-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    padding: 28px;
    border-radius: 20px;
    background: #fff;
}

.step-number {
    display: block;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 800;
    color: var(--payper-main-accent-color);
}

.step h3 {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
}

.step p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--payper-sub-text-color);
}

/* 마지막 안내 */
.closing {
    padding: 88px 0;
    background: var(--site-dark-background);
    color: #fff;
}

.closing-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.closing h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.closing p {
    margin: 12px 0 32px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.72);
}

.closing .store-buttons {
    justify-content: center;
}

@media (min-width: 768px) {
    .hero {
        padding: calc(var(--site-header-height) + 72px) 0 88px;
    }

    .hero-text h1 {
        font-size: 52px;
    }

    .section-title {
        font-size: 38px;
    }

    .showcase-text h3 {
        font-size: 34px;
    }

    .showcase-visual .phone {
        width: 260px;
        font-size: 13px;
    }

    .step-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .closing h2 {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: calc(var(--site-header-height) + 80px) 0 104px;
    }

    .hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-text {
        flex: 1;
    }

    .hero-text h1 {
        font-size: 64px;
    }

    .hero-visual {
        flex: none;
        width: 420px;
    }

    .hero-visual .phone {
        width: 300px;
        font-size: 15px;
    }

    /* 기능 소개: 글 왼쪽·그림 오른쪽, .is-reverse 는 반대 */
    .showcase {
        padding: 120px 0 40px;
    }

    .showcase-row {
        flex-direction: row;
        align-items: center;
        gap: 64px;
        margin-bottom: 120px;
    }

    .showcase-row.is-reverse {
        flex-direction: row-reverse;
    }

    .showcase-text,
    .showcase-visual {
        flex: 1;
    }

    .showcase-visual {
        padding: 56px 0;
    }

    .steps,
    .closing {
        padding: 120px 0;
    }
}

/* 768~1023px: 위 (min-width: 768px) 의 히어로 아래 여백을 다시 0 으로 (휴대폰이 히어로 아래 끝에서 잘리게) */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .hero {
        padding-bottom: 0;
    }
}
