:root {
    color-scheme: light;
    --bg: #f7fbfa;
    --surface: #fff;
    --raised: #e4f4f1;
    --line: #d8e6e3;
    --line-strong: #a9c5bf;
    --fg: #122c2a;
    --fg-2: #3d5855;
    --muted: #506e6a;
    --accent: #086c65;
    --on-accent: #fff;
    --right: #166c43;
    --wrong: #a83439;
    --wash: #e2f4ee;
    --pop: #28d6bd;
    --stage: #dff4ec;
    --radius: 24px;
    --frame: 1184px;
    --gutter: clamp(16px, 5vw, 76px);
    --toolbar-height: 0px;
    --shadow: 0 18px 48px -28px color-mix(in srgb, var(--fg) 42%, transparent);
}

html { scroll-padding-top: var(--toolbar-height); }
body { font-family: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
button { font: inherit; }
[hidden] { display: none !important; }

.hero {
    min-height: auto;
    padding: 0 var(--gutter) clamp(48px, 7vw, 92px);
    background: linear-gradient(160deg, var(--surface), var(--bg) 86%);
}

.site-header {
    display: flex;
    align-items: center;
    gap: clamp(14px, 4vw, 50px);
    width: 100%;
    min-height: 82px;
    max-width: var(--frame);
    margin: 0 auto;
}

.logo {
    gap: 9px;
    color: var(--fg);
    font-size: 1.25rem;
    font-weight: 780;
    white-space: nowrap;
    letter-spacing: -.05em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    padding: 3px;
    border-radius: 10px;
    background: #0b0d14;
}

.site-links { margin-left: auto; display: flex; gap: clamp(12px, 3vw, 35px); }
.site-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--fg-2);
    font-size: .875rem;
    font-weight: 650;
    text-decoration: none;
}
.site-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.lang-switch {
    position: static;
    padding: 3px;
    border-color: var(--line);
    border-radius: 10px;
}
.lang-switch button { min-height: 36px; padding-inline: 9px; }
.lang-switch button[aria-pressed="true"] { color: var(--accent); }

.hero-inner {
    width: 100%;
    max-width: var(--frame);
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: clamp(36px, 5vw, 78px);
    padding-top: clamp(20px, 3.6vw, 46px);
}
.hero-copy { animation: none; }
.hero-status {
    margin: 0 0 1.15rem;
    padding: 5px 11px;
    background: var(--wash);
    border: 1px solid var(--line);
    color: var(--accent);
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 670;
}
.status-dot { box-shadow: none; }
.hero h1,
html[lang="ko"] .hero h1 {
    margin: 0;
    font-size: clamp(2.55rem, 5.1vw, 5.15rem);
    font-weight: 790;
    line-height: 1.1;
    letter-spacing: -.075em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub { margin-top: 30px; max-width: 29rem; }
.stores { margin-top: 37.5px; }
.store { min-width: 157px; border-radius: 10px; padding-inline: 12px; }
.store-first,
.store-first .store-when,
.store-first .icon { color: var(--on-accent); }
.store-first {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 10px 22px -14px var(--accent);
}
.store-first:hover,
.store-first:active {
    background: color-mix(in srgb, var(--accent) 86%, var(--fg));
}
.store-name { font-weight: 680; }
.hero-links { gap: 6px 18px; margin-top: 24px; }
.wait-link { color: var(--accent); text-decoration-color: var(--line-strong); }

.showcase {
    position: relative;
    isolation: isolate;
    min-height: clamp(360px, 37vw, 508px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--stage);
    box-shadow: var(--shadow);
}
.route-art,
.showcase-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-screen {
    position: absolute;
    z-index: 2;
    width: clamp(115px, 30%, 179px);
    overflow: hidden;
    border-radius: 19px;
    border: 5px solid var(--surface);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line-strong), 0 22px 38px -17px #102e4966;
}
.hero-screen img { display: block; width: 100%; height: auto; }
.hero-screen-main { bottom: 9%; right: 9%; transform: rotate(5deg); }
.hero-screen-alt { display: none; }
.signal-scene { display: none; }

.overview, .feature, .more, .how, .instagram-feed, .cta, .faq, .chapters {
    width: calc(100% - 2 * var(--gutter));
    max-width: var(--frame);
    padding-inline: 0;
    scroll-margin-top: 16px;
}
.overview, .more, .how { padding-block: clamp(58px, 7vw, 98px); }
.eyebrow, .faq-eyebrow { color: var(--accent); font-weight: 750; }
.overview h2, .feature h2, .more h2, .how h2, .instagram-feed h2, .cta h2, .faq h2 {
    font-size: clamp(1.85rem, 3.2vw, 3rem);
    font-weight: 760;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.instagram-feed {
    margin-inline: auto;
    padding-block: clamp(48px, 6vw, 80px);
    border-bottom: 1px solid var(--line);
}
.instagram-feed h2 { margin: 0 0 1.25rem; }
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}
.instagram-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.instagram-card blockquote { margin: 0; padding: 1rem; }
.instagram-card iframe.instagram-media {
    display: block;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}
.card {
    padding: clamp(17px, 2.25vw, 27px);
    border-radius: min(17px, var(--radius));
    box-shadow: var(--shadow);
}
.card::before {
    content: "";
    width: 32px;
    height: 6px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: var(--pop);
}
/* 기능 요약 카드 아이콘: 직접 그린 선 아이콘(외부 아이콘 세트 미사용). 아이콘이 있는 카드는 위 막대를 숨긴다 */
.card:has(.card-icon)::before { display: none; }
.card-icon {
    align-self: center;
    width: 96px;
    height: 96px;
    margin-bottom: 9px;
    padding: 22px;
    border-radius: 24px;
    background: var(--raised);
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.card h3, .steps h3 { font-weight: 750; }
#features .card h3 { margin-bottom: 8px; text-align: center; }
.card p { font-size: 1rem; }
.card-link { color: var(--accent); }

.chapters {
    position: sticky;
    z-index: 5;
    top: var(--toolbar-height);
    margin: 0 auto 24px;
    background: var(--bg);
}
.chapters-inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.chapters a {
    display: grid;
    place-items: center;
    min-height: 60px;
    padding: 10px 2px;
    border-radius: 8px;
    color: var(--fg-2);
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 690;
    letter-spacing: .025em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.chapters a > span { display: grid; justify-items: center; }
.chapter-en {
    margin-top: 5px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .05em;
    opacity: .72;
}
.chapters a:hover,
.chapters a[aria-current] { color: var(--accent); background: var(--raised); }

.feature {
    min-height: clamp(400px, 49vw, 630px);
    gap: clamp(30px, 5vw, 72px);
    padding: clamp(24px, 5vw, 72px);
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    scroll-margin-top: 74px;
}
.feature:is(#recording, #review) { background: color-mix(in srgb, var(--wash) 57%, var(--surface)); }
.feature:is(#transport, #private) { background: var(--surface); }
.feature.no-media { min-height: 0; background: var(--wash); }
.feature h2 br { display: none; }
.feature .lead { margin-top: 16px; }
.feature-copy { container-type: inline-size; }
.feature .points {
    gap: 0;
    border-top: 1px solid var(--line);
}
.feature.no-media .points {
    grid-template-columns: minmax(0, 1fr);
    max-width: 48rem;
}
.feature .points > li {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 16px;
    align-items: start;
    padding: 13px 0 15px;
    border-bottom: 1px solid var(--line);
}
.feature .points > li::before { content: none; }
.feature .points > li > strong {
    margin: 0;
    padding-inline-start: 10px;
    border-inline-start: 2px solid #23b5a2;
    color: var(--accent);
    font-size: 1.0625rem;
    font-weight: 750;
    line-height: 1.4;
}
@container (max-width: 355px) {
    .feature .points > li {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
}
.feature-toggle { display: none; }
.note { background: var(--surface); border-color: var(--line); }
.feature-media, .more-media {
    padding: clamp(18px, 4vw, 44px) clamp(10px, 2vw, 24px) 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: radial-gradient(ellipse at top, var(--surface), var(--wash));
}
.shots { align-items: center; }
.phone-frame { display: contents; }
.shot {
    width: 100%;
    flex: 0 1 185px;
    max-width: 185px;
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}
.feature-media figcaption,
.more-media figcaption { font-size: .875rem; }
.more-media {
    flex-direction: row;
    justify-content: center;
    gap: clamp(14px, 6vw, 54px);
    padding-bottom: clamp(18px, 4vw, 44px);
}
.more-media .shots { width: auto; }
.more-media figcaption { max-width: 18rem; margin: 0; }
.how { padding-top: 0; border-bottom: 1px solid var(--line); }
.steps li { padding-top: 18px; border-top: 3px solid var(--line-strong); }
.step-num { color: var(--accent); }
.faq { max-width: 760px; padding-block: clamp(55px, 7vw, 96px); }
.faq details[open] { border-color: var(--line-strong); }
.level-tabs [aria-selected="true"] { color: var(--accent); }
.quiz-choice.is-answer { background: #e8f5ee; }
.quiz-item[data-state="wrong"] .quiz-choice[aria-pressed="true"] { background: #fff0ef; }
.quiz-btn-primary:hover, .btn-primary:hover {
    background: color-mix(in srgb, var(--accent) 86%, var(--fg));
    border-color: var(--accent);
}
@media (hover: hover) {
    .quiz-choice:not([aria-disabled="true"]):hover,
    .quiz-btn:hover:not(.quiz-btn-primary),
    .btn:hover:not(.btn-primary),
    .consent-actions button:hover {
        border-color: var(--accent);
        background: var(--wash);
    }
}
.consent { box-shadow: var(--shadow); }
.cta {
    max-width: var(--frame);
    padding: clamp(38px, 7vw, 92px) clamp(16px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: radial-gradient(ellipse at 50% 15%, var(--surface), var(--wash));
}

/* 시안 시그널: 일상의 이동 장면과 앱 화면 */
[data-theme="signal"] .showcase {
    min-height: 0;
    aspect-ratio: 5 / 4;
    background: #bff0e4;
}
[data-theme="signal"] .signal-scene {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-theme="signal"] :is(.hero-screen, .phone-frame) {
    --device-rim: clamp(4px, .8vw, 8px);
    --device-side-rim: var(--device-rim);
    --device-top: clamp(12px, 2vw, 20px);
    --device-radius: clamp(13px, 2.4vw, 27px);
    display: block;
    padding: var(--device-top) var(--device-side-rim) var(--device-rim);
    overflow: visible;
    border: 1px solid #40585b;
    border-radius: var(--device-radius);
    background: linear-gradient(150deg, #28474a, #101f22 46%, #1a3335);
    box-shadow: inset 0 0 0 1px #e8fffa38, 0 22px 33px -15px #082d2bb0;
}
[data-theme="signal"] :is(.hero-screen, .phone-frame)::before {
    content: "";
    position: absolute;
    top: calc(var(--device-top) * .32);
    left: 50%;
    width: 18%;
    height: clamp(3px, .47vw, 5px);
    border-radius: 99px;
    background: #0c171b;
    box-shadow: inset 0 -1px #52716f;
    transform: translateX(-50%);
}
[data-theme="signal"] :is(.hero-screen, .phone-frame) img {
    width: 100%;
    height: auto;
    max-width: none;
    border: 0;
    border-radius: calc(var(--device-radius) - var(--device-rim) - 2px);
    box-shadow: none;
}
[data-theme="signal"] .hero-screen {
    /* 1px 외곽선을 포함한 좌우 테두리 폭을 절반으로 맞춘다. */
    --device-side-rim: calc((var(--device-rim) - 1px) / 2);
    width: clamp(64px, 25%, 165px);
}
[data-theme="signal"] .hero-screen-alt { z-index: 3; bottom: 15%; left: 25%; transform: rotate(-12deg); }
[data-theme="signal"] .hero-screen-main { bottom: 10.5%; right: 24%; transform: rotate(9deg); }
[data-theme="signal"] .phone-frame {
    position: relative;
    flex: 0 1 274px;
    min-width: 0;
}
[data-theme="signal"] .more-media .shots { width: min(100%, 274px); }

[data-theme="signal"] .feature-chapters {
    padding-top: clamp(30px, 4.5vw, 62px);
    border-top: 1px solid var(--line);
}
[data-theme="signal"] .chapters { margin-bottom: clamp(28px, 4vw, 48px); }
[data-theme="signal"] .chapters-inner {
    gap: clamp(5px, 1.3vw, 18px);
    padding: 0;
    border: 0;
    background: transparent;
}
[data-theme="signal"] .chapters a {
    min-height: 68px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
[data-theme="signal"] .chapters a:is(:hover, [aria-current]) {
    border-color: var(--line-strong);
    background: var(--raised);
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--fg-2);
}
.carousel-controls button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}
.carousel-controls button:hover { background: var(--raised); }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.carousel-counter { min-width: 43px; text-align: center; font: .875rem var(--mono); }
[data-theme="signal"] [data-screen-carousel] .shots { touch-action: pan-y pinch-zoom; }
[data-theme="signal"] .cta { margin-bottom: clamp(28px, 5vw, 56px); }

@keyframes enter-section {
    from { opacity: .48; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes signal-phone-rise {
    from { opacity: 0; translate: 0 64px; scale: .96; }
    to { opacity: 1; translate: 0 0; scale: 1; }
}

[data-motion="on"] .animate-section :is(.feature-copy, .feature-media),
[data-motion="on"] :is(.overview, .more, .how, .faq, .cta).animate-section > .eyebrow + h2 {
    animation: enter-section 560ms var(--ease) both;
}
[data-motion="on"] .animate-section .feature-media { animation-delay: 85ms; }

[data-theme="signal"][data-motion="on"] .hero-screen {
    animation: signal-phone-rise 980ms var(--ease) both;
}
[data-theme="signal"][data-motion="on"] .hero-screen-main { animation-delay: 40ms; }
[data-theme="signal"][data-motion="on"] .hero-screen-alt { animation-delay: 170ms; }
[data-theme="signal"][data-motion="on"] [data-screen-slide] {
    animation: enter-section 340ms var(--ease) both;
}
[data-motion="off"] { scroll-behavior: auto; }
[data-motion="off"] :is(.faq details[open] .answer, .quiz-explain, .quiz-result) { animation: none; }

@media (max-width: 880px) {
    .site-header { min-height: 65px; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); }
    .hero h1,
    html[lang="ko"] .hero h1 { font-size: clamp(2.5rem, 9vw, 4.25rem); }
    .showcase { min-height: clamp(305px, 72vw, 445px); }
    .feature, .feature.no-media { min-height: 0; }
    .feature.is-flip .feature-media { order: 0; }
}

@media (max-width: 1120px) {
    .instagram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .instagram-grid { grid-template-columns: minmax(0, 540px); }
}

@media (max-width: 680px) {
    .site-header { flex-wrap: wrap; justify-content: space-between; row-gap: 0; padding-top: 10px; }
    .site-links { order: 1; flex: 0 0 100%; justify-content: center; margin-left: 0; }
    .stores > li { flex-basis: 146px; }
    .store { min-width: 0; }
    .more-media { flex-direction: column; }
    .chapters { width: 100%; padding-inline: var(--gutter); }
}

@media (max-width: 359px) {
    .stores > li { flex-basis: 125px; }
    .stores .store .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
}
