/* Metronome & Recorder — website. 앱과 같은 결: 흑백(글자색) + 빨강은 녹음에만, 각진 모서리 (휴대폰 틀만 둥글게). */
:root {
  --bg: #ffffff; --ink: #0b0b0c; --muted: #6b6b72; --line: #e6e6ea; --elev: #f5f5f7; --rec: #ff3b30;
  --max: 1080px; --gut: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000000; --ink: #f5f5f7; --muted: #a1a1a8; --line: #26262b; --elev: #111114; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
:lang(ko) body, body:lang(ko) { word-break: keep-all; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--bg); padding: 8px; z-index: 9; }

/* 위 */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--bg); white-space: nowrap; }
.nav a { white-space: nowrap; }
@media (max-width: 640px) { .nav .hide-s, .nav .btn { display: none; } .nav { gap: 14px; } .top .wrap { gap: 12px; } }

/* 단추 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: var(--bg); text-decoration: none;
  font-weight: 650; padding: 14px 22px; border: 1px solid var(--ink); line-height: 1.2; }
.btn:hover { opacity: 0.88; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); flex: none; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* 첫 화면 */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 15px; font-weight: 650; letter-spacing: 0.01em; color: var(--muted); margin: 0 0 14px; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 22px; font-weight: 800; }
:lang(ko) h1 { letter-spacing: -0.03em; line-height: 1.18; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.lead b { color: var(--ink); font-weight: 650; }
.route { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); background: var(--elev); padding: 10px 14px;
  font-size: 15px; color: var(--muted); margin: 0 0 28px; }
.route b { color: var(--ink); }
.route svg { width: 16px; height: 16px; vertical-align: -3px; }
.phone { justify-self: center; width: min(330px, 100%); border-radius: 46px; padding: 10px; background: #111; box-shadow: 0 30px 80px -30px rgba(0,0,0,.45), 0 0 0 1px #2a2a2e inset; }
.phone img { border-radius: 37px; }
@media (max-width: 860px) {
  .hero { padding: 40px 0 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .phone { width: min(290px, 78%); }
}

/* 마디 */
section.band { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 16px; font-weight: 750; }
:lang(ko) h2 { letter-spacing: -0.035em; line-height: 1.25; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 36px; font-size: 1.05rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } section.band { padding: 52px 0; } }
.card { border: 1px solid var(--line); padding: 24px; background: var(--bg); }
.card.elev { background: var(--elev); }
.card h3 { margin: 0 0 10px; font-size: 1.12rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.card li { margin: 4px 0; }
.card li b { color: var(--ink); font-weight: 600; }
.card.good { border-color: var(--ink); }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); }
.card.good .tag { border-color: var(--rec); color: var(--rec); }
.ico { width: 22px; height: 22px; flex: none; }

/* 순서 */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { border: 1px solid var(--line); padding: 22px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--bg);
  font-weight: 750; margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* 화면 */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots img { border-radius: 26px; border: 1px solid var(--line); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots figure { scroll-snap-align: start; } }

/* 자주 묻는 것 */
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 46em; }

/* 끝 띠 */
.final { text-align: center; padding: 80px 0; border-top: 1px solid var(--line); }
.final h2 { margin-bottom: 12px; }
.final p { color: var(--muted); margin: 0 0 26px; }

/* 글 (안내) */
article.doc { max-width: 720px; margin: 0 auto; padding: 48px var(--gut) 72px; }
article.doc h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); }
article.doc h2 { font-size: 1.5rem; margin-top: 44px; }
article.doc h3 { font-size: 1.15rem; margin-top: 28px; }
article.doc p, article.doc li { color: var(--ink); }
article.doc ol li, article.doc ul li { margin: 8px 0; }
article.doc .lead { color: var(--muted); }
article.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0; }
article.doc th, article.doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
article.doc th { background: var(--elev); }
.callout { border-left: 3px solid var(--rec); background: var(--elev); padding: 14px 16px; margin: 20px 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }

/* 바닥 */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .right { margin-left: auto; }
@media (max-width: 640px) { footer .right { margin-left: 0; width: 100%; } }
