/* Playlingo site — shared styles (ko / en) */
:root {
  --brand: #7563ff;
  --brand-2: #5b45e6;
  --green: #ff6b5b;
  --yellow: #ffc93c;
  --bg: #f7f7fc;
  --bg-2: #eeedfb;
  --card: #ffffff;
  --text: #15172e;
  --muted: #5f6385;
  --line: color-mix(in oklab, var(--brand) 14%, transparent);
  --shadow: 0 20px 60px -24px color-mix(in oklab, var(--brand-2) 45%, transparent);
  --radius: 22px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1024;
    --bg-2: #15183a;
    --card: #1a1d40;
    --text: #f2f3ff;
    --muted: #a3a7cc;
    --line: color-mix(in oklab, #ffffff 10%, transparent);
    --shadow: 0 20px 60px -24px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.lang-btn {
  font-size: .85rem; font-weight: 700; text-decoration: none;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.lang-btn:hover { color: var(--text); border-color: var(--brand); }
@media (max-width: 760px) { .nav-links { display: none; } .lang-btn { margin-left: auto; } }

/* ── buttons ── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 16px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-play { background: #111327; color: #fff; box-shadow: 0 10px 30px -12px rgb(0 0 0 / .5); }
.btn-play svg { width: 22px; height: 22px; }
.btn-play small { display: block; font-size: .7rem; font-weight: 600; opacity: .7; line-height: 1.1; }
.btn-play span { line-height: 1.15; text-align: left; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-play { background: #fff; color: #111327; } }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); }

/* ── hero ── */
.hero { position: relative; overflow: clip; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 120%;
  background:
    radial-gradient(40% 50% at 78% 30%, color-mix(in oklab, var(--brand) 38%, transparent), transparent 70%),
    radial-gradient(30% 40% at 18% 10%, color-mix(in oklab, var(--green) 22%, transparent), transparent 70%);
  filter: blur(20px); z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: color-mix(in oklab, var(--brand) 12%, var(--card)); color: var(--brand-2);
  border: 1px solid color-mix(in oklab, var(--brand) 25%, transparent);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: #c7beff; } }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in oklab, var(--green) 25%, transparent); }
h1 {
  font-size: clamp(2.3rem, 5.6vw, 4rem); line-height: 1.12; letter-spacing: -.035em;
  margin: 20px 0 18px; font-weight: 800;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand) 10%, #c066ff 55%, var(--green) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); margin: 0 0 30px; max-width: 34em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.facts b { color: var(--text); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.phone {
  width: min(290px, 70vw); aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 50% { transform: rotate(-3deg) translateY(-12px); } }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 16px; font-weight: 700; font-size: .9rem;
  background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line);
  animation: float2 6s ease-in-out infinite;
}
.chip span { font-size: 1.4rem; line-height: 1; }
.chip.c1 { top: 12%; left: 0; }
.chip.c2 { top: 46%; right: -4%; animation-delay: -2s; }
.chip.c3 { bottom: 8%; left: 6%; animation-delay: -4s; }
@keyframes float2 { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; }
  .chip.c2 { right: 0; }
}

/* ── language strip ── */
.langs { border-block: 1px solid var(--line); background: var(--card); }
.langs .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 34px; padding: 22px 0; }
.langs p { margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }
.lang-item { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.lang-item span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  font-size: 1rem; font-weight: 800; line-height: 1; color: #fff;
  background: linear-gradient(140deg, var(--brand), #4fa3ff);
}
.lang-item:nth-of-type(even) span { background: linear-gradient(140deg, #ff6b5b, #ff9f5b); }

/* ── sections ── */
section { padding: 96px 0; }
.eyebrow { color: var(--brand); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: #a99dff; } }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.2; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 44px; max-width: 40em; font-size: 1.05rem; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } section { padding: 72px 0; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
  background: color-mix(in oklab, var(--brand) 12%, transparent); margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ── card evolution ── */
.evo-sec { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.evo { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; position: relative; }
.evo::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 46px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand), var(--green)); opacity: .35;
}
.evo div { position: relative; text-align: center; font-weight: 700; font-size: .95rem; }
.evo span {
  display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 12px;
  font-size: 2.6rem; border-radius: 26px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (max-width: 700px) {
  .evo { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .evo::before { display: none; }
  .evo span { width: 76px; height: 76px; font-size: 2.1rem; }
}

/* ── gallery ── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; width: min(var(--max), 100% - 32px); margin-inline: auto; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line); background: var(--bg-2);
}
.swipe-hint { display: none; }
@media (max-width: 900px) {
  .gallery {
    display: flex; gap: 16px; width: auto; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 8px 16px 24px; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 auto; width: min(64vw, 300px); scroll-snap-align: start; }
  .swipe-hint { display: block; }
}

/* ── plans ── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin-inline: auto; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.plan h3 { margin: 0 0 4px; font-size: 1.3rem; }
.plan .tag { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--green); font-weight: 900; }
.plan.pro {
  border: 0; color: #fff;
  background: linear-gradient(140deg, #7563ff, #5b45e6 55%, #3a2fb8);
  box-shadow: 0 30px 70px -30px #5b45e6;
}
.plan.pro .tag { color: rgb(255 255 255 / .75); }
.plan.pro li::before { color: var(--yellow); }
.note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 18px; }

/* ── faq ── */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1.02rem;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.faq a { color: var(--brand); }

/* ── contact ── */
.contact {
  border-radius: 32px; padding: 56px 32px; text-align: center; color: #fff;
  background:
    radial-gradient(60% 80% at 85% 0%, rgb(255 107 91 / .35), transparent 60%),
    linear-gradient(135deg, #7563ff, #4b3bd6);
  box-shadow: 0 40px 80px -40px #5b45e6;
}
.contact h2 { color: #fff; }
.contact p { color: rgb(255 255 255 / .82); margin: 0 auto 28px; max-width: 34em; }
.contact .btn { background: #fff; color: #3a2fb8; }
.contact .mail { display: block; margin-top: 16px; font-size: .9rem; color: rgb(255 255 255 / .75); }

/* ── footer ── */
footer { padding: 48px 0 56px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }

/* ── reveal on scroll (progressive) ── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(28px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* situations (Playlingo) */
.evo.sit::before { display: none; }
.evo.sit span { font-size: 2.3rem; }

/* ── language menu / toast / per-language fonts (i18n) ── */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 700; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--text); border-color: var(--brand); }
.lang-menu summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 168px;
  list-style: none; margin: 0; padding: 6px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lang-menu a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.lang-menu a:hover { background: color-mix(in oklab, var(--brand) 10%, transparent); }
.lang-menu a[aria-current="page"] { color: var(--brand); }
.lang-menu a[aria-current="page"]::after { content: " ✓"; }
@media (max-width: 760px) { .lang-menu { margin-left: auto; } }

.foot-langs { flex-basis: 100%; gap: 6px 16px !important; font-size: .85rem; }

.lang-toast {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 18px; border-radius: 999px;
  background: #15172e; color: #fff; box-shadow: 0 16px 40px -12px rgb(0 0 0 / .5); max-width: calc(100% - 32px);
}
.lang-toast[hidden] { display: none; }
.lang-toast a { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.lang-toast button { border: 0; background: transparent; color: rgb(255 255 255 / .7); font-size: 1.3rem; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.lang-toast button:hover { background: rgb(255 255 255 / .12); color: #fff; }

html:not(:lang(ko)) body { word-break: normal; }
html:lang(ja) body { font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', Meiryo, sans-serif; line-break: strict; }
html:lang(zh-CN) body { font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; }
html:lang(zh-TW) body { font-family: 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif; }
html:lang(vi) body, html:lang(fr) body, html:lang(en) body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
