/* ==========================================================================
   ivLyrics — landing (ivlis.kr/ivLyrics) + guide (ivlis.kr/ivLyrics/wiki)
   The ivLis STUDIO portfolio's design language: white pages, flat colours (no gradients), bold type and
   springy motion. ivLyrics keeps the purple the portfolio already uses for it; the player mock is dark like the app.
   ========================================================================== */

:root {
  --grey50: #f9fafb; --grey100: #f2f4f6; --grey200: #e5e8eb; --grey300: #d1d6db; --grey400: #b0b8c1;
  --grey500: #8b95a1; --grey600: #6b7684; --grey700: #4e5968; --grey800: #333d4b; --grey900: #191f28;
  --blue50: #e8f3ff; --blue100: #c9e2ff; --blue300: #64a8ff; --blue500: #3182f6; --blue600: #2272eb; --blue700: #1b64da;
  --green50: #e9f9f1; --green500: #03b26c; --green600: #029359;
  --red50: #ffeeee; --red500: #f04452;
  --yellow50: #fff4d6; --yellow500: #ffc342; --yellow700: #8a6000;
  --coral: #ff6259; --mint: #3fd3a8;
  --ly: #5b47e0; --ly600: #4b38cf; --ly700: #3f2fb4; --ly50: #efedff; --ly100: #dcd7ff;
  --app: #17171f; --app2: #23232e; --app-text: #f5f5f8; --app-dim: #9d9db0; --pron: #a9c8ff; --tr: #ffd36e;

  --text: var(--grey900); --text-2: var(--grey700); --text-3: var(--grey600);
  --f: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --f-ja: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', 'Noto Sans CJK JP', var(--f);
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --nav-h: 64px; --gutter: clamp(20px, 5vw, 72px); --maxw: 1180px;
  --r-xl: 32px; --r-l: 24px; --r-m: 18px;
  --shadow-s: 0 2px 10px rgba(2, 32, 71, .07); --shadow-m: 0 14px 34px rgba(2, 32, 71, .11); --shadow-l: 0 34px 80px rgba(2, 32, 71, .17);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.4, .64, 1); --bounce: cubic-bezier(.34, 1.8, .64, 1);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.05, 0.173, 0.335, 0.51 10%, 0.676, 0.821, 0.938, 1.025 20%, 1.083, 1.115, 1.126, 1.122 30%, 1.108, 1.088, 1.066, 1.045 40%, 1.026, 1.01, 0.999, 0.991 50%, 0.986, 0.984, 0.984, 0.986 60%, 0.988, 0.991, 0.994, 0.996 70%, 0.998, 1, 1.001, 1.002 80%, 1.002, 1.001, 1);
    --bounce: linear(0, 0.041, 0.15, 0.305, 0.485 8.3%, 0.671, 0.848, 1.002, 1.126 16.7%, 1.217, 1.273, 1.296, 1.292 25%, 1.265, 1.223, 1.171, 1.115 33.3%, 1.062, 1.013, 0.973, 0.943 41.7%, 0.923, 0.913, 0.912, 0.918 50%, 0.929, 0.944, 0.96, 0.977 58.3%, 0.992, 1.004, 1.014, 1.021 66.7%, 1.025, 1.026, 1.025, 1.022 75%, 1.018, 1.013, 1.008, 1.004 83.3%, 1, 0.997, 0.994, 0.993 91.7%, 0.992, 0.993, 1);
  }
}

/* ---------------------------------------------------------------- reset + base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #fff; color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body { font-family: var(--f); font-size: 17px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
b, strong { font-weight: 700; }
em { font-style: normal; }
::selection { background: var(--ly100); color: var(--grey900); }
:focus-visible { outline: 3px solid var(--blue300); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 400; padding: 12px 18px; border-radius: 12px; background: var(--grey900); color: #fff; font-weight: 700; transition: top .3s var(--ease-out); }
.skip:focus { top: 16px; }
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
[lang='ja'], .ja { font-family: var(--f-ja); }

/* one page, two languages: every text comes as a KO/EN pair and only the chosen one shows */
html[data-lang='en'] [data-l='ko'], html:not([data-lang='en']) [data-l='en'] { display: none !important; }

/* type */
.eyebrow { margin-bottom: 14px; font-size: 17px; font-weight: 700; color: var(--ly); letter-spacing: -.01em; }
.eyebrow--light { color: #fff; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.lead { margin-top: 16px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--grey600); }
.sec { padding: clamp(96px, 12vw, 170px) 0 0; }
.sec__head { margin-bottom: clamp(36px, 5vw, 64px); }

/* reveal on scroll (the module adds .is-in; .no-boot shows everything if it never ran) */
.js [data-reveal] { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .6s var(--ease-out), transform 1s var(--spring); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in, .no-boot [data-reveal] { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- pills (Toss style: label + dark round arrow) */
.pill { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 22px; border-radius: 999px; background: var(--grey100); color: var(--grey900); font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: transform .6s var(--bounce), background-color .2s, box-shadow .3s, color .2s; }
.pill:hover { background: var(--grey200); }
.pill:active { transform: scale(.93); transition: transform .12s var(--ease-out); }
.pill__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grey900); color: #fff; transition: transform .6s var(--bounce); }
.pill__icon svg { width: 18px; height: 18px; }
.pill:hover .pill__icon { transform: translateX(3px) rotate(-8deg) scale(1.06); }
.pill--plain { padding: 0 22px; }
.pill--white { background: #fff; }
.pill--white:hover { background: var(--grey50); box-shadow: 0 10px 26px rgba(20, 8, 70, .22); }
.pill--dark { background: var(--grey900); color: #fff; }
.pill--dark:hover { background: var(--grey800); }
.pill--dark .pill__icon { background: #fff; color: var(--grey900); }
.pill--ly { background: var(--ly); color: #fff; }
.pill--ly:hover { background: var(--ly600); }
.pill--ly .pill__icon { background: #fff; color: var(--ly); }
.pill--line { padding: 0 22px; background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .78); }
.pill--line:hover { background: rgba(255, 255, 255, .14); }
.pill--lg { height: 62px; padding: 0 10px 0 28px; font-size: 20px; }
.pill--lg .pill__icon { width: 44px; height: 44px; }
.pill--sm { height: 44px; padding: 0 6px 0 16px; font-size: 15px; gap: 9px; }
.pill--sm .pill__icon { width: 32px; height: 32px; }
.pill--sm.pill--plain { padding: 0 16px; }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); transition: transform .7s var(--spring), box-shadow .3s; }
.nav.is-hidden { transform: translateY(-104%); transition: transform .45s var(--ease-out), box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--grey200); }
.nav__in { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 96px); display: flex; align-items: center; gap: 16px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 21px; line-height: 1; letter-spacing: -.025em; white-space: nowrap; transition: transform .6s var(--bounce); }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.brand b { font-weight: 800; }
.brand__sub { margin-left: -4px; font-weight: 250; }
.brand:hover { transform: rotate(-3deg) scale(1.04); }
.nav__links { display: flex; gap: 4px; margin: 0 auto; }
.nav__links a { padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--grey700); transition: background-color .2s, color .2s; }
.nav__links a:hover { background: var(--grey100); color: var(--grey900); }
.nav__links a.is-active, .nav__links a[aria-current='page'] { color: var(--ly); }
.nav__act { flex-shrink: 0; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__guide { display: none; height: 36px; align-items: center; padding: 0 12px; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--grey800); }
.lang { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--grey100); }
.lang button { height: 32px; min-width: 38px; padding: 0 9px; border-radius: 9px; font-size: 13px; font-weight: 800; color: var(--grey500); transition: background-color .2s, color .2s, transform .5s var(--bounce); }
.lang button[aria-pressed='true'] { background: #fff; color: var(--grey900); box-shadow: var(--shadow-s); }
.lang button:active { transform: scale(.88); }
.gh { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--grey900); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; transition: transform .5s var(--bounce), background-color .2s; }
.gh:hover { background: var(--grey800); transform: translateY(-1px); }
.gh:active { transform: scale(.92); transition-duration: .1s; }
.gh svg { width: 18px; height: 18px; }
.gh__stars { font-weight: 700; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   LANDING — hero stage (purple, like the ivLyrics screen in the portfolio)
   ========================================================================== */
.hero { padding: var(--nav-h) 16px 0; }
.stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(28px, 4vw, 64px); min-height: max(600px, calc(100svh - var(--nav-h) - 16px)); padding: clamp(48px, 6vw, 96px) clamp(24px, 6vw, 96px); border-radius: var(--r-xl); background: var(--ly); color: #fff; overflow: hidden; }
.hero__copy { position: relative; z-index: 2; min-width: 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px; background: #fff; color: var(--grey900); font-size: 15px; font-weight: 700; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ly); animation: dot 1.6s var(--ease-out) infinite; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(91, 71, 224, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(91, 71, 224, 0); } }
.hero__title { margin: 22px 0 18px -.04em; font-size: clamp(44px, 5.6vw, 84px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
.hero__title .w { display: inline-block; }
.js .hero__title .w { animation: wordIn 1s var(--bounce) both; animation-delay: var(--d, 0s); }
@keyframes wordIn { from { opacity: 0; transform: translateY(40%) scale(.6) rotate(-6deg); } }
.hero__sub { max-width: 24em; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3.4vh, 36px); }
.hero__os { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.hero__os li { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.news { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; margin-top: 18px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .96); color: var(--grey800); font-size: 14px; font-weight: 600; box-shadow: 0 6px 18px rgba(20, 8, 70, .18); transition: background-color .2s, transform .5s var(--bounce); animation: popIn .8s var(--bounce) both; }
.news:hover { background: #fff; transform: translateY(-2px); }
.news__tag { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; background: var(--ly); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.news__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news__go { flex-shrink: 0; color: var(--grey500); font-weight: 700; }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.8); } }

/* floating letter stickers ("in your language"): they bob, lean toward the pointer and pop when tapped */
.stickers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.st { position: absolute; left: var(--x); top: var(--y); width: calc(66px * var(--s, 1)); height: calc(66px * var(--s, 1)); pointer-events: auto; cursor: pointer; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform 1.1s var(--spring); -webkit-tap-highlight-color: transparent; }
.st i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: calc(22px * var(--s, 1)); background: var(--c, #fff); color: var(--t, var(--ly)); font-size: calc(30px * var(--s, 1)); font-weight: 800; font-style: normal; line-height: 1; transform: rotate(var(--r, 0deg)); box-shadow: inset 0 calc(-6px * var(--s, 1)) 0 rgba(0, 0, 0, .09); animation: bob var(--dur, 6s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.st--round i { border-radius: 50%; }
.st--pill { width: calc(104px * var(--s, 1)); }
.st--pill i { border-radius: 999px; font-size: calc(22px * var(--s, 1)); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(calc(var(--r, 0deg) * -.6)); } }
.st.is-off { visibility: hidden; pointer-events: none; }

/* ---------------------------------------------------------------- the player mock (dark like the app) */
.hero__demo { position: relative; z-index: 1; min-width: 0; display: grid; justify-items: center; }
.player { position: relative; width: 100%; max-width: 500px; padding: 18px; border-radius: 30px; background: var(--app); color: var(--app-text); box-shadow: 0 34px 80px rgba(20, 8, 70, .38); transform: rotate(1.6deg); transition: transform 1s var(--spring); }
.player:hover { transform: rotate(0deg) translateY(-4px); }
.player__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.cover { position: relative; width: 52px; height: 52px; overflow: hidden; border-radius: 14px; background: var(--coral); }
.cover::before { content: ''; position: absolute; left: 14%; top: 14%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow500); }
.cover::after { content: ''; position: absolute; right: 10%; bottom: 13%; width: 44%; height: 24%; border-radius: 999px; background: var(--grey900); }
.player.is-playing .cover::before { animation: sunBob 3.2s ease-in-out infinite; }
@keyframes sunBob { 50% { transform: translateY(-10%) scale(1.06); } }
.player__meta { min-width: 0; line-height: 1.35; }
.player__meta b { display: block; overflow: hidden; font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.player__meta span { font-size: 13px; font-weight: 600; color: var(--app-dim); }
.player__badge { padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .09); font-size: 12px; font-weight: 800; color: var(--app-dim); letter-spacing: .02em; }
.player__view { position: relative; height: 262px; margin: 14px -4px 10px; overflow: hidden; }
.player__lines { position: absolute; left: 4px; right: 4px; top: 0; will-change: transform; }
.ln { padding: 9px 0; opacity: .3; transform: scale(.9); transform-origin: 0 50%; cursor: pointer; transition: opacity .45s var(--ease-out), transform .8s var(--spring); }
.ln.is-now { opacity: 1; transform: none; }
.ln.is-past { opacity: .22; }
.ln:hover { opacity: .6; }
.ln.is-now:hover { opacity: 1; }
.ln__o { font-family: var(--f-ja); font-size: clamp(24px, 2.3vw, 31px); font-weight: 800; line-height: 1.55; letter-spacing: .01em; }
.ln__o rt { font-size: .38em; font-weight: 700; letter-spacing: 0; }
.player:not(.show-furi) .ln__o rt { display: none; }
.u { --p: 0%; display: inline-block; color: transparent; background: linear-gradient(90deg, var(--app-text) var(--p), rgba(245, 245, 248, .3) var(--p)); -webkit-background-clip: text; background-clip: text; }
.no-js .u, .reduced-motion .ln.is-now .u { --p: 100%; }
.ln__pron { font-size: 15px; font-weight: 700; color: var(--pron); line-height: 1.5; }
.ln__tr { margin-top: 1px; font-size: 16px; font-weight: 700; color: var(--tr); line-height: 1.5; }
.player:not(.show-pron) .ln__pron, .player:not(.show-tr) .ln__tr { display: none; }
.player__bar { height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .13); }
.player__bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--app-text); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.player__ctrl { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 12px; }
.ctrl { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--app-text); transition: background-color .2s, transform .5s var(--bounce); }
.ctrl:hover { background: rgba(255, 255, 255, .08); }
.ctrl:active { transform: scale(.86); transition-duration: .1s; }
.ctrl svg { width: 20px; height: 20px; }
.ctrl--play { width: 50px; height: 50px; background: var(--app-text); color: var(--app); }
.ctrl--play:hover { background: #fff; }
.ctrl--play .i-play, .player.is-playing .ctrl--play .i-pause { display: block; }
.ctrl--play .i-pause, .player.is-playing .ctrl--play .i-play { display: none; }
.player__tg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tg { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--app-dim); font-size: 13.5px; font-weight: 800; transition: background-color .2s, color .2s, transform .5s var(--bounce); }
.tg::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .45; transition: transform .5s var(--bounce); }
.tg[aria-pressed='true'] { background: rgba(255, 255, 255, .15); color: #fff; }
.tg[aria-pressed='true']::before { opacity: 1; background: var(--dot, #fff); transform: scale(1.2); }
.tg:active { transform: scale(.9); transition-duration: .1s; }
.tg--pron { --dot: var(--pron); } .tg--tr { --dot: var(--tr); } .tg--furi { --dot: var(--mint); }
.player__note { margin-top: 12px; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: rgba(245, 245, 248, .42); }
.demo-tip { position: absolute; left: -34px; bottom: 70px; z-index: 2; padding: 12px 15px; border-radius: 18px; background: #fff; color: var(--grey900); font-size: 14px; font-weight: 800; line-height: 1.35; box-shadow: 0 18px 40px rgba(20, 8, 70, .28); transform: rotate(-6deg); animation: popIn .9s .8s var(--bounce) both; pointer-events: none; transition: opacity .3s, transform .5s var(--ease-out); }
.demo-tip small { display: block; font-size: 12px; font-weight: 700; color: var(--ly); }
.player.is-touched .demo-tip { opacity: 0; transform: rotate(-6deg) scale(.7); }

/* ==========================================================================
   LANDING — features bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 440px; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-xl); background: var(--grey100); color: var(--grey900); overflow: hidden; }
.card--wide { grid-column: span 2; }
.card--full { grid-column: 1 / -1; min-height: 0; }
.card--ly { background: var(--ly); color: #fff; }
.card--yellow { background: var(--yellow50); }
.card--dark { background: var(--grey900); color: #fff; }
.card--blue { background: var(--blue500); color: #fff; }
.card__label { font-size: 15px; font-weight: 700; color: var(--ly); }
.card--yellow .card__label { color: var(--yellow700); }
.card--ly .card__label, .card--dark .card__label, .card--blue .card__label { color: rgba(255, 255, 255, .78); }
.card__title { margin-top: 6px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; line-height: 1.3; letter-spacing: -.025em; }
.card__desc { margin-top: 10px; max-width: 30em; font-size: 16.5px; line-height: 1.65; color: var(--grey600); }
.card--ly .card__desc, .card--dark .card__desc, .card--blue .card__desc { color: rgba(255, 255, 255, .8); }
.card__vis { margin-top: auto; padding-top: 28px; }
.card--split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 3vw, 44px); }
.card--split .card__vis { align-self: end; margin: 0; padding: 0; }

/* per-language switches */
.langset { display: grid; gap: 10px; }
.langset li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px; background: rgba(255, 255, 255, .12); }
.langset__code { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #fff; color: var(--ly); font-size: 14px; font-weight: 800; }
.langset__name { min-width: 0; font-size: 16px; font-weight: 700; }
.langset__sw { display: flex; gap: 6px; }
.sw { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 800; transition: color .2s, background-color .2s, transform .5s var(--bounce); }
.sw:active { transform: scale(.92); transition-duration: .1s; }
.sw__track { position: relative; flex-shrink: 0; width: 36px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .26); transition: background-color .25s; }
.sw__track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .6s var(--bounce); }
.sw[aria-pressed='true'] { background: rgba(255, 255, 255, .2); color: #fff; }
.sw[aria-pressed='true'] .sw__track { background: var(--mint); }
.sw[aria-pressed='true'] .sw__track::after { transform: translateX(12px); }

/* provider chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; color: var(--grey800); white-space: nowrap; box-shadow: 0 4px 12px rgba(138, 96, 0, .09); transition: transform .6s var(--bounce); }
.chip:hover { transform: translateY(-3px) rotate(-2deg); }
.chip__free { padding: 2px 7px; border-radius: 999px; background: var(--green500); color: #fff; font-size: 11.5px; font-weight: 800; }

/* karaoke modes */
.kara__modes { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.kara__modes button { height: 34px; padding: 0 13px; border-radius: 10px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .62); transition: background-color .25s, color .25s, transform .5s var(--bounce); }
.kara__modes button[aria-pressed='true'] { background: #fff; color: var(--grey900); }
.kara__modes button:active { transform: scale(.9); }
.kara__lines { margin-top: 18px; }
.kara__lead { font-size: clamp(24px, 2.3vw, 30px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.kara__bg { margin-top: 4px; font-size: 18px; font-weight: 700; }
.k { --p: 0%; --on: #fff; --off: rgba(255, 255, 255, .28); color: transparent; background: linear-gradient(90deg, var(--on) var(--p), var(--off) var(--p)); -webkit-background-clip: text; background-clip: text; }
.kara__bg .k { --on: var(--mint); --off: rgba(63, 211, 168, .3); }
.kara__who { display: flex; gap: 14px; margin-top: 16px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.kara__who > span { display: inline-flex; align-items: center; gap: 6px; }
.kara__who > span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.kara__who > span + span::before { background: var(--mint); }

/* LP */
.lp { position: relative; height: 200px; }
.lp__disc { position: absolute; left: calc(50% - 40px); top: 50%; width: 176px; height: 176px; margin-top: -88px; border-radius: 50%; background: var(--grey900); box-shadow: inset 0 0 0 12px #2b313b, inset 0 0 0 24px var(--grey900), inset 0 0 0 36px #2b313b, inset 0 0 0 48px var(--grey900); transition: transform 1s var(--spring); }
.lp__disc::before { content: ''; position: absolute; inset: 58px; border-radius: 50%; background: var(--coral); }
.lp__disc::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--grey100); }
.lp__spin { position: absolute; inset: 0; border-radius: 50%; animation: spin 3.4s linear infinite; animation-play-state: paused; }
.lp__spin::before { content: ''; position: absolute; left: 50%; top: 18px; width: 4px; height: 26px; margin-left: -2px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.is-visible .lp__spin { animation-play-state: running; }
.lp__cover { position: absolute; left: calc(50% - 150px); top: 50%; width: 164px; height: 164px; margin-top: -82px; overflow: hidden; border-radius: 20px; background: var(--yellow500); box-shadow: 0 16px 34px rgba(2, 32, 71, .18); transition: transform 1s var(--spring); }
.lp__cover::before { content: ''; position: absolute; left: 16%; top: 16%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--coral); }
.lp__cover::after { content: ''; position: absolute; right: 12%; bottom: 14%; width: 46%; height: 22%; border-radius: 999px; background: var(--ly); }
.card:hover .lp__disc { transform: translateX(26px) rotate(40deg); }
.card:hover .lp__cover { transform: rotate(-4deg) translateX(-6px); }
@keyframes spin { to { transform: rotate(360deg); } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 700; color: var(--grey700); }
.card--ly .tags li, .card--blue .tags li, .card--dark .tags li { background: rgba(255, 255, 255, .14); color: #fff; }

/* waveform (community sync) */
.wave { position: relative; display: flex; align-items: center; gap: 4px; height: 128px; }
.wave i { flex: 1; height: calc(var(--h, .3) * 100%); min-height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .34); transition: background-color .3s; }
.wave i.is-on { background: #fff; }
.wave__head { position: absolute; top: -6px; bottom: -6px; left: 0; width: 3px; border-radius: 3px; background: var(--yellow500); transform: translateX(var(--x, 0px)); }
.wave__marks { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.wave__marks span { padding: 3px 7px; border-radius: 7px; background: rgba(255, 255, 255, .14); }

/* learning quiz */
.quiz { padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-s); }
.quiz__q { font-size: 13.5px; font-weight: 700; color: var(--grey600); }
.quiz__w { margin: 2px 0 10px; font-family: var(--f-ja); font-size: 36px; font-weight: 800; line-height: 1.5; }
.quiz__w rt { font-size: .36em; color: var(--grey500); }
.quiz__opts { display: grid; gap: 8px; }
.quiz__opts button { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 16px; border-radius: 14px; background: var(--grey100); font-size: 15.5px; font-weight: 700; text-align: left; transition: background-color .2s, color .2s, transform .5s var(--bounce); }
.quiz__opts button:hover { background: var(--grey200); }
.quiz__opts button:active { transform: scale(.96); }
.quiz__opts button.is-right { background: var(--green50); color: var(--green600); }
.quiz__opts button.is-wrong { background: var(--red50); color: var(--red500); animation: shake .4s; }
.quiz__opts button.is-right::after { content: '✓'; font-weight: 800; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Spotify window + Now Playing panel + desktop overlay */
.win { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr) 38%; height: 230px; border-radius: 20px; background: var(--app); color: var(--app-text); box-shadow: var(--shadow-m); }
.win__side { display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; }
.win__side i { height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .09); }
.win__side i:first-child { background: var(--ly); }
.win__main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 10px; padding: 16px 8px; }
.win__main i { aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.win__main i:nth-child(2) { background: var(--coral); } .win__main i:nth-child(4) { background: var(--blue500); } .win__main i:nth-child(6) { background: var(--yellow500); }
.win__panel { display: flex; flex-direction: column; gap: 8px; margin: 10px; padding: 14px; border-radius: 14px; background: var(--app2); min-width: 0; }
.win__panel small { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--app-dim); }
.win__panel p { font-family: var(--f-ja); font-size: 14px; font-weight: 800; line-height: 1.35; color: rgba(245, 245, 248, .35); }
.win__panel p.is-now { color: #fff; }
.win__panel p.is-now + span { display: block; margin-top: -4px; font-size: 12px; font-weight: 700; color: var(--tr); }
.ovl { position: absolute; right: -8px; bottom: -22px; max-width: 78%; padding: 12px 16px; border-radius: 18px; background: rgba(25, 31, 40, .94); color: #fff; box-shadow: var(--shadow-l); transform: rotate(-3deg); animation: float 5s ease-in-out infinite; }
.ovl__o { font-family: var(--f-ja); font-size: 18px; font-weight: 800; }
.ovl__t { font-size: 13px; font-weight: 700; color: var(--tr); }
.ovl__tag { position: absolute; left: 14px; top: -11px; padding: 3px 9px; border-radius: 999px; background: var(--mint); color: var(--grey900); font-size: 11px; font-weight: 800; }
@keyframes float { 50% { transform: rotate(-2deg) translateY(-8px); } }
.card:not(.is-visible) .ovl { animation-play-state: paused; }

/* 22 languages marquee */
.card--strip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 40px); padding-top: 26px; padding-bottom: 26px; }
.marquee { min-width: 0; overflow: hidden; }
.marquee__row { display: flex; gap: 8px; width: max-content; animation: marquee 52s linear infinite; }
.card:not(.is-visible) .marquee__row { animation-play-state: paused; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__row li { padding: 9px 15px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(calc(-50% - 4px)); } }

/* ==========================================================================
   LANDING — platforms
   ========================================================================== */
.plats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plat { display: flex; flex-direction: column; min-width: 0; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-xl); background: var(--grey100); }
.plat__dev { display: grid; place-items: center; height: 190px; margin-bottom: 22px; border-radius: var(--r-l); background: #fff; overflow: hidden; }
.plat__tag { font-size: 14px; font-weight: 800; color: var(--ly); letter-spacing: .02em; }
.plat__name { margin-top: 2px; font-size: clamp(24px, 2.2vw, 29px); font-weight: 800; letter-spacing: -.025em; }
.plat__os { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--grey600); }
.plat__desc { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--grey700); }
.plat__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; }
.ver { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 800; color: var(--grey800); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ver::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green500); }
.ver.is-live { animation: popIn .7s var(--bounce); }
.plat__links { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 4px; }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.extra { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r-l); border: 1px solid var(--grey200); transition: transform .6s var(--bounce), border-color .2s, background-color .2s; }
.extra:hover { transform: translateY(-4px); border-color: transparent; background: var(--grey100); }
.extra__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--ly50); color: var(--ly); }
.extra__icon svg { width: 26px; height: 26px; }
.extra__t { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.015em; color: var(--grey900); }
.extra__s { display: block; font-size: 14.5px; color: var(--grey600); }
.extra .ver { background: var(--grey100); }
.extra:hover .ver { background: #fff; }

/* device drawings */
.dev-win { width: 78%; height: 128px; border-radius: 14px; background: var(--app); box-shadow: var(--shadow-m); padding: 26px 16px 12px; position: relative; transform: rotate(-2deg); transition: transform .9s var(--spring); }
.dev-win::before { content: ''; position: absolute; left: 12px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; box-shadow: 13px 0 0 #febc2e, 26px 0 0 #28c840; }
.plat:hover .dev-win, .plat:hover .dev-phone { transform: rotate(0deg) translateY(-6px); }
.dev-phone { width: 92px; height: 176px; margin-top: 44px; border-radius: 24px; background: var(--app); box-shadow: var(--shadow-m); padding: 30px 10px 10px; position: relative; transform: rotate(-4deg); transition: transform .9s var(--spring); }
.dev-phone::before { content: ''; position: absolute; left: 50%; top: 9px; width: 30px; height: 8px; margin-left: -15px; border-radius: 8px; background: #000; }
.dev-phone--android { border-radius: 18px; transform: rotate(4deg); }
.dev-phone--android::before { width: 8px; margin-left: -4px; }
.dev-lines { display: grid; gap: 7px; }
.dev-lines i { display: block; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .18); }
.dev-lines i.is-now { height: 13px; background: #fff; }
.dev-lines i.is-tr { width: 70%; background: var(--tr); }
.dev-lines i:nth-child(4) { width: 82%; }
.dev-lines i:nth-child(5) { width: 60%; }

/* ==========================================================================
   LANDING — install
   ========================================================================== */
.inst { padding: clamp(20px, 3vw, 40px); border-radius: var(--r-xl); background: var(--grey100); }
.tabs { position: relative; display: inline-flex; max-width: 100%; padding: 4px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--grey200); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__ink { position: absolute; left: 0; top: 0; width: var(--w, 0px); height: var(--h, 44px); border-radius: 12px; background: var(--grey900); transform: translate(var(--x, 0px), var(--y, 4px)); transition: transform .65s var(--spring), width .65s var(--spring), height .65s var(--spring); }
.tabs:not(.is-ready) .tabs__ink { display: none; }
.tab { position: relative; z-index: 1; flex-shrink: 0; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 16px; font-weight: 700; color: var(--grey600); white-space: nowrap; transition: color .25s; }
.tab:hover { color: var(--grey900); }
.tab[aria-selected='true'] { color: #fff; }
.tabs:not(.is-ready) .tab[aria-selected='true'] { background: var(--grey900); }
.no-js .panel[hidden], .no-boot .panel[hidden] { display: block !important; }
.panel { margin-top: 26px; }
.panel.is-enter { animation: panelIn .6s var(--spring); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.steps { display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
.step__n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grey900); color: #fff; font-size: 16px; font-weight: 800; }
.step__t { padding-top: 5px; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.step__d { margin-top: 2px; font-size: 16px; color: var(--grey700); }
.step .code, .step .btns { margin-top: 12px; }
.code { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 16px; background: var(--grey900); color: #eef0f4; }
.code code { flex: 1; min-width: 0; padding: 10px 0; font-family: var(--mono); font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-all; }
.code__pr { flex-shrink: 0; align-self: flex-start; padding-top: 10px; font-family: var(--mono); font-size: 14.5px; color: var(--mint); user-select: none; }
.copy { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background-color .2s, transform .5s var(--bounce); }
.copy:hover { background: rgba(255, 255, 255, .2); }
.copy:active { transform: scale(.9); transition-duration: .1s; }
.copy svg { width: 16px; height: 16px; }
.copy.is-done { background: var(--green500); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.note { display: flex; gap: 10px; margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: #fff; font-size: 15px; line-height: 1.6; color: var(--grey700); }
.note::before { content: 'i'; flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ly); color: #fff; font-size: 13px; font-weight: 800; }
.note a { color: var(--ly); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.inst__more { display: flex; justify-content: flex-end; margin-top: 18px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--ly); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   LANDING — numbers (live)
   ========================================================================== */
.live-tag { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--green50); color: var(--green600); font-size: 13px; font-weight: 700; vertical-align: 2px; }
.live-tag i, .pulse { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--green500); animation: livePing 1.8s var(--ease-out) infinite; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(3, 178, 108, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(3, 178, 108, 0); } }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 240px; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--r-xl); background: var(--grey100); overflow: hidden; }
.stat--wide { grid-column: span 2; }
.stat--ly { background: var(--ly); color: #fff; }
.stat--yellow { background: var(--yellow50); }
.stat--dark { background: var(--grey900); color: #fff; }
.stat__label { font-size: 17px; font-weight: 700; color: var(--grey700); }
.stat--ly .stat__label, .stat--dark .stat__label { color: rgba(255, 255, 255, .84); }
.stat__value { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; font-size: clamp(44px, 4.6vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat__value b { display: inline-block; font-weight: 800; transform-origin: 0 80%; }
.stat__value b.is-pop { animation: numPop .9s var(--bounce); }
@keyframes numPop { 0% { transform: scale(1.18); } 100% { transform: none; } }
.stat__value small { font-size: .4em; font-weight: 700; letter-spacing: -.01em; opacity: .75; }
.stat__sub { margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--grey600); }
.stat--ly .stat__sub { color: rgba(255, 255, 255, .86); }
.stat--dark .stat__sub { color: rgba(255, 255, 255, .72); }
.stat .pulse { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.stat__link { align-self: flex-start; margin-top: auto; padding-top: 18px; font-size: 16px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.stat__link:hover { opacity: .8; }
.stat.is-loading .stat__value b { color: transparent; min-width: 3ch; border-radius: 12px; background: rgba(127, 127, 127, .16); animation: skel 1.1s ease-in-out infinite alternate; }
@keyframes skel { from { opacity: .5; } to { opacity: 1; } }
.bars { position: absolute; right: clamp(24px, 2.4vw, 32px); bottom: clamp(24px, 2.4vw, 32px); display: flex; align-items: flex-end; gap: 6px; width: min(44%, 360px); height: 58%; }
.bars i { flex: 1; height: calc(var(--v) * 100%); border-radius: 8px 8px 4px 4px; background: rgba(255, 255, 255, .3); transform-origin: 50% 100%; transform: scaleY(var(--in, 1)); transition: transform 1s var(--bounce); transition-delay: calc(var(--i) * 45ms); }
.bars i:last-child { background: #fff; }
.bars:not(.is-in) i { --in: 0; }

/* ==========================================================================
   LANDING — community call to action + footer
   ========================================================================== */
.cta { padding-bottom: clamp(56px, 7vw, 96px); }
.cta__card { position: relative; padding: clamp(40px, 6vw, 88px); border-radius: var(--r-xl); background: var(--ly); color: #fff; overflow: hidden; isolation: isolate; }
.cta__icon { width: 84px; height: 84px; margin-bottom: 28px; border-radius: 22px; box-shadow: 0 16px 36px rgba(20, 8, 70, .35); transform: rotate(-6deg); transition: transform .9s var(--bounce); }
.cta__card:hover .cta__icon { transform: rotate(4deg) scale(1.06); }
.cta__title { font-size: clamp(40px, 5.8vw, 84px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; }
.cta__sub { max-width: 30em; margin-top: 18px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; color: rgba(255, 255, 255, .88); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.cta__credit { margin-top: 28px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .7); }
.cta__credit a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta__card .stickers .st { opacity: .9; }

.footer { padding: 48px 0 64px; color: var(--grey600); font-size: 15px; }
.footer__in { display: grid; grid-template-columns: 1fr auto; gap: 24px 30px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 40px; height: 40px; border-radius: 12px; }
.footer__brand b { display: block; font-size: 19px; font-weight: 800; color: var(--grey900); letter-spacing: -.02em; }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-weight: 600; color: var(--grey700); }
.footer__links a:hover { color: var(--grey900); text-decoration: underline; text-underline-offset: 4px; }
.footer__legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--grey200); font-size: 13.5px; line-height: 1.7; color: var(--grey500); }
.footer__legal > span { display: block; max-width: 62em; }
.footer__copy { grid-column: 1 / -1; font-size: 13.5px; color: var(--grey500); }

.toast { position: fixed; left: 50%; bottom: 32px; z-index: 300; width: max-content; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 16px; background: var(--grey900); color: #fff; font-size: 16px; font-weight: 600; text-align: center; opacity: 0; transform: translate(-50%, 24px) scale(.9); pointer-events: none; transition: opacity .25s, transform .7s var(--bounce); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   GUIDE (wiki)
   ========================================================================== */
.doc-hero { padding: calc(var(--nav-h) + clamp(36px, 6vw, 80px)) 0 clamp(28px, 4vw, 44px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--grey500); }
.crumbs a:hover { color: var(--ly); }
.doc-hero__title { margin-top: 14px; font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; line-height: 1.12; letter-spacing: -.04em; }
.doc-hero__lead { max-width: 36em; margin-top: 16px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--grey600); }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.pick a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 22px; background: var(--grey100); transition: transform .6s var(--bounce), background-color .2s; }
.pick a:hover { transform: translateY(-4px); background: var(--grey200); }
.pick__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--ly); color: #fff; }
.pick__icon svg { width: 24px; height: 24px; }
.pick__t { display: block; font-size: 18px; font-weight: 800; }
.pick__s { display: block; font-size: 14px; color: var(--grey600); }
.pick__go { color: var(--grey400); font-weight: 800; transition: transform .5s var(--bounce); }
.pick a:hover .pick__go { transform: translateX(4px); color: var(--grey900); }

.docs { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: 12px; padding-bottom: 40px; }
.side { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; padding: 4px 4px 24px 0; scrollbar-width: thin; }
.side__group { margin: 20px 0 6px 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--grey500); }
.side__group:first-child { margin-top: 4px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 15.5px; font-weight: 600; color: var(--grey700); transition: background-color .2s, color .2s; }
.side a:hover { background: var(--grey100); color: var(--grey900); }
.side a[aria-current='true'] { background: var(--ly50); color: var(--ly700); font-weight: 700; }
.side__help { display: block; margin-top: 22px; padding: 16px; border-radius: 18px; background: var(--grey100); font-size: 14px; color: var(--grey600); }
.side__help b { display: block; margin-bottom: 4px; font-size: 15px; color: var(--grey900); }
.side__help a { display: inline; padding: 0; font-size: 14px; color: var(--ly); background: none !important; }
.chipnav { display: none; }

.doc { min-width: 0; max-width: 780px; }
.doc > section { scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc > section + section { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--grey200); }
.doc__kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; font-weight: 800; color: var(--ly); letter-spacing: .02em; }
.doc h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.3; letter-spacing: -.03em; }
.doc h3 { margin-top: 40px; font-size: 21px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc h4 { margin-top: 24px; font-size: 17px; font-weight: 800; }
.doc p { margin-top: 12px; font-size: 16.5px; line-height: 1.8; color: var(--grey700); }
.doc p b, .doc li b { color: var(--grey900); }
.doc a:not([class]) { color: var(--ly); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.doc a:not([class]):hover { color: var(--ly700); }
.doc code:not(.code code) { padding: 2px 7px; border-radius: 7px; background: var(--grey100); font-family: var(--mono); font-size: .88em; color: var(--grey800); overflow-wrap: anywhere; }
.doc .code { margin-top: 14px; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px var(--grey300), 0 2px 0 var(--grey300); font-family: var(--mono); font-size: .85em; font-weight: 700; text-align: center; color: var(--grey800); }
.bul { display: grid; gap: 8px; margin-top: 14px; }
.bul li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.7; color: var(--grey700); }
.bul li::before { content: ''; position: absolute; left: 3px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--ly); }

.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.needs li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--grey100); font-size: 15px; font-weight: 700; line-height: 1.4; }
.needs__n { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grey900); color: #fff; font-size: 13px; font-weight: 800; }

.callout { display: flex; gap: 14px; margin-top: 22px; padding: 18px 20px; border-radius: 20px; background: var(--blue50); }
.callout__i { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue500); color: #fff; font-size: 15px; font-weight: 800; }
.callout b { display: block; font-size: 16px; font-weight: 800; color: var(--grey900); }
.callout p { margin-top: 4px; font-size: 15.5px; line-height: 1.7; }
.callout--tip { background: var(--green50); } .callout--tip .callout__i { background: var(--green500); }
.callout--warn { background: var(--yellow50); } .callout--warn .callout__i { background: var(--yellow500); color: var(--grey900); }
.callout--danger { background: var(--red50); } .callout--danger .callout__i { background: var(--red500); }

.vsteps { position: relative; display: grid; gap: 26px; margin-top: 24px; }
.vsteps::before { content: ''; position: absolute; left: 18px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; background: var(--grey200); }
.vsteps > li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 16px; }
.vsteps .step__n { position: relative; z-index: 1; box-shadow: 0 0 0 5px #fff; }
.doc .vsteps__t { margin: 6px 0 0; font-size: 18px; font-weight: 800; line-height: 1.5; letter-spacing: -.015em; color: var(--grey900); }
.vsteps .vsteps__t + p { margin-top: 4px; }
.vsteps .btns, .vsteps .code { margin-top: 12px; }

.os-tabs { margin-top: 24px; }
.table-wrap { margin-top: 18px; overflow-x: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--grey200); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grey200); line-height: 1.6; }
.tbl th { background: var(--grey50); font-size: 13.5px; font-weight: 800; color: var(--grey600); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 700; color: var(--grey900); }
.tbl code { overflow-wrap: anywhere; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.tile { padding: 20px; border-radius: 22px; background: var(--grey100); }
.tile__tag { font-size: 13px; font-weight: 800; color: var(--ly); letter-spacing: .02em; }
.doc .tile__t { margin: 4px 0 0; font-size: 17px; font-weight: 800; line-height: 1.45; color: var(--grey900); }
.doc .tile p:not(.tile__t):not(.tile__tag) { margin-top: 6px; font-size: 15px; line-height: 1.7; }

.faq { margin-top: 12px; border-radius: 20px; background: var(--grey100); transition: background-color .2s; }
.faq + .faq { margin-top: 10px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; list-style: none; cursor: pointer; font-size: 16.5px; font-weight: 700; color: var(--grey900); border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; font-size: 20px; font-weight: 700; color: var(--grey700); transition: transform .6s var(--bounce); }
.faq[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { background: var(--grey200); }
.faq__a { padding: 0 20px 20px; }
.faq__a > :first-child { margin-top: 0; }
.faq[open] .faq__a { animation: panelIn .5s var(--spring); }

.ver-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ver-row .ver { background: var(--grey100); }
.ver-row .ver b { font-weight: 700; color: var(--grey500); }
.code--multi code { white-space: pre-wrap; }
.chips--grey { margin-top: 16px; }
.chips--grey .chip { height: 36px; padding: 0 13px; background: var(--grey100); box-shadow: none; font-size: 14.5px; }
.doc .os-tabs + .panel { margin-top: 8px; }
.doc .step__n { flex-shrink: 0; }
/* guide paragraphs that aren't body text (".doc p" would otherwise restyle them) */
.doc .doc__kicker { margin: 0 0 10px; font-size: 14px; line-height: 1.4; color: var(--ly); }
.doc .tile__tag { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ly); }
.doc .doc-foot p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--grey500); }
.doc h3 .ver { margin-left: 6px; vertical-align: 3px; font-size: 13px; background: var(--grey100); }
.faq .vsteps::before { background: var(--grey300); }
.faq .vsteps .step__n { box-shadow: 0 0 0 5px var(--grey100); }
.faq .code { margin-top: 12px; }

.help-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-top: 26px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-l); background: var(--ly); color: #fff; }
.help-card b { display: block; font-size: 21px; font-weight: 800; }
.help-card p { margin-top: 4px; color: rgba(255, 255, 255, .84); font-size: 15.5px; }
.help-card .btns { justify-content: flex-end; }

.doc-foot { margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--grey200); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--grey500); }
.doc-foot a { font-weight: 700; color: var(--grey700); }
.doc-foot a:hover { color: var(--ly); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); min-height: 0; }
  .hero__demo { justify-items: start; }
  .player { max-width: 540px; }
  .demo-tip { left: auto; right: -12px; top: -22px; bottom: auto; transform: rotate(5deg); }
  .player.is-touched .demo-tip { transform: rotate(5deg) scale(.7); }
  .hero .st { left: var(--xm, var(--x)); top: var(--ym, var(--y)); }
  .hero .st.st--hide-m { display: none; }
}
@media (max-width: 1023px) {
  .bento, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide, .stat--wide { grid-column: 1 / -1; }
  .plats { grid-template-columns: minmax(0, 1fr); }
  .plat { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 26px; }
  .plat__dev { grid-row: 1 / 7; height: 100%; min-height: 220px; margin: 0; }
  .plat__foot { padding-top: 18px; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .chipnav { position: sticky; top: var(--nav-h); z-index: 50; display: block; margin: 0 calc(var(--gutter) * -1) 8px; padding: 10px var(--gutter); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--grey200); }
  .chipnav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-padding: 0 var(--gutter); }
  .chipnav ul::-webkit-scrollbar { display: none; }
  .chipnav a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--grey100); font-size: 14.5px; font-weight: 700; color: var(--grey700); white-space: nowrap; transition: background-color .2s, color .2s; }
  .chipnav a[aria-current='true'] { background: var(--grey900); color: #fff; }
  .doc > section, .doc h3 { scroll-margin-top: calc(var(--nav-h) + 72px); }
}
@media (max-width: 767px) {
  :root { --nav-h: 56px; }
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__in { gap: 8px; padding: 0 14px 0 18px; }
  .brand { font-size: 19px; }
  .brand img { width: 30px; height: 30px; }
  .nav__guide { display: inline-flex; }
  .gh { padding: 0 11px; }
  .gh__label { display: none; }
  .hero { padding: var(--nav-h) 10px 0; }
  .stage { gap: 34px; padding: 34px 22px 30px; border-radius: 26px; }
  .hero__eyebrow { font-size: 13px; padding: 7px 12px 7px 10px; }
  .hero__title { margin-top: 18px; font-size: clamp(42px, 12.6vw, 60px); }
  .hero__sub { font-size: 17.5px; }
  .hero__cta .pill { height: 50px; font-size: 16px; }
  .player { padding: 14px; border-radius: 24px; transform: none; }
  .player:hover { transform: none; }
  .player__view { height: 236px; }
  .ln__o { font-size: 23px; }
  .demo-tip { display: none; }
  .st { --s: .78 !important; }
  .st.st--hide-m { display: none; }
  .sec { padding-top: 96px; }
  .bento, .stats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { min-height: 0; padding: 24px 22px; border-radius: 26px; }
  .card--split, .card--strip { grid-template-columns: minmax(0, 1fr); }
  .card--split .card__vis { margin-top: 8px; }
  .langset li { grid-template-columns: auto minmax(0, 1fr); row-gap: 10px; }
  .langset__sw { grid-column: 1 / -1; }
  .langset__sw .sw { flex: 1; }
  .win { grid-template-columns: 38px minmax(0, 1fr) 46%; height: 200px; }
  .win__side { padding: 12px 8px; }
  .ovl { right: -4px; bottom: -26px; max-width: 86%; }
  .plat { display: flex; padding: 20px; border-radius: 26px; }
  .plat__dev { height: 170px; min-height: 0; margin-bottom: 18px; }
  .extras { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .extra { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .extra .ver { grid-column: 2; justify-self: start; }
  .inst { padding: 18px 16px 22px; border-radius: 26px; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: 100%; overflow: visible; }
  .tab { width: 100%; padding: 0 10px; font-size: 15px; }
  .code { padding-left: 14px; }
  .code code { font-size: 13.5px; }
  .copy span { display: none; }
  .copy { width: 40px; justify-content: center; padding: 0; }
  .stat { min-height: 180px; padding: 22px; border-radius: 26px; }
  .stat__value { font-size: 42px; }
  .bars { position: relative; right: auto; bottom: auto; width: 100%; height: 76px; margin-top: auto; padding-top: 18px; }
  .cta__card { padding: 40px 24px 36px; border-radius: 26px; }
  .cta__actions .pill--lg { height: 56px; font-size: 18px; }
  .footer__in { grid-template-columns: 1fr; }
  .doc-hero__title { font-size: clamp(38px, 11vw, 52px); }
  .pick, .needs, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .help-card { grid-template-columns: minmax(0, 1fr); }
  .help-card .btns { justify-content: flex-start; }
  .doc > section + section { margin-top: 48px; padding-top: 48px; }
  .toast { bottom: 20px; }
}
@media (max-width: 380px) {
  .lang button { min-width: 32px; padding: 0 7px; }
  .nav__guide, .gh__stars { display: none !important; }
  .brand { font-size: 18px; }
}
/* phones where the nav also shows the "Home/Guide" link: the brand suffix makes room for it */
@media (min-width: 381px) and (max-width: 767px) {
  .brand__sub { display: none; }
}
@media (max-width: 767px) {
  .tbl--stack thead { display: none; }
  .tbl--stack tr { display: block; padding: 13px 16px; border-bottom: 1px solid var(--grey200); }
  .tbl--stack tr:last-child { border-bottom: 0; }
  .tbl--stack td { display: block; padding: 0; border: 0; }
  .tbl--stack td + td { margin-top: 3px; color: var(--grey700); }
  .tbl--stack td:last-child:has(.ver) { margin-top: 8px; }
}
@media (max-width: 440px) {
  .langset__sw { flex-direction: column; }
  .hero__cta .pill { flex: 1 1 auto; justify-content: space-between; }
  .hero__cta .pill--line { justify-content: center; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__row { width: auto; flex-wrap: wrap; }
  .marquee__row li[data-dup] { display: none; }
}
