/* landing.css — 자리영어 소개 홈페이지(algovoca.com 루트).
   시안: 1440px 프레임(@2x 2880) · 본문 폭 750px · 주황 #FF6D38
   설계: docs/superpowers/specs/2026-11-11-landing-redesign-design.md */

:root {
    --orange: #FF6D38;
    --orange-deep: #FF5A1F;
    --text: #1D1D1D;
    --text-2: #5C5C5C;
    --gray: #8B8381;
    --muted: #C4C4C4;
    --surface: #F6F6F6;
    --surface-2: #F3F4F6;
    --border: #EDEDED;
    --wrap: 1000px;  /* 2026-11-18 디자이너 요청: 750 → 1000 */
    --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: "Wanted Sans Variable", "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", system-ui, sans-serif;
    color: var(--text);
    background: #fff;
    letter-spacing: -0.02em;
    line-height: 1.5;
    word-break: keep-all;
    padding-top: var(--nav-h);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent; /* iOS 탭 시 회색 깜빡임 제거 — :active 효과만 보이게 */
}
img { display: block; max-width: 100%; height: auto; }
/* 텍스트 드래그 선택색 — 브라우저 기본 파랑 대신 브랜드 주황 */
::selection { background: rgba(255,109,56,.35); color: var(--text); }
::-moz-selection { background: rgba(255,109,56,.35); color: var(--text); }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
em { font-style: normal; color: var(--orange); }
.wrap { max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; }
.pc { display: inline; }
.mo { display: none; }

/* ── 공통 텍스트 ───────────────────────────────────────────────────────── */
.h2 {
    font-size: 48px; font-weight: 800; line-height: 1.25; letter-spacing: -0.03em;  /* 2026-11-18 디자이너 요청: 40 → 48 (PC) */
    text-align: center;
}
.sub { font-size: 24px; line-height: 1.6; color: var(--text-2); text-align: center; margin-top: 16px; }  /* 18 → 24 (PC) */

/* ── 상단 바(고정) ─────────────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    height: var(--nav-h); background: #fff;
    transition: box-shadow .2s ease, background .2s ease;
}
/* 스크롤 뒤: 반투명 흰 바탕 + 뒤 콘텐츠 blur(15px) */
.nav.is-scrolled {
    background: rgba(255,255,255,.55);
    -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px);
    box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 20px rgba(29,29,29,.06);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 36px; }
.nav__logo img { height: 26px; width: auto; }
.nav__cta {
    display: inline-flex; align-items: center; height: 36px; padding: 0 18px;
    background: var(--orange); color: #fff; font-size: 14px; font-weight: 700;
    border-radius: 999px; white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
}
/* 호버 효과는 마우스 기기에서만 — 터치 기기는 '누르는 동안(:active)'만 같은 효과 */
@media (hover: hover) { .nav__cta:hover { background: var(--orange-deep); transform: translateY(-1px); } }
.nav__cta:active { background: var(--orange-deep); transform: scale(.97); }

/* ── 1. 히어로 ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; text-align: center; }
.hero__txt { position: relative; z-index: 3; padding-top: 36px; }
.hero__title { font-size: 58px; font-weight: 800; line-height: 1.2; letter-spacing: -0.04em; }
.hero__sub { margin-top: 24px; font-size: 22px; color: var(--text-2); }
.hero__art { position: relative; z-index: 1; margin-top: -150px; display: flex; justify-content: center; }
.hero__stage { position: relative; width: 1300px; flex: none; aspect-ratio: 1462 / 794; overflow: hidden; }
.hero__stage img { position: absolute; height: auto; max-width: none; }
.hero__glow { position: absolute; inset: -10% 0; background: radial-gradient(ellipse 34% 48% at 50% 60%, rgba(255,106,64,.07), rgba(255,106,64,0) 70%); }
.hero__phone { left: 36.66%; top: 28.2%; width: 26.68%; }
.hero__fox   { left: 57.18%; top: 56.4%; width: 19.97%; }
.hero__bubble { position: absolute; z-index: 2; pointer-events: none; filter: drop-shadow(0 18px 30px rgba(255,109,56,.14)); }
.hero__bubble--l { width: 205px; left: calc(50% - 480px); top: 270px; animation: float-l 5.5s ease-in-out infinite; }
.hero__bubble--r { width: 285px; left: calc(50% + 250px); top: 80px; animation: float-r 6.5s ease-in-out -2.2s infinite; }
@keyframes float-l {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-16px) rotate(-3deg); }
}
@keyframes float-r {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-20px) rotate(3deg); }
}

/* ── 2. 앞자리 조립(세로 피커 2개 — 직접 스와이프) ───────────────────────── */
.s2 { padding-top: 170px; }
.picker-card {
    --ih: 72px;      /* 칸 간격(한 줄 높이) */
    --bh: 104px;     /* 가운데 박스 높이 — 칸 간격보다 커서 위아래 여백이 넓다 */
    --spread: 16px;  /* 박스가 칸보다 큰 만큼 이웃 칸을 위/아래로 밀어내는 거리 = (bh - ih) / 2 */
    --shift: 18px;   /* 선택된 글자를 라벨 아래로 내리는 거리 */
    --ph: calc(var(--ih) * 5 + var(--spread) * 2);  /* 피커 높이(5칸 + 밀려난 여백) */
    position: relative; margin-top: 50px; padding: 32px 28px;
    background: var(--surface); border-radius: 32px;
    /* 카드 안 콘텐츠는 760px 까지만(PC 에서 너무 넓지 않게). 열 폭은 박스 폭 비율(앞자리 짧게 · 하고 싶은 말 길게),
       박스 좌우 여백은 15px 로 같게 → + 가 두 박스의 정중앙 */
    display: grid; grid-template-columns: minmax(0, 292px) 44px minmax(0, 404px); justify-content: center;
    align-items: center; column-gap: 10px;
}
.picker {
    --box-w: calc(100% - 30px);
    position: relative; height: var(--ph); outline: none;
    touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
}
.picker:active { cursor: grabbing; }
.picker__box {
    position: absolute; left: 50%; top: 50%; width: var(--box-w); height: var(--bh);
    transform: translate(-50%, -50%); pointer-events: none;
    background: #fff; border: 1.5px solid #D9D9D9; border-radius: 16px;
    transition: box-shadow .2s ease;
}
.picker--front .picker__box {
    background: var(--orange); border-color: var(--orange);
    box-shadow: 0 8px 22px rgba(255,109,56,.22);
}
.picker:focus-visible .picker__box { box-shadow: 0 0 0 3px rgba(255,109,56,.35); }
.picker__label {
    position: absolute; left: 0; right: 0; top: 16px; text-align: center;
    font-size: 20px; line-height: 1; font-weight: 500; color: var(--text-2); letter-spacing: -0.02em;
}
.picker--front .picker__label { color: rgba(255,255,255,.92); }
.picker__view {
    position: absolute; inset: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.picker__list { padding: calc((var(--ph) - var(--ih)) / 2) 0; will-change: transform; }
.picker__item {
    height: var(--ih); display: flex; align-items: center; justify-content: center;
    font-size: 23px; font-weight: 600; color: var(--text-2); letter-spacing: -0.02em; white-space: nowrap;
    transition: color .2s ease, font-size .2s ease;  /* transform(이웃 밀어내기·라벨 아래로 내리기)은 JS 가 매 프레임 계산 */
}
.picker__item.is-active { color: var(--text); font-size: 24px; font-weight: 700; }
.picker--front .picker__item.is-active { color: #fff; }
.picker__plus {
    width: 30px; height: 30px; border-radius: 999px; background: var(--orange); position: relative; justify-self: center;
}
.picker__plus::before, .picker__plus::after {
    content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px;
    transform: translate(-50%, -50%);
}
.picker__plus::before { width: 14px; height: 3px; }
.picker__plus::after  { width: 3px; height: 14px; }

/* 조립 결과 카드 */
.combo {
    margin-top: 20px; padding: 26px 20px; text-align: center;
    background: #FFF7F2; border: 1px solid #FFDCCB; border-radius: 20px;
}
.combo__en { font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; }
.combo__ko { margin-top: 6px; font-size: 16px; color: var(--text-2); }
.combo.is-pop .combo__in { animation: combo-pop .35s ease; }
@keyframes combo-pop {
    0%   { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: none; }
}

/* ── 3. 한글 발음 ──────────────────────────────────────────────────────── */
.s3 { padding-top: 160px; }
.s3__art { width: min(560px, 100%); margin: 50px auto 0; }

/* ── 4. 원어민 영상(마퀴) ──────────────────────────────────────────────── */
.s4 { margin-top: 128px; background: var(--surface-2); padding: 140px 0 130px; }
.reel { position: relative; margin-top: 46px; padding: 66px 0; overflow: hidden; }
.reel__rows { display: flex; flex-direction: column; gap: 22px; }
.reel__stage {
    position: absolute; left: 50%; top: 0; width: 400px; aspect-ratio: 1070 / 1142; transform: translateX(-50%); z-index: 2;
    pointer-events: none;
}
.reel__stage img { position: absolute; height: auto; }
.reel__phonebg { left: 23.83%; top: 0; width: 52.34%; }
.reel__gif { left: 17.94%; top: 27.32%; width: 63.55%; border-radius: 6px; }
.reel__bubble--call { left: 39.63%; top: 19.61%; width: 60%; }
.reel__bubble--okay { left: 0; top: 36.43%; width: 32.52%; }
.marq { display: flex; overflow: hidden; width: 100%; }
.marq__track {
    display: flex; gap: 20px; flex: none; padding-right: 20px;
    animation: marq 70s linear infinite;
}
.marq--right .marq__track { animation-direction: reverse; }
.marq img { height: 136px; width: auto; border-radius: 10px; opacity: .55; flex: none; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ── 5. 선생님 ─────────────────────────────────────────────────────────── */
.s5 { padding: 160px 0 130px; }
.teachers { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 50px; }
.tcard { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; border-radius: 28px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) { .tcard:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(29,29,29,.12); } }
.tcard:active { transform: scale(.98); box-shadow: 0 10px 24px rgba(29,29,29,.12); }
.tcard img { width: 100%; }

/* ── 6. 다운로드 CTA ───────────────────────────────────────────────────── */
.cta {
    position: relative; min-height: 527px; display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff; padding: 80px 20px;
    background: #2b2b2b url("../img/landing/cta_bg.jpg") center / cover no-repeat;
    scroll-margin-top: var(--nav-h);
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.cta__in { position: relative; z-index: 1; }
.cta__title { font-size: 36px; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; }
.cta__sub { margin-top: 20px; font-size: 22px; font-weight: 500; line-height: 1.5; }
.stores { display: flex; justify-content: center; gap: 20px; margin-top: 56px; flex-wrap: wrap; }
.stores a { display: block; transition: transform .15s ease; }
@media (hover: hover) { .stores a:hover { transform: translateY(-2px); } }
.stores a:active { transform: scale(.96); }
.stores img { height: 48px; width: auto; }

/* ── 푸터 ──────────────────────────────────────────────────────────────── */
.foot { background: #1F1F1F; color: #B8B2AD; padding: 44px 0 48px; font-size: 12px; line-height: 1.9; }
.foot__links { display: flex; gap: 18px; margin-bottom: 18px; }
.foot__links a { color: #EDE8E3; font-weight: 600; font-size: 13px; }
.foot__biz b { color: #fff; }
.foot__biz a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot__copy { margin-top: 16px; color: var(--gray); }

/* ── 스크롤 등장 ───────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .hero__bubble, .marq__track { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ── 태블릿(≤1100) ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
    .hero__bubble--l { left: 1%; }
    .hero__bubble--r { left: auto; right: 0; }
}

/* ── 모바일(≤760) ──────────────────────────────────────────────────────── */
@media (max-width: 760px) {
    :root { --nav-h: 56px; }
    .pc { display: none; }
    .mo { display: inline; }
    .nav__in { padding: 0 16px; }
    .nav__logo img { height: 26px; }
    .nav__cta { height: 40px; padding: 0 18px; font-size: 16px; }
    .h2 { font-size: 27px; }
    .sub { font-size: 15px; margin-top: 12px; }

    .hero__txt { padding-top: 28px; }
    .hero__title { font-size: 40px; }
    .hero__sub { margin-top: 16px; font-size: 16px; }
    .hero__art { margin-top: -92px; }
    /* 폰+여우 묶음(상대 위치는 유지)을 무대 가운데로 옮겨 360px 화면에서도 여우가 안 잘린다. */
    .hero__stage { width: 200vw; max-width: 800px; }
    .hero__phone { left: 36.66%; }                       /* 데스크톱과 같은 가운데 */
    .hero__fox   { left: 57.2%; top: 64%; width: 16%; }  /* 루미 축소, 발 위치·폰과의 간격 유지 */
    .hero__bubble--l { width: 76px; left: 20px; top: 222px; }
    .hero__bubble--r { width: 108px; right: 14px; top: 120px; }

    .s2 { padding-top: 90px; }
    .picker-card {
        --ih: 52px; --bh: 66px; --spread: 7px; --shift: 9px;
        margin-top: 30px; padding: 16px 10px; border-radius: 24px;
        grid-template-columns: 1fr 26px 1fr; justify-content: stretch; column-gap: 4px;
    }
    .picker { --box-w: 100%; }
    .picker__box { border-radius: 12px; }
    .picker__label { top: 8px; font-size: 12px; }
    .picker__item { font-size: clamp(12px, 3.5vw, 16px); letter-spacing: -0.03em; }
    .picker__item.is-active { font-size: clamp(13px, 3.7vw, 17px); }
    .picker__plus { width: 22px; height: 22px; }
    .picker__plus::before { width: 10px; height: 2px; }
    .picker__plus::after  { width: 2px; height: 10px; }
    .combo { margin-top: 12px; padding: 18px 14px; border-radius: 16px; }
    .combo__en { font-size: 19px; }
    .combo__ko { margin-top: 4px; font-size: 13px; }

    .s3 { padding-top: 90px; }
    .s3__art { margin-top: 30px; }

    .s4 { margin-top: 80px; padding: 80px 0 70px; }
    .reel { margin-top: 24px; padding: 26px 0; }
    .reel__rows { gap: 14px; }
    .reel__stage { width: 240px; }
    .marq img { height: 96px; border-radius: 8px; }
    .marq__track { gap: 12px; padding-right: 12px; }

    .s5 { padding: 90px 0 70px; }
    .teachers { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
    .tcard { border-radius: 16px; }

    .cta { min-height: 420px; padding: 64px 20px; }
    .cta__title { font-size: 26px; }
    .cta__sub { margin-top: 14px; font-size: 16px; }
    .stores { margin-top: 36px; gap: 12px; }
    .stores img { height: 44px; }

    .foot { padding: 32px 0 36px; }
}
