/* All That Guitar website */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #14213a;
  --text-2: #4a5872;
  --line: #dbe3f0;
  --brand: #1458b8;
  --brand-2: #2a8cf0;
  --brand-deep: #0f2a5c;
  --gold: #e9a92c;
  --gold-deep: #a86a12;
  --link: #1458b8;
  --chip: #e4eefc;
  --shadow: 0 1px 2px rgba(15, 42, 92, .06), 0 8px 24px rgba(15, 42, 92, .08);
  --radius: 18px;
  --gutter: 16px;
  --maxw: 1120px;
  --header-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1426;
    --surface: #111e36;
    --surface-2: #16264a;
    --text: #e7edf8;
    --text-2: #a9b6cc;
    --line: #253656;
    --link: #7cb8ff;
    --chip: #1b3060;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1426;
  --surface: #111e36;
  --surface-2: #16264a;
  --text: #e7edf8;
  --text-2: #a9b6cc;
  --line: #253656;
  --link: #7cb8ff;
  --chip: #1b3060;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Hiragino Sans", "PingFang SC", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:lang(ja) body, body:lang(ja), :lang(zh) body, body:lang(zh) { word-break: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px;
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; letter-spacing: -.01em; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { font-weight: 600; color: var(--text-2); font-size: 13px; margin-left: 2px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.lang { position: relative; flex: none; }
.lang select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 34px 7px 34px; min-height: 40px; cursor: pointer;
}
.lang svg { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-2); }
.lang .globe { left: 11px; }
.lang .caret { right: 12px; }
@media (max-width: 720px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .brand small { display: none; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, #0f2a5c 0%, #1458b8 55%, #2a8cf0 100%);
  border-radius: 0 0 32px 32px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; padding-top: 72px; padding-bottom: 80px; position: relative; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: #ffd98a; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 217, 138, .35); padding: 4px 12px; border-radius: 999px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 18px; font-weight: 800; }
.hero h1 .en { display: block; font-size: .42em; font-weight: 700; letter-spacing: .02em; color: #cfe3ff; margin-top: 10px; }
.hero p.lead { font-size: clamp(16px, 1.9vw, 19px); color: #dbe8ff; margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn-gold { background: linear-gradient(180deg, #ffd27a, #e9a92c); color: #2a1a00; box-shadow: 0 6px 18px rgba(233, 169, 44, .35); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #cfe3ff; }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 0 4px rgba(255, 210, 122, .25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(9, 30, 70, .45); border: 1px solid rgba(255, 255, 255, .18); color: #eaf2ff; }

.hero-art { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 24px 40px rgba(0, 10, 40, .45)); }
.strings { position: absolute; left: 50%; top: -400px; bottom: -400px; width: 30%; transform: translateX(-50%); display: flex; justify-content: space-between; pointer-events: none; }
.strings i { display: block; width: 2px; background: linear-gradient(90deg, #c9d3e3, #ffffff 50%, #aab6c8); box-shadow: 0 0 6px rgba(255, 255, 255, .35); transform-origin: center; }
.strings i:nth-child(-n+3) { width: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .strings i { animation: pluck 1.6s cubic-bezier(.2, .7, .3, 1) .4s 1 both; }
  .strings i:nth-child(2) { animation-delay: .48s; }
  .strings i:nth-child(3) { animation-delay: .56s; }
  .strings i:nth-child(4) { animation-delay: .64s; }
  .strings i:nth-child(5) { animation-delay: .72s; }
  .strings i:nth-child(6) { animation-delay: .80s; }
  .hero-art:hover .strings i { animation: pluck 1.2s cubic-bezier(.2, .7, .3, 1) 1 both; }
}
@keyframes pluck {
  0% { transform: translateX(0); }
  10% { transform: translateX(3px); }
  20% { transform: translateX(-2.5px); }
  32% { transform: translateX(2px); }
  45% { transform: translateX(-1.4px); }
  60% { transform: translateX(.8px); }
  78% { transform: translateX(-.4px); }
  100% { transform: translateX(0); }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; gap: 8px; text-align: center; }
  .hero-art { order: -1; width: min(240px, 62vw); margin-bottom: 12px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .chips { justify-content: center; }
  .strings { top: -60px; bottom: -36px; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
}

/* Sections */
section.block { padding: 72px 0 8px; }
.sec-head { max-width: 680px; margin: 0 0 32px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; letter-spacing: -.015em; margin: 0 0 10px; }
.sec-head p { color: var(--text-2); margin: 0; font-size: 17px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin: 14px 0 6px; line-height: 1.35; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #1458b8, #2a8cf0); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.grid .card:nth-child(4n+2) .ico { background: linear-gradient(135deg, #e9a92c, #f3c45f); color: #2a1a00; }
.grid .card:nth-child(4n+3) .ico { background: linear-gradient(135deg, #6c4fd8, #9a7cf0); }
.grid .card:nth-child(4n+4) .ico { background: linear-gradient(135deg, #0e8f7e, #2cc3a7); }

.privacy { background: var(--surface-2); border-radius: 28px; padding: 40px 28px; margin-top: 72px; }
.privacy .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .privacy .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .privacy { padding: 28px 16px; border-radius: 22px; } .privacy .grid { grid-template-columns: 1fr; } }
.privacy .card { box-shadow: none; }
.privacy .ico { background: var(--brand-deep); color: #ffd27a; }
.more { margin-top: 22px; }
.more a { font-weight: 700; text-decoration: none; }
.more a:hover { text-decoration: underline; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.fact .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; }
.fact strong { display: block; font-size: 16px; }
.fact span { color: var(--text-2); font-size: 15px; }

.contact { margin: 72px 0 0; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 32px; border-radius: 28px; color: #fff; background: linear-gradient(120deg, #0f2a5c, #1458b8); }
.contact h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 28px); }
.contact p { margin: 0; color: #d6e5ff; }
@media (max-width: 560px) { .contact { padding: 24px 18px; border-radius: 22px; } .contact .btn { width: 100%; } }

/* Footer */
.site-footer { margin-top: 72px; padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }

/* Legal pages */
.doc-hero { background: linear-gradient(120deg, #0f2a5c 0%, #1458b8 60%, #2a8cf0 100%); color: #fff; border-radius: 0 0 28px 28px; }
.doc-hero .wrap { padding-top: 40px; padding-bottom: 40px; }
.doc-hero h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 40px); line-height: 1.25; letter-spacing: -.015em; }
.doc-hero p { margin: 0; color: #d6e5ff; }
.doc-hero .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.doc-hero .tabs a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); min-height: 40px; display: inline-flex; align-items: center; }
.doc-hero .tabs a[aria-current="page"] { background: #fff; color: var(--brand-deep); border-color: #fff; }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding-top: 36px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; font-size: 14px; padding-right: 4px; }
@media (min-width: 961px) { .toc summary { pointer-events: none; } .toc summary::after { display: none; } }
.toc details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc summary { cursor: pointer; font-weight: 800; padding: 12px 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
.toc details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.toc ol { list-style: none; margin: 0; padding: 0 8px 12px; }
.toc ol ol { padding: 0 0 4px 12px; }
.toc a { display: block; padding: 5px 8px; border-radius: 8px; color: var(--text-2); text-decoration: none; line-height: 1.45; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.toc .lvl2 > a { font-weight: 700; color: var(--text); }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .toc { position: static; max-height: none; }
}
.doc { max-width: 780px; min-width: 0; }
.doc h1 { display: none; }
.doc h2 { font-size: 22px; line-height: 1.4; margin: 40px 0 12px; padding-top: 4px; letter-spacing: -.01em; }
.doc h3 { font-size: 18px; line-height: 1.45; margin: 28px 0 8px; }
.doc h2:first-child, .doc > p:first-child + h2 { margin-top: 8px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 1.5em; }
.doc li { margin: 4px 0; }
.doc li > ul, .doc li > ol { margin: 4px 0 4px; }
.doc strong { font-weight: 700; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc .effective { display: inline-block; font-weight: 700; color: var(--text-2); background: var(--chip); padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.doc-note { margin: 0 0 24px; padding: 12px 16px; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text-2); font-size: 14px; }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow); display: grid; place-items: center; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Language chooser page */
.chooser { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px var(--gutter); }
.chooser ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chooser a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; }

@media print {
  .site-header, .toc, .to-top, .site-footer .links, .doc-hero .tabs { display: none !important; }
  .doc-hero { background: none; color: #000; }
  .doc-hero p { color: #333; }
  .doc-layout { display: block; }
  body { background: #fff; color: #000; }
}
