/* Pocket Study: Mint Buddy brand. Layout: one interactive "studio" carries the page, every other section stays quiet. */
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cream: #fffaf2;
  --paper: #fffefa;
  --mint: #d9f2e7;
  --mint-soft: #eaf7f0;
  --mint-line: #b9dccb;
  --green: #256957;
  --green-deep: #1c5244;
  --coral: #f6ad98;
  --coral-line: #e8937c;
  --coral-ink: #4f2c23;
  --peach: #fde8df;
  --ink: #243e38;
  --ink-2: #596e65;
  --night: #24302c;
  --rule: #ece5d8;
  --sans: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Hiragino Sans", "Noto Sans KR", "Noto Sans JP", sans-serif;
  --read: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Hiragino Sans", "Noto Sans KR", "Noto Sans JP", sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body { margin: 0; background: var(--cream); color: var(--ink); font: 400 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.018em; font-weight: 850; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.03em; font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; font-weight: 850; }
p { margin: 0; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.section-lede { margin-top: 14px; color: var(--ink-2); font-size: 1.12rem; max-width: 36em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; white-space: nowrap;
  background: var(--green); color: #fff; border: 2px solid var(--green); border-radius: 999px;
  font: 800 1.02rem/1 var(--sans); text-decoration: none; transition: background-color .15s ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--green); border-color: var(--mint-line); }
.btn-quiet:hover { background: var(--mint-soft); color: var(--green-deep); border-color: var(--mint-line); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .95rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgb(255 250 242 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.top.scrolled { border-bottom-color: var(--rule); }
.top-row { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 1.2rem; }
.brand span { white-space: nowrap; }
.brand img { border-radius: 11px; }
.top-nav { display: flex; gap: 26px; margin-left: auto; }
.top-nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .96rem; }
.top-nav a:hover { color: var(--ink); }
@media (max-width: 960px) { .top-nav { display: none; } .top-row .btn { margin-left: auto; } }
@media (max-width: 420px) { .top-row { gap: 12px; } .brand { font-size: 1.08rem; gap: 10px; } .top-row .btn-small { padding: 0 16px; } }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.hero-copy { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px clamp(32px, 5vw, 72px); align-items: end; }
.hero-copy h1 { max-width: 13ch; }
.lede { color: var(--ink-2); font-size: clamp(1.08rem, 1.4vw, 1.2rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 900px) { .hero-copy { grid-template-columns: 1fr; } }

/* Studio: the interactive demo */
.studio { margin-top: clamp(40px, 5vw, 64px); background: var(--mint); border-radius: 36px; padding: clamp(14px, 2vw, 22px); }
.studio-tabs { display: flex; gap: 6px; background: var(--mint-soft); border-radius: 999px; padding: 6px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.studio-tabs::-webkit-scrollbar { display: none; }
.studio-tabs button {
  flex: none; border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font-weight: 800; font-size: .96rem; min-height: 44px; padding: 0 20px; border-radius: 999px; white-space: nowrap;
}
.studio-tabs button:hover { color: var(--ink); }
.studio-tabs button[aria-selected="true"] { background: var(--green); color: #fff; }
.studio-body { display: grid; grid-template-columns: 1fr 56px 1.15fr; align-items: stretch; gap: 8px; padding: clamp(20px, 3vw, 40px) clamp(8px, 2vw, 28px) clamp(12px, 2vw, 24px); }
.studio-in, .studio-out { min-width: 0; display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.studio-step { font-weight: 800; color: var(--green-deep); font-size: .98rem; }
.studio-arrow { display: grid; place-items: center; padding-top: 34px; }
.studio-arrow svg { width: 44px; fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.studio-note { margin-top: 14px; color: var(--ink-2); font-size: .9rem; }
@media (max-width: 860px) {
  .studio-body { grid-template-columns: 1fr; gap: 18px; }
  .studio-arrow { padding-top: 0; }
  .src-art { min-height: 0; }
  .studio-arrow svg { transform: rotate(90deg); width: 34px; }
}

.src-art { min-height: 330px; display: grid; place-items: center; }

/* Source art: photo of a page */
.photo { position: relative; padding: 26px; width: min(100%, 360px); }
.paper { position: relative; overflow: hidden; background: #fffdf6; border-radius: 6px; padding: 22px 20px 26px; display: grid; gap: 10px; transform: rotate(-2.5deg); box-shadow: 0 22px 34px -24px rgb(28 82 68 / .7); font: 400 .98rem/1.4 Georgia, "Times New Roman", serif; color: #3b3326; }
.paper-h { font-weight: 700; font-size: .92rem; color: #7a6544; margin-bottom: 4px; font-family: var(--read); }
.paper b { font-weight: 700; }
.scan { position: absolute; left: 0; right: 0; height: 2px; top: 20%; background: var(--coral); box-shadow: 0 0 14px 3px rgb(246 173 152 / .75); animation: scan 3.2s ease-in-out infinite alternate; }
@keyframes scan { to { top: 88%; } }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--green); }
.corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }

/* Source art: recording */
.rec { width: min(100%, 380px); background: var(--night); color: #e9f1ec; border-radius: 22px; padding: 20px; display: grid; gap: 16px; box-shadow: 0 22px 34px -24px rgb(28 82 68 / .8); }
.rec-top { display: flex; align-items: center; gap: 10px; font: 700 .92rem/1 var(--read); }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #ff7a6b; box-shadow: 0 0 0 5px rgb(255 122 107 / .22); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.rec-time { margin-left: auto; color: #9fc4b3; font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 3px; height: 96px; }
.wave i { flex: 1; border-radius: 2px; background: var(--coral); height: 30%; }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(4n) { height: 48%; } .wave i:nth-child(5n) { height: 92%; } .wave i:nth-child(7n) { height: 18%; }
.wave i:nth-child(n+19) { background: #4d5f58; }
.rec-note { color: #9fc4b3; font: 600 .85rem/1 var(--read); }

/* Source art: subtitle file */
.subfile { width: min(100%, 380px); background: var(--night); color: #e9f1ec; border-radius: 18px; padding: 18px; display: grid; gap: 6px; font: 400 .9rem/1.4 var(--read); box-shadow: 0 22px 34px -24px rgb(28 82 68 / .8); }
.subfile-name { color: #9fc4b3; font-weight: 600; margin-bottom: 4px; }
.cue { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 6px 8px; border-radius: 8px; color: #b9c9c1; }
.cue.sel { background: rgb(246 173 152 / .17); color: #fff; box-shadow: inset 3px 0 0 var(--coral); }
.tc { font-variant-numeric: tabular-nums; color: #8fb0a2; }
.range { margin-top: 8px; color: var(--coral); font-weight: 700; }

/* Source art: notes */
.notes { position: relative; width: min(100%, 330px); padding: 10px 14px; }
.note-page { position: relative; background: #fffdf6; border-radius: 6px; padding: 18px 20px 14px; display: grid; gap: 8px; font: 400 .92rem/1.4 var(--read); color: #3b3326; transform: rotate(2deg); box-shadow: 0 22px 34px -24px rgb(28 82 68 / .7); }
.note-page.back { position: absolute; inset: 22px 0 -8px 30px; transform: rotate(-4deg); opacity: .9; }
.note-page strong { font-size: 1.1rem; color: #24302c; }
.np-head, .np-num { font: 700 .66rem/1 var(--read); letter-spacing: .08em; color: #b3a78f; text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.np-num { justify-self: center; margin-top: 6px; letter-spacing: 0; }

/* Player */
.player { background: var(--paper); border-radius: 26px; border: 1.5px solid var(--mint-line); display: grid; overflow: hidden; box-shadow: 0 24px 40px -30px rgb(28 82 68 / .6); }
.player-head { display: grid; padding: 18px 20px 12px; border-bottom: 1px solid #edf0e8; line-height: 1.3; }
.player-head strong { font-weight: 850; font-size: 1.08rem; }
.player-head span { color: var(--ink-2); font-size: .86rem; }
.lines { list-style: none; margin: 0; padding: 10px 12px; height: 290px; overflow-y: auto; font-family: var(--read); }
.lines li { display: grid; gap: 2px; padding: 10px 12px; margin: 4px 0; border-radius: 14px; border: 1.5px solid transparent; cursor: pointer; transition: background-color .25s ease, border-color .25s ease; }
.lines li:hover { background: #f6f9f3; }
.lines li.now { background: #e3f3ea; border-color: #8cc2a9; }
.lines li.loop { border: 1.5px dashed var(--coral-line); box-shadow: 0 0 0 2px rgb(246 173 152 / .4); }
.l-src { font-size: 1.04rem; line-height: 1.45; color: var(--ink); font-weight: 550; }
.l-tr { font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.tag { justify-self: start; font: 800 .68rem/1 var(--sans); padding: 4px 9px; border-radius: 99px; margin-bottom: 4px; }
.tag.v1 { background: #d6ece1; color: var(--green-deep); }
.tag.v2 { background: #fbe1d8; color: var(--coral-ink); }
.tag.stamp, .tag.page { background: #eef1ec; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.player-foot { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid #edf0e8; background: var(--cream); }
.play { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 16px; background: var(--coral); border: 1.5px solid var(--coral-line); color: var(--coral-ink); font-weight: 900; font-size: 1.04rem; cursor: pointer; }
.play:hover { background: #f4a18a; }
.play-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--coral-ink); }
.play[aria-pressed="true"] .play-icon { width: 12px; height: 14px; border: 0; border-left: 4px solid var(--coral-ink); border-right: 4px solid var(--coral-ink); }
.speed { min-height: 48px; min-width: 64px; border-radius: 16px; background: var(--mint-soft); border: 1.5px solid var(--mint-line); font-weight: 850; cursor: pointer; }
.prog { height: 6px; background: #dfeae2; border-radius: 99px; overflow: hidden; }
.prog span { display: block; height: 100%; width: 0; background: var(--green); }

/* Hands-free day */
.listen { background: var(--peach); border-block: 1px solid #f6cdbd; padding: clamp(72px, 9vw, 120px) 0; color: var(--coral-ink); }
.listen .section-lede { color: #6a4236; }
.listen-head h2 { max-width: 16ch; }
.day { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.day::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; border-top: 2px dashed #efb6a2; }
.day li { position: relative; padding-top: 44px; }
.day li::before { content: ""; position: absolute; top: 4px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--coral); border: 4px solid var(--peach); box-shadow: 0 0 0 2px var(--coral-line); }
.day time { display: block; font-weight: 900; font-size: 1.7rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--coral-ink); }
.day h3 { margin-top: 2px; font-size: 1.15rem; }
.day p { margin-top: 8px; color: #6a4236; font-size: 1rem; }
.facts { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid #efb6a2; }
.facts li { padding: 20px 20px 0 0; color: #6a4236; font-size: .97rem; }
.facts strong { display: block; color: var(--coral-ink); font-weight: 850; font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 900px) {
  .day, .facts { grid-template-columns: 1fr 1fr; }
  .day::before { display: none; }
}
@media (max-width: 560px) {
  .day, .facts { grid-template-columns: 1fr; }
  .day { gap: 4px; border-left: 2px dashed #efb6a2; margin-left: 9px; }
  .day li { padding: 0 0 24px 28px; }
  .day li::before { left: -12px; top: 10px; }
}

/* Ways to study */
.uses { padding: clamp(72px, 9vw, 120px) 0; }
.use-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 56px) clamp(32px, 6vw, 80px); margin-top: clamp(40px, 5vw, 60px); }
.use { padding-top: 24px; border-top: 2px solid var(--mint); display: grid; gap: 12px; align-content: start; scroll-margin-top: 96px; }
.use h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.use p { color: var(--ink-2); max-width: 32em; }
.use .works { color: var(--green-deep); font-weight: 750; font-size: .95rem; }
.link-btn { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--green); font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--mint-line); }
.link-btn:hover { text-decoration-color: var(--green); }
@media (max-width: 760px) { .use-grid { grid-template-columns: 1fr; } }

/* Inside the app */
.inside { background: var(--mint); padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.inside-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 36px; color: #3d5751; }
.ticks li strong { color: var(--ink); font-weight: 850; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.shots figure { margin: 0; }
.shots figure:nth-child(2) { margin-top: 48px; }
.shots img { border-radius: 26px; border: 6px solid var(--paper); box-shadow: 0 24px 40px -28px rgb(28 82 68 / .55); background: var(--paper); }
.shots figcaption { margin-top: 12px; font-size: .9rem; font-weight: 750; color: #3d5751; text-align: center; }
@media (max-width: 980px) { .inside-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .shots { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -24px; padding-inline: 24px; }
  .shots figure { scroll-snap-align: center; }
  .shots figure:nth-child(2) { margin-top: 0; }
}

/* Music */
.music { padding: clamp(64px, 8vw, 104px) 0; }
.music-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px); background: var(--paper); border: 1.5px solid var(--mint-line); border-radius: 32px; }
.music h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.music p { margin-top: 12px; color: var(--ink-2); max-width: 40em; }
.eq { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 0 8px; }
.eq i { width: 16px; border-radius: 6px; background: var(--green); height: 40%; animation: eq 1.2s ease-in-out infinite alternate; }
.eq i:nth-child(2) { height: 75%; animation-delay: -.3s; background: var(--coral); }
.eq i:nth-child(3) { height: 55%; animation-delay: -.6s; }
.eq i:nth-child(4) { height: 95%; animation-delay: -.9s; background: var(--coral); }
.eq i:nth-child(5) { height: 35%; animation-delay: -.2s; }
.eq i:nth-child(6) { height: 65%; animation-delay: -.7s; background: var(--coral); }
.eq i:nth-child(7) { height: 45%; animation-delay: -.4s; }
@keyframes eq { to { height: 20%; } }
@media (max-width: 600px) { .music-grid { grid-template-columns: 1fr; } }

/* Privacy */
.private { background: var(--green); color: #eef7f2; padding: clamp(72px, 9vw, 120px) 0; }
.private-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.private h2 { color: #fff; max-width: 14ch; }
.private p { color: #d4e9de; font-size: 1.1rem; }
.private p + p { margin-top: 18px; }
.private a { color: #fff; font-weight: 800; }
.private a:hover { color: var(--mint); }
.private :focus-visible { outline-color: #fff; }
@media (max-width: 820px) { .private-grid { grid-template-columns: 1fr; } }

/* Languages and price */
.price { padding: clamp(72px, 9vw, 120px) 0; }
.price-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.lang-list { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: clamp(2.1rem, 4.6vw, 3.8rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; }
.lang-list li:nth-child(1) { color: var(--green); }
.lang-list li:nth-child(2) { color: #b7614a; }
.lang-list li:nth-child(3) { color: var(--ink); }
.lang-list li:nth-child(4) { color: #3d7f6c; }
.price-card { background: var(--paper); border: 1.5px solid var(--mint-line); border-radius: 32px; padding: clamp(28px, 4vw, 44px); display: grid; gap: 12px; justify-items: start; }
.price-h { font-weight: 850; font-size: 1.25rem; }
.amount { font-size: clamp(3.4rem, 7vw, 4.8rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cur { font-size: .5em; vertical-align: .75em; margin-right: 4px; color: var(--ink-2); }
.price-sub { color: var(--ink-2); font-size: .98rem; margin-bottom: 8px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { background: var(--paper); padding: clamp(72px, 9vw, 112px) 0; border-block: 1px solid #f0ebe0; }
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 20px clamp(32px, 6vw, 96px); align-items: start; }
.faq h2 { position: sticky; top: 104px; }
.faq details { border-bottom: 1.5px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 800; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 40em; }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: 1fr; } .faq h2 { position: static; } }

/* Final call to action */
.get { padding: clamp(80px, 10vw, 128px) 0; text-align: center; }
.get-inner { display: grid; justify-items: center; gap: 16px; }
.get img { border-radius: 24px; margin-bottom: 8px; }
.get p { color: var(--ink-2); font-size: 1.15rem; }
.get-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 14px; }
.soon { color: var(--ink-2); font-weight: 700; font-size: .95rem; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .95rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.foot-brand img { border-radius: 6px; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.fine { margin-left: auto; color: var(--ink-2); }

/* Legal pages */
.legal { padding: clamp(40px, 6vw, 72px) 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
.legal .updated { color: var(--ink-2); margin-top: 12px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.legal p, .legal li { color: #3a524b; }
.legal p + p { margin-top: 12px; }

@media (max-width: 560px) {
  .studio { border-radius: 28px; }
  .studio-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; }
  .studio-tabs button { padding: 0 10px; border-radius: 16px; font-size: .9rem; }
  .player-foot { grid-template-columns: auto auto; }
  .prog { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 860px) { .src-art { min-height: 0; } }

/* Language switcher */
.lang-switch { display: flex; gap: 2px; background: var(--mint-soft); border-radius: 999px; padding: 3px; flex: none; }
.top-nav + .lang-switch { margin-left: 0; }
.lang-switch a { display: grid; place-items: center; min-width: 38px; height: 36px; padding: 0 8px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 800; font-size: .85rem; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--paper); color: var(--green); box-shadow: 0 0 0 1.5px var(--green); }
.brand + .lang-switch { margin-left: auto; }
@media (max-width: 960px) { .top-row .lang-switch { margin-left: auto; } .top-row .lang-switch + .btn { margin-left: 0; } }
@media (max-width: 600px) { .top-cta { display: none; } .lang-switch a { min-width: 34px; padding: 0 6px; } }
.legal-note { margin-top: 18px; padding: 14px 18px; background: var(--mint-soft); border-radius: 14px; color: var(--ink); font-size: .95rem; }

/* Korean and Japanese read better with a little more room and no forced balancing */
:lang(ko) h1, :lang(ja) h1 { letter-spacing: -0.02em; line-height: 1.2; }
:lang(ko) h2, :lang(ko) h3, :lang(ja) h2, :lang(ja) h3 { line-height: 1.28; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { line-break: strict; }
:lang(ko) body, :lang(ko) p, :lang(ko) li { word-break: keep-all; }

/* Pick the right CJK fallback per language so kanji and hanja come from one font */
:lang(ja) { --sans: "Nunito", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif; --read: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; }
:lang(ko) { --sans: "Nunito", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; --read: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
:lang(ja) body, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .studio, :lang(ja) button { font-family: var(--sans); }
:lang(ja) .lines, :lang(ja) .l-src, :lang(ja) .l-tr { font-family: var(--read); }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .lede { word-break: auto-phrase; }

@media (max-width: 560px) {
  .studio-tabs button { white-space: normal; line-height: 1.2; padding: 6px 8px; min-height: 48px; }
}

.paper:lang(ko) { font-family: "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", "Batang", serif; }
