/* GOLDENF 브랜드 페이지: 아이보리 바탕 · 딥그린 글자 · 테라코타 강조(BOBPOOH 가이드). 제품 카드는 제품 색을 조금씩 쓴다. */
:root {
  --ivory: #fbf3e7; --paper: #fffdf8; --green: #1f3d2b; --terra: #c0622d; --sage: #eef3e6; --line: #e3d9c6; --muted: #5f6b62;
  --purple: #6d4fd0; --atlas: #22306b; --teal: #2f8f9d;
  --bg: var(--ivory); --text: var(--green); --card: var(--paper);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #16211b; --text: #eef0e8; --card: #1e2b24; --line: #33443a; --muted: #b5c0b5; --sage: #203027; --paper: #1e2b24; }
}
:root[data-theme="dark"] { --bg: #16211b; --text: #eef0e8; --card: #1e2b24; --line: #33443a; --muted: #b5c0b5; --sage: #203027; --paper: #1e2b24; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 64px; } /* 고정 머리줄(60px)에 제목이 가리지 않게 */
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Noto Sans KR", "Malgun Gothic", sans-serif; font-size: 17px; line-height: 1.65; letter-spacing: -0.2px; word-break: keep-all; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand b { font-size: 21px; font-weight: 900; letter-spacing: 1px; }
.brand span { font-size: 13px; color: var(--muted); }
nav { display: flex; gap: 18px; font-size: 15px; font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover { color: var(--terra); }

.hero { padding: 56px 0 32px; }
.hero-in { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: center; }
.kicker { margin: 0; font-weight: 800; color: var(--terra); font-size: 18px; }
h1 { margin: 10px 0 16px; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.15; font-weight: 900; letter-spacing: -1.5px; }
h1 em { font-style: normal; color: var(--terra); }
.lead { margin: 0 0 24px; font-size: 19px; color: var(--muted); max-width: 560px; }
.bear { justify-self: center; width: min(420px, 100%); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 12px; background: var(--terra); color: #fff; font-weight: 800;
  text-decoration: none; border: 2px solid var(--terra); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.link { background: transparent; border-color: transparent; color: var(--text); padding: 0 6px; }

.section { padding: 48px 16px; }
h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: -0.8px; }
.sub { margin: 6px 0 24px; color: var(--muted); }

/* 브랜드 스토리 */
.story { background: var(--sage); }
.story-in { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px 40px; align-items: center; }
.story h2 { margin: 8px 0 18px; line-height: 1.3; }
.story h2 em { font-style: normal; color: var(--terra); }
.story-text p:not(.kicker) { margin: 0 0 14px; max-width: 660px; }
.story-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-pair figure { margin: 0; padding: 12px 10px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.story-pair img { display: block; width: 100%; }
.story-pair figcaption { margin-top: 6px; font-size: 15px; font-weight: 800; line-height: 1.45; }
.story-pair figure + figure figcaption { color: var(--terra); }
.story-h3 { margin: 34px 0 12px; font-size: 20px; font-weight: 900; }
.asks { list-style: none; counter-reset: ask; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.asks li { counter-increment: ask; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 18px; font-weight: 800; line-height: 1.45; }
.asks li::before { content: counter(ask); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--terra); color: #fff; font-size: 14px; vertical-align: 2px; }
.story-end { margin: 22px 0 0; color: var(--muted); }
.story-end b { color: var(--text); }

.product { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; margin: 0 0 22px; padding: 28px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(31, 61, 43, .06); }
.tag { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0; }
.product h3 { display: flex; align-items: center; gap: 12px; margin: 6px 0 8px; font-size: 30px; font-weight: 900; letter-spacing: -0.6px; }
.product h3 img { border-radius: 10px; }
.product p { margin: 0; }
.points { margin: 12px 0 0; padding-left: 20px; }
.points li { margin: 2px 0; }
.offer { margin-top: 16px !important; padding: 12px 16px; border-radius: 12px; background: var(--sage); }
.offer span { font-size: 15px; color: var(--muted); }
.ws .tag, .ws h3 { color: var(--purple); }
.ws .btn:not(.ghost):not(.link) { background: var(--purple); border-color: var(--purple); }
.shot { border-radius: 14px; border: 1px solid var(--line); }
.atlas .tag, .atlas h3 { color: #4057c8; }
:root[data-theme="dark"] .atlas h3, :root[data-theme="dark"] .atlas .tag { color: #9fb0ff; }
.atlas .btn { background: var(--atlas); border-color: var(--atlas); }
.stars { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; background: radial-gradient(circle at 30% 30%, #2d3f8f, var(--atlas) 60%, #121a40); overflow: hidden; }
.stars i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #9fb0ff; }
.stars i:nth-child(1) { left: 12%; top: 22%; } .stars i:nth-child(2) { left: 26%; top: 40%; } .stars i:nth-child(3) { left: 38%; top: 18%; }
.stars i:nth-child(4) { left: 52%; top: 36%; } .stars i:nth-child(5) { left: 64%; top: 20%; background: #ffb38a; } .stars i:nth-child(6) { left: 78%; top: 44%; }
.stars i:nth-child(7) { left: 20%; top: 66%; } .stars i:nth-child(8) { left: 34%; top: 78%; } .stars i:nth-child(9) { left: 48%; top: 62%; }
.stars i:nth-child(10) { left: 62%; top: 74%; } .stars i:nth-child(11) { left: 74%; top: 60%; } .stars i:nth-child(12) { left: 88%; top: 72%; }
.stars span { position: absolute; left: 18px; bottom: 14px; color: #dfe5ff; font-weight: 700; font-size: 15px; }
/* GA-Atlas 지도(엔진은 GA-Atlas의 AtlasWindow·AtlasStage). 무대는 GA-Atlas처럼 흰 바탕이라 창 안의 글자색은 테마와 무관하게 고정한다. */
.atlas-map { --line: #e6dcc8; --font-serif: "Noto Sans KR", "Malgun Gothic", sans-serif; --font-mono: ui-monospace, Consolas, monospace; --stage-raised: #fff;
  display: grid; min-height: 450px; }
.atlas-map .stars { aspect-ratio: auto; min-height: 450px; }
.atlas-window { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fbfaf7; color: #4a4f5a; }
.atlas-bar, .atlas-legend { display: flex; align-items: center; gap: 6px 12px; padding: 9px 14px; font-size: 13px; line-height: 1.5; }
.atlas-bar { justify-content: space-between; border-bottom: 1px solid var(--line); }
.atlas-title { font-weight: 800; color: var(--atlas); }
.atlas-toggle { min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(22, 26, 32, .2); background: #fff; color: #4a4f5a; font: inherit; font-size: 13px; cursor: pointer; }
.atlas-toggle:disabled { opacity: .5; cursor: default; }
.atlas-stage { position: relative; height: 360px; }
.atlas-legend { flex-wrap: wrap; border-top: 1px solid var(--line); color: #6a6f79; }
.atlas-legend-sel { margin-left: auto; color: #b8452a; font-weight: 700; }
.atlas-fallback { margin: 0; padding: 20px; }
.atlas-fallback p { margin: 8px 0 0; font-size: 14px; }
.ebook .tag, .ebook h3 { color: var(--teal); }
.ebook .btn:not(.ghost) { background: var(--teal); border-color: var(--teal); }
.cover { justify-self: center; width: min(440px, 100%); height: auto; border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .16); }

.guide { background: var(--sage); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #111; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .wait { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #e9e9e9; padding: 16px; background: linear-gradient(135deg, #2b2160, #6d4fd0); }
.player .wait b { display: block; font-size: 24px; }
.videos { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.videos button { width: 100%; height: 100%; text-align: left; font: inherit; color: var(--text); background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px;
  cursor: pointer; display: grid; gap: 6px; }
.videos button[aria-current="true"] { border-color: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 25%, transparent); }
.videos button:disabled { cursor: default; opacity: .75; }
.videos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #ddd; }
.videos .no { font-size: 13px; font-weight: 800; color: var(--purple); }
.videos b { font-size: 18px; }
.videos small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot p { margin: 4px 0; }

@media (max-width: 860px) {
  .hero-in, .product, .story-in, .asks { grid-template-columns: 1fr; }
  .bear { width: 260px; order: -1; }
  .product { padding: 20px; }
  .atlas-map, .atlas-map .stars { min-height: 390px; }
  .atlas-stage { height: 300px; }
  nav { gap: 12px; font-size: 14px; }
  .brand span { display: none; }
}

/* 유튜브 미리보기(누르면 플레이어로 바뀐다) */
.yt { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #111; }
.yt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 14px; background: rgba(20, 20, 20, .78); }
.yt-play::after { content: ""; position: absolute; left: 31px; top: 15px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.yt:hover .yt-play { background: #e62117; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #111; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .yt, .player .yt-frame { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.videos li { display: grid; gap: 6px; align-content: start; }
.videos .read { padding-left: 4px; font-size: 14px; font-weight: 800; color: var(--purple); text-decoration: none; }
.videos .read:hover { text-decoration: underline; }

/* 하위 페이지(사용 가이드·개인정보 처리방침) */
.sub-page { max-width: 880px; padding-top: 24px; padding-bottom: 56px; }
.sub-page section { margin-top: 36px; }
.sub-page h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 12px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.sub-h1 { margin: 8px 0 14px; font-size: clamp(28px, 4vw, 40px); line-height: 1.3; font-weight: 900; letter-spacing: -1px; }
.sub-page .lead { max-width: none; margin-bottom: 20px; }
.pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pts li { padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.pts b { display: block; color: var(--terra); }
.pts span { color: var(--muted); }
.steps { margin: 0; padding-left: 24px; }
.steps li { margin: 4px 0; font-weight: 700; }
.script { padding: 16px 20px; border-radius: 14px; background: var(--sage); }
.script p { margin: 0 0 8px; }
.faq dt { margin-top: 14px; font-weight: 800; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
.try { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.try h2 { margin-top: 0; }
.try p { margin: 0 0 8px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; font-weight: 800; }
.pager a { text-decoration: none; color: var(--purple); }
.guide-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-links a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.guide-links a[aria-current="page"] { border-color: var(--purple); color: var(--purple); font-weight: 800; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.doc td, .doc th { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.doc h1 { font-size: clamp(26px, 3.6vw, 34px); }
.doc h2 { font-size: 21px; margin-top: 28px; }
