/*
    brakeapp.kr '곧 만나요' 첫 화면 스타일 — ver 1.001
    - brake.css(홈페이지 스타일) 다음에 읽어요. 색·배경·떠다니는 꾸밈·로고·뱃지는 brake.css 그대로 쓰고,
      여기서는 한 화면 배치 · 마스코트 · 떠다니는 앱 이름만 더해요.
    - 움직임은 모두 CSS. '움직임 줄이기' 설정이면 brake.css 맨 아래 규칙이 전부 꺼 주고, 맨 아래에서 배치만 정리해요.
*/

/* ---- 글꼴: 주아(Jua, SIL OFL 1.1) — 이 페이지 글자만 담은 작은 파일 ---- */
@font-face {
    font-family: "BrakeSoon";
    src: url("../fonts/jua-soon.woff2?v=1.001") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.soon {
    --font-fun: "BrakeSoon", var(--font);
}

/* ==== 한 화면 배치: 로고 · 가운데 카드 · 바닥글 ==== */
.soon-page {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0 20px;
}

.soon-hd {
    display: flex;
    justify-content: center;
    padding: 28px 0 8px;
}

/* 홈페이지는 좁은 화면에서 'by 심플리디자인'을 숨기지만, 여기서는 늘 보여요 */
.soon .logo-sub {
    display: inline;
}

.soon-main {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 12px 0 24px;
}

.soon-stage {
    position: relative;
    width: 100%;
    max-width: 1180px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 가운데 카드: 반투명 흰 판 위에 글 */
.soon-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 680px;
    padding: 34px 32px 30px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-up);
    text-align: center;
    animation: cardIn 0.8s var(--bounce) both;
}

@keyframes cardIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.94);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

.soon .eyebrow {
    justify-content: center;
}

/* 큰 제목은 가운데 정렬 (글자마다 통통 떨어진 뒤 살랑 — brake.css 의 .wl) */
.soon-title {
    font-size: clamp(40px, 6vw, 76px);
}

.soon-title .ht-line {
    justify-content: center;
}

/* 제목 속 '○' 는 주아 글꼴에 없어서 동그라미를 그려요 */
.wl-ring {
    width: 0.78em;
    height: 0.78em;
    margin: 0 0.03em;
    align-self: center;
    border: 0.12em solid var(--mustard);
    border-radius: 50%;
    background: #fff;
}

.soon-lead {
    max-width: 34em;
    margin: 18px auto 0;
    font-size: 17px;
    color: var(--ink-2);
}

.soon-store {
    justify-content: center;
}

.soon-note {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.soon-ft {
    padding: 18px 0 26px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* ==== 마스코트: 웃는 멈춤 표지판 ==== */
.mascot {
    position: relative;
    width: 104px;
    margin: -8px auto 6px;
    animation: bob 3s ease-in-out infinite;
}

.m-sign {
    width: 104px;
    height: auto;
    overflow: visible;
}

.m-pole {
    fill: #c9cdd6;
}

.m-oct {
    fill: var(--red);
    stroke: var(--ink);
    stroke-width: 5;
    stroke-linejoin: round;
}

.m-ring {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linejoin: round;
    opacity: 0.9;
}

/* 눈은 가끔 깜빡 */
.m-eyes {
    fill: #fff;
    transform-box: fill-box;
    transform-origin: center;
    animation: blinkEye 4.5s ease-in-out infinite;
}

@keyframes blinkEye {
    0%,
    92%,
    100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.1);
    }
}

.m-blush {
    fill: #ffc6e0;
    opacity: 0.9;
}

.m-smile {
    fill: none;
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
}

/* 말풍선 '곧 만나요!' — 살짝 흔들 */
.m-bubble {
    position: absolute;
    left: 78%;
    top: -6px;
    padding: 6px 12px;
    border-radius: 16px 16px 16px 4px;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-fun);
    font-size: 17px;
    white-space: nowrap;
    transform-origin: 0 100%;
    animation: wiggleSoft 2.6s ease-in-out infinite;
}

@keyframes wiggleSoft {
    0%,
    100% {
        rotate: -4deg;
    }

    50% {
        rotate: 5deg;
    }
}

/* ==== 떠다니는 앱 이름 ==== */
/* 넓은 화면: 카드 둘레에 흩어져 둥실 */
.floaters {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.fp {
    position: absolute;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    font-family: var(--font-fun);
    font-size: 19px;
    white-space: nowrap;
    rotate: var(--r, 0deg);
    animation: floaty var(--d, 9s) ease-in-out infinite;
    animation-delay: var(--dl, 0s);
}

/* 자리 8곳 (왼쪽 넷 · 오른쪽 넷) */
.fp1 {
    top: 6%;
    left: 2%;
    --r: -6deg;
    --d: 8s;
}

.fp2 {
    top: 30%;
    left: 0;
    --r: 4deg;
    --d: 10s;
    --dl: -2s;
}

.fp3 {
    top: 56%;
    left: 3%;
    --r: -3deg;
    --d: 9s;
    --dl: -4s;
}

.fp4 {
    top: 82%;
    left: 8%;
    --r: 5deg;
    --d: 11s;
    --dl: -1s;
}

.fp5 {
    top: 8%;
    right: 3%;
    --r: 5deg;
    --d: 9.5s;
    --dl: -3s;
}

.fp6 {
    top: 32%;
    right: 0;
    --r: -4deg;
    --d: 8.5s;
    --dl: -5s;
}

.fp7 {
    top: 58%;
    right: 2%;
    --r: 3deg;
    --d: 10.5s;
    --dl: -2.5s;
}

.fp8 {
    top: 84%;
    right: 7%;
    --r: -5deg;
    --d: 9s;
    --dl: -6s;
}

/* 좁은 화면: 카드 아래에 줄지어 둥실 (겹치지 않게) */
@media (max-width: 1100px) {
    .floaters {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 10px;
        max-width: 680px;
        margin-top: 22px;
    }

    .fp {
        position: static;
        font-size: 16px;
        padding: 6px 13px;
    }
}

@media (max-width: 560px) {
    .soon-page {
        padding: 0 14px;
    }

    .soon-hd {
        padding-top: 20px;
    }

    .soon-card {
        padding: 26px 18px 24px;
        border-radius: 28px;
    }

    .soon-lead {
        font-size: 15.5px;
    }

    .m-bubble {
        font-size: 15px;
    }
}

/* ==== 움직임 줄이기: 움직임은 brake.css 가 끄고, 여기선 기운 자리만 바로 ==== */
@media (prefers-reduced-motion: reduce) {
    .fp {
        rotate: 0deg;
    }
}
