/* 홈(/, /en/) 전용. 다른 페이지는 landing.css 를 계속 쓴다.
   틀은 듀오링고 홈의 구성을 따랐다 — 그림 + 짧은 제목 + 큰 버튼, 띠 하나,
   그림과 글이 번갈아 나오는 네 칸, 다운로드, 진한 유료 칸, 물결 바닥.
   글·그림·색은 전부 우리 것(FigmaColors, 앱 에셋)이다. */

:root {
  --p: #5b52ff;
  --p-deep: #4038d6;
  --p-light: #c9c5ff;
  --y: #ffc800;
  --y-deep: #e0a800;
  --ink: #1f2024;
  --night: #16133f;
  --head: #3c3c46;
  --gray: #777a85;
  --line: #e5e5ea;
  --max: 980px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--head);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 17px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* 버튼 — 넓고 두툼하게, 아래 두께 4px */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 14px; border: 2px solid transparent;
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .3px; text-decoration: none;
  cursor: pointer; transition: filter .12s ease, transform .08s ease, box-shadow .08s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: none !important; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn--p { background: var(--p); color: #fff; box-shadow: 0 4px 0 var(--p-deep); }
.btn--o { background: #fff; color: var(--p); border-color: var(--line); box-shadow: 0 4px 0 var(--line); }
.btn--y { background: var(--y); color: var(--ink); box-shadow: 0 4px 0 var(--y-deep); }
.btn--store { background: #fff; color: var(--head); border-color: var(--line); box-shadow: 0 4px 0 var(--line); min-height: 58px; text-align: left; line-height: 1.2; }
.btn--store small { display: block; font-size: 11px; font-weight: 600; color: var(--gray); }
.btn--wide { width: 100%; max-width: 330px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; }

/* 내비 */
.nav { position: sticky; top: 0; z-index: 40; background: #fff; }
.nav.is-scrolled { box-shadow: 0 2px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 6px; height: 70px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 26px; letter-spacing: -1px; color: var(--p); text-decoration: none; }
.nav__logo img { width: 38px; height: 38px; border-radius: 11px; }
.nav__spacer { flex: 1; }
.nav__link { padding: 8px 12px; font-size: 15px; font-weight: 700; color: var(--gray); text-decoration: none; }
.nav__link:hover { color: var(--head); }
.nav .btn { min-height: 42px; padding: 0 18px; }
@media (max-width: 640px) { .nav__link { display: none; } .nav__logo { font-size: 22px; } }

.langbar--innav { flex: none; }
.langbar__wrap { position: relative; }
.langbar__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; background: none; color: var(--gray); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.langbar__btn:hover { color: var(--head); }
.langbar__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.langbar__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 140px; padding: 6px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.langbar__menu a { display: block; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--gray); text-decoration: none; }
.langbar__menu a:hover { background: #f4f3ff; color: var(--head); }
.langbar__menu a[aria-current] { color: var(--p); }
@media (max-width: 640px) { .langbar__btn span { display: none; } }

/* 그림 묶음 — 우리 앱 에셋을 겹쳐 놓는다 */
.art { position: relative; }
.art img, .art .tile { position: absolute; }
.art .tile { display: grid; place-items: center; background: var(--ink); border-radius: 22%; }
.art .tile img { position: static; width: 64%; }
.bob { animation: bob 5s ease-in-out infinite; }
.bob--2 { animation-delay: -1.6s; } .bob--3 { animation-delay: -3.2s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }

/* 첫 화면 */
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - 70px - 74px); padding-block: 40px; }
.hero .art { width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; }
.hero h1 { font-size: clamp(30px, 3.4vw, 38px); line-height: 1.3; font-weight: 800; letter-spacing: -.8px; color: var(--head); text-align: center; }
.hero__btns { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; }
@media (max-width: 760px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 24px 56px; }
  .hero .art { max-width: 320px; }
}

/* 띠 — 듀오링고의 언어 줄 자리에 우리 프로그램 아홉 개 */
.strip { border-block: 2px solid var(--line); }
.strip__inner { display: flex; gap: 28px; overflow-x: auto; padding-block: 16px; scrollbar-width: none; justify-content: safe center; }
.strip__inner::-webkit-scrollbar { display: none; }
.strip__item { flex: none; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--gray); white-space: nowrap; }
.strip__item img { width: 34px; height: 34px; }

/* 번갈아 나오는 칸 */
.feat { padding-block: 110px 0; }
.feat__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat--flip .feat__copy { order: 2; }
.feat h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.2; letter-spacing: -1.5px; font-weight: 900; color: var(--p); }
.feat p { margin-top: 20px; font-size: 18px; color: var(--gray); max-width: 420px; }
.feat .art { width: 100%; max-width: 420px; aspect-ratio: 1 / 1.05; justify-self: center; }
.phone { position: absolute; padding: 7px; border-radius: 36px; background: var(--ink); aspect-ratio: 1206 / 2622; box-shadow: 0 6px 0 #c9c5ff; }
.phone img { position: static; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
@media (max-width: 760px) {
  .feat { padding-block: 72px 0; }
  .feat__inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feat--flip .feat__copy { order: 0; }
  .feat p { margin-inline: auto; }
  .feat .art { max-width: 340px; }
}

/* 어디서나 */
.anywhere { position: relative; overflow: hidden; margin-top: 130px; padding-block: 120px 140px; text-align: center; }
.anywhere h2 { position: relative; z-index: 2; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.15; letter-spacing: -2px; font-weight: 900; color: var(--night); }
.anywhere .stores { position: relative; z-index: 2; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.anywhere .bits img, .anywhere .bits .tile { position: absolute; }
.anywhere .bits .tile { display: grid; place-items: center; background: var(--ink); border-radius: 22%; }
.anywhere .bits .tile img { position: static; width: 62%; }
@media (max-width: 760px) { .anywhere { padding-block: 90px 110px; } .anywhere .bits > :nth-child(n+6) { display: none; } }

/* 후기 */
.voices { padding-block: 30px 110px; }
.voices h2 { text-align: center; font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; letter-spacing: -1px; color: var(--head); }
.voices__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.voice { padding: 26px; border-radius: 20px; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.voice .stars { display: flex; gap: 2px; margin-bottom: 12px; }
.voice .stars svg { width: 16px; height: 16px; fill: var(--y); }
.voice p { font-size: 16px; font-weight: 600; color: var(--head); }
.voice footer { margin-top: 12px; font-size: 13px; color: var(--gray); }
@media (max-width: 760px) { .voices__list { grid-template-columns: 1fr; } }

/* 유료 — 진한 남색 */
.plus { background: var(--night); color: #fff; padding-block: 110px; }
.plus__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.plus .art { width: 100%; max-width: 360px; aspect-ratio: 1 / 1.15; justify-self: center; }
.plus .phone { box-shadow: 0 6px 0 #3a3480; }
.plus__tag { display: inline-block; padding: 6px 12px; border-radius: 10px; background: var(--y); color: var(--ink); font-size: 14px; font-weight: 900; letter-spacing: .5px; }
.plus h2 { margin-top: 18px; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.15; letter-spacing: -1.6px; font-weight: 900; }
.plus h2 em { font-style: normal; color: var(--p-light); }
.plus p { margin-top: 18px; font-size: 18px; color: #c4c2e6; max-width: 420px; }
.plus .btn { margin-top: 32px; }
@media (max-width: 760px) { .plus__inner { grid-template-columns: 1fr; text-align: center; } .plus p { margin-inline: auto; } .plus .art { max-width: 280px; order: 2; } }

/* 자주 묻는 질문 */
.faq { padding-block: 110px 40px; }
.faq h2 { text-align: center; font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; letter-spacing: -1px; }
.faq__list { max-width: 720px; margin: 36px auto 0; display: grid; gap: 12px; }
.qa { border-radius: 16px; border: 2px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 17px; font-weight: 800; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-top: 6px; border-right: 3px solid var(--gray); border-bottom: 3px solid var(--gray); transform: rotate(45deg); transition: transform .2s ease; }
.qa[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.qa p { padding: 0 22px 20px; color: var(--gray); font-size: 16px; }

/* 마지막 + 물결 바닥 */
.end { padding-top: 90px; text-align: center; }
.end h2 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.15; letter-spacing: -2px; font-weight: 900; color: var(--p); }
.end .btn { margin-top: 32px; }
.end__stage { position: relative; height: 300px; margin-top: 40px; }
.end__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 190px; }
.end .art { position: absolute; left: 50%; bottom: 58px; width: 560px; max-width: 100%; height: 260px; transform: translateX(-50%); }
.foot { background: var(--p); color: #fff; padding-block: 40px 56px; font-size: 14px; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot h3 { font-size: 17px; font-weight: 900; margin-bottom: 12px; }
.foot__cols a { display: block; padding: 4px 0; color: #dcdaff; font-weight: 700; text-decoration: none; }
.foot__cols a:hover { color: #fff; }
.foot__biz { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .25); font-style: normal; display: flex; flex-wrap: wrap; gap: 6px 16px; color: #dcdaff; }
.foot__biz a { color: #fff; }
.foot__copy { margin-top: 10px; color: #c9c5ff; }
@media (max-width: 640px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { .bob { animation: none; } .btn { transition: none; } }

/* 띠 끝이 칼로 자른 듯 끊기지 않게 양 끝을 흐린다. */
.strip__inner { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); padding-inline: 32px; }
