/* 사이클 차트 — 차트 용지 위의 잉크, 빨간 펜(바닥)과 초록 펜(고점) */
:root {
  --paper: #E7EAED;
  --sheet: #F4F6F7;
  --ink: #14202E;
  --ink-2: #4A5668;
  --ink-3: #6E7989;
  --rule: #CDD3DA;
  --rule-2: #DDE2E7;
  --buy: #D8402E;
  --buy-wash: rgba(216, 64, 46, .12);
  --sell: #0B9A90;
  --sell-text: #087A72;
  --sell-wash: rgba(11, 154, 144, .13);
  --marker: #F2C230;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --pen: "Nanum Pen Script", cursive;
  --r-s: 6px;
  --r-m: 12px;
  --nav-h: 58px;
  --wrap: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6; letter-spacing: -0.01em;
  font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.035em; }
p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-s); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.wrap.narrow > * { max-width: 820px; }

/* 상단 진행 막대 */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

/* 상단 메뉴 */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(231, 234, 237, .74); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(205, 211, 218, .7);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.04em; }
.brand svg { color: var(--ink); }
.nav nav { display: flex; gap: clamp(10px, 2.4vw, 28px); }
.nav nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- 1. 스토리 ---------- */
.story { position: relative; height: 460vh; background: var(--sheet); }
.story.static { height: 100svh; }
.story-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
#storyCanvas { position: absolute; inset: 0; display: block; }
.story-head { position: absolute; left: clamp(16px, 5vw, 64px); top: calc(var(--nav-h) + clamp(28px, 7vh, 80px)); max-width: 760px; will-change: transform, opacity; }
.story-head h1 { font-size: clamp(48px, 9vw, 124px); font-weight: 850; letter-spacing: -0.055em; line-height: .98; }
.k-buy { color: var(--buy); }
.k-sell { color: var(--sell); }
.story-head p { margin-top: 22px; max-width: 34em; font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-2); font-weight: 500; }
.story-readout { position: absolute; left: clamp(16px, 5vw, 64px); bottom: clamp(18px, 4vh, 44px); display: flex; align-items: baseline; gap: 16px; pointer-events: none; }
.ro-year { font-size: clamp(48px, 7.4vw, 112px); font-weight: 850; letter-spacing: -0.06em; line-height: .85; color: var(--ink); opacity: .92; }
.ro-price { font-size: clamp(18px, 2.2vw, 30px); font-weight: 700; color: var(--ink-2); }
.story-note {
  position: absolute; right: clamp(16px, 7vw, 110px); bottom: clamp(24px, 6vh, 64px); max-width: 330px;
  background: rgba(244, 246, 247, .92); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 14px 18px;
  display: grid; gap: 2px; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease;
}
.story-note.on { opacity: 1; transform: none; }
.story-note.off { opacity: 0 !important; }
.story-note b { font-size: 17px; }
.story-note b.n-buy { color: var(--buy); }
.story-note b.n-sell { color: var(--sell-text); }
.story-note span { color: var(--ink-2); font-size: 15px; }
.story-end {
  position: absolute; right: clamp(16px, 7vw, 110px); bottom: clamp(64px, 13vh, 150px);
  width: min(340px, calc(100% - 32px)); background: var(--ink); color: #F4F6F7; border-radius: var(--r-m); padding: 22px 24px 24px;
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.story-end.on { opacity: 1; transform: none; pointer-events: auto; }
.se-label { font-size: 15px; color: #B9C2CE; }
.se-score { font-size: 76px; font-weight: 850; letter-spacing: -0.05em; line-height: 1; margin: 6px 0 4px; }
.se-score small { font-size: 22px; color: #8E99A8; margin-left: 4px; font-weight: 600; }
.story-end[data-zone="buy"] .se-score, .story-end[data-zone="strongBuy"] .se-score { color: #FF7A68; }
.story-end[data-zone="sell"] .se-score, .story-end[data-zone="strongSell"] .se-score { color: #3FD0C4; }
.se-state { color: #D5DBE3; font-size: 15px; margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--marker); color: var(--ink); text-decoration: none; font-weight: 800; padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }
.scroll-cue::after { content: ""; display: block; width: 1.5px; height: 28px; background: var(--ink-3); margin: 6px auto 0; animation: cue 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

/* ---------- 공통 섹션 머리 ---------- */
section { position: relative; }
.terminal, .how, .backtest, .temperature, .faq { padding: clamp(64px, 10vh, 120px) 0; }
.sec-head { max-width: 780px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 820; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

/* ---------- 2. 터미널 ---------- */
.terminal { background: var(--paper); }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tabs { display: inline-flex; background: var(--sheet); border: 1px solid var(--rule); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-2); font-size: 16px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.search { position: relative; flex: 1 1 320px; max-width: 520px; }
.search input {
  width: 100%; height: 50px; border: 1px solid var(--rule); background: var(--sheet); border-radius: 999px; padding: 0 20px 0 46px; font-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%234A5668' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6'/%3E%3Cpath d='m14 14 4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px 50%;
}
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 32, 46, .12); }
#suggest { position: absolute; z-index: 30; left: 0; right: 0; top: 56px; margin: 0; padding: 6px; list-style: none; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); box-shadow: 0 18px 40px -18px rgba(20, 32, 46, .35); max-height: 380px; overflow: auto; }
#suggest li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
#suggest li:hover, #suggest li.on { background: #E6EAEE; }
.s-name { font-weight: 700; }
.s-sub { color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid var(--rule); background: transparent; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.chips button:hover { border-color: var(--ink); color: var(--ink); }

.t-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.chart-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.chart-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 16px; border-bottom: 1px solid var(--rule-2); }
.asset-title { display: flex; align-items: baseline; gap: 10px; margin-right: auto; min-width: 0; }
.asset-title strong { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 18ch; }
.asset-title span { color: var(--ink-3); font-size: 14px; font-weight: 600; white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button.on { background: var(--ink); color: #fff; }
.toggles { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.toggles label { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink-2); cursor: pointer; user-select: none; }
.toggles input { accent-color: var(--ink); width: 15px; height: 15px; margin: 0; }
.chart-wrap { position: relative; }
.chart { height: clamp(440px, 64vh, 700px); }
.hover-legend { position: absolute; left: 12px; top: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-2); background: rgba(244, 246, 247, .9); padding: 6px 10px; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .12s; max-width: calc(100% - 90px); }
.hover-legend.on { opacity: 1; }
.hover-legend b { color: var(--ink); }
.hover-legend .hs b { font-size: 14px; }
.chart-status { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; background: rgba(244, 246, 247, .78); font-weight: 600; color: var(--ink-2); z-index: 4; }
.chart-status.on { display: grid; }
.chart-status.warn { inset: 12px 80px auto 12px; display: none; background: #FFF6DA; border: 1px solid #EBCB6B; border-radius: 8px; padding: 10px 14px; font-size: 14px; color: #5B4A12; }
.chart-status.warn.on { display: block; }
.chart-status.err { color: var(--buy); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 12px 16px; border-top: 1px solid var(--rule-2); font-size: 14px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 18px; height: 12px; border-radius: 3px; }
.sw-buy { background: var(--buy-wash); box-shadow: inset 0 0 0 1.5px var(--buy); }
.sw-sell { background: var(--sell-wash); box-shadow: inset 0 0 0 1.5px var(--sell); }
.sw-box { background: transparent; border: 1.5px dashed var(--ink-2); }
.sw-ma { height: 2px; background: #8B95A5; }

/* 패널 */
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 20px; position: sticky; top: calc(var(--nav-h) + 14px); }
.p-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 20px; }
.chg { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.chg[data-dir="up"] { color: #C0392B; }
.chg[data-dir="down"] { color: #2563EB; }
.gauge { margin-top: 18px; }
.g-track { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--buy) 0 15%, #D7DCE2 15% 85%, var(--sell) 85% 100%); }
.g-track b { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--sheet); border: 3px solid var(--ink); transition: left .6s cubic-bezier(.2, .8, .2, 1); }
.g-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.g-scale span:nth-child(2) { margin-left: 4%; } .g-scale span:nth-child(3) { margin-right: 4%; }
.p-score { font-size: 64px; font-weight: 850; letter-spacing: -0.06em; line-height: 1; margin-top: 14px; }
.p-score small { font-size: 18px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.panel[data-zone="buy"] .p-score, .panel[data-zone="strongBuy"] .p-score { color: var(--buy); }
.panel[data-zone="sell"] .p-score, .panel[data-zone="strongSell"] .p-score { color: var(--sell-text); }
.p-state { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.p-h { font-size: 14px; font-weight: 700; color: var(--ink-3); margin: 22px 0 8px; letter-spacing: -0.01em; }
.comps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.c-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.c-name { font-weight: 700; font-size: 15px; }
.c-name small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.c-val { font-weight: 700; font-size: 15px; }
.c-bar { position: relative; height: 6px; margin-top: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--buy-wash) 0 15%, #E2E6EA 15% 85%, var(--sell-wash) 85%); }
.c-bar i { position: absolute; top: -3px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px; background: var(--ink); transition: left .5s ease; }
.c-bar i.b { background: var(--buy); } .c-bar i.s { background: var(--sell); } .c-bar i.na { opacity: .25; }
.c-note { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.lines { margin: 0; display: grid; gap: 8px; }
.lines div { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.lines dt { font-weight: 700; }
.lines dt.buy { color: var(--buy); } .lines dt.sell { color: var(--sell-text); }
.lines dd { margin: 0; text-align: right; font-weight: 700; }
.lines small { display: block; color: var(--ink-3); font-weight: 500; font-size: 12px; }
.onchain { border-top: 1px dashed var(--rule); margin-top: 18px; }
.oc-row { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; font-size: 15px; margin-bottom: 6px; }
.oc-row b { font-weight: 800; } .oc-row b.buy { color: var(--buy); } .oc-row b.sell { color: var(--sell-text); }
.oc-row small { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; }
.oc-date { font-size: 12px; color: var(--ink-3); }
.p-src { margin-top: 18px; font-size: 12px; color: var(--ink-3); }

/* ---------- 3. 원리 ---------- */
.how { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.flow { list-style: none; margin: 8px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 18px 28px 18px 0; border-top: 2px solid var(--ink); }
.flow li::before { content: counter(f); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; }
.flow li:last-child { border-image: linear-gradient(90deg, var(--buy) 0 50%, var(--sell) 50% 100%) 1; }
.flow b { display: block; margin-top: 10px; font-size: 18px; }
.flow span { color: var(--ink-2); font-size: 15px; }
.ind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.ind { padding: 24px; background: var(--paper); }
.ind:nth-child(odd) { border-right: 1px solid var(--rule); }
.ind:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
.ind h3 { font-size: 22px; font-weight: 800; }
.ind p { margin-top: 8px; color: var(--ink-2); font-size: 15px; max-width: 46em; }
.ind canvas { display: block; width: 100%; height: 90px; margin: 14px 0 6px; }
.ind .ind-now { color: var(--ink); font-size: 15px; }
.ind .ind-fact { font-family: var(--pen); font-size: 21px; line-height: 1.3; color: var(--ink); margin-top: 8px; }
.how-note { margin-top: 22px; color: var(--ink-2); font-size: 15px; max-width: 760px; }

/* ---------- 4. 백테스트 ---------- */
.backtest { background: var(--paper); }
.bt-rule { background: var(--sheet); border-left: 4px solid var(--ink); padding: 14px 18px; border-radius: 0 var(--r-s) var(--r-s) 0; }
.bt-rule b { margin-right: 6px; }
.bt-lead { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.35; max-width: 30em; margin: 8px 0 28px; }
.bt-warn { display: block; margin-top: 14px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.6; color: var(--ink-2); background: #FFF6DA; border: 1px solid #EBCB6B; border-radius: 8px; padding: 12px 16px; max-width: 46em; }
.bt-lead .hl { background: linear-gradient(transparent 58%, rgba(242, 194, 48, .55) 58%); }
.bt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; }
.bt-chart-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.bt-chart-head { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 16px; border-bottom: 1px solid var(--rule-2); font-size: 14px; color: var(--ink-2); }
.bt-chart-head .k { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.bt-chart-head .muted { margin-left: auto; color: var(--ink-3); }
.ln { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--ink); }
.ln-hodl { border-top: 2.5px dashed var(--ink-3); }
.eq-chart { height: 360px; }
.bt-side { display: grid; gap: 16px; align-content: start; }
.bt-stats { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 6px 18px; }
.bt-stats div { padding: 12px 0; border-bottom: 1px solid var(--rule-2); display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.bt-stats div:last-child { border-bottom: 0; }
.bt-stats dt { font-size: 14px; color: var(--ink-3); font-weight: 600; padding-top: 2px; }
.bt-stats dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bt-stats .v1 { font-size: 20px; font-weight: 800; }
.bt-stats .v2 { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.bt-stats small { flex-basis: 100%; font-size: 12px; color: var(--ink-3); }
.sliders { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 16px 18px; display: grid; gap: 6px; }
.sliders label { font-size: 15px; font-weight: 600; }
.sliders output { font-weight: 800; }
.sliders input[type=range] { width: 100%; accent-color: var(--ink); margin: 0 0 8px; }
.btn-ghost { justify-self: start; border: 1px solid var(--rule); background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-ghost:hover { border-color: var(--ink); }
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.tables h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.tbl-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); }
table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
th { text-align: left; font-weight: 600; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--rule); }
td { padding: 10px 14px; border-bottom: 1px solid var(--rule-2); }
tr:last-child td { border-bottom: 0; }
td.pos { color: #B23A2C; font-weight: 700; } td.neg { color: #2456C9; font-weight: 700; }
td.empty { color: var(--ink-3); text-align: center; }
.open { font-weight: 700; }
.honest { margin-top: 36px; max-width: 880px; }
.honest h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.honest ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }
.honest b { color: var(--ink); }

/* ---------- 5. 시장 온도 ---------- */
.temperature { background: var(--sheet); border-top: 1px solid var(--rule); }
.temp-h { font-size: 16px; font-weight: 700; color: var(--ink-3); margin: 26px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
.tile { text-align: left; border: 1px solid var(--rule); background: var(--paper); border-radius: var(--r-m); padding: 14px 16px 12px; cursor: pointer; display: grid; gap: 4px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.t-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-score { font-size: 38px; font-weight: 850; letter-spacing: -0.05em; line-height: 1.05; min-height: 40px; }
.tile[data-zone="buy"] .t-score, .tile[data-zone="strongBuy"] .t-score { color: var(--buy); }
.tile[data-zone="sell"] .t-score, .tile[data-zone="strongSell"] .t-score { color: var(--sell-text); }
.tile[data-zone="buy"], .tile[data-zone="strongBuy"] { background: linear-gradient(var(--buy-wash), var(--buy-wash)), var(--paper); }
.tile[data-zone="sell"], .tile[data-zone="strongSell"] { background: linear-gradient(var(--sell-wash), var(--sell-wash)), var(--paper); }
.t-bar { position: relative; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--buy) 0 15%, #D3D9DF 15% 85%, var(--sell) 85%); margin: 4px 0 2px; }
.t-bar i { position: absolute; top: -3px; width: 3px; height: 11px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; }
.t-zone { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.spin { display: inline-block; width: 20px; height: 20px; border: 2.5px solid var(--rule); border-top-color: var(--ink); border-radius: 50%; animation: sp 0.8s linear infinite; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
.empty { color: var(--ink-3); }

/* ---------- 6. 질문 ---------- */
.faq { background: var(--paper); }
.faq h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 820; margin-bottom: 18px; }
details { border-bottom: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 18px; color: var(--ink-2); max-width: 46em; }

/* ---------- 바닥글 ---------- */
.foot { background: var(--ink); color: #C9D0D9; padding: 44px 0 56px; font-size: 14px; }
.foot p + p { margin-top: 8px; }
.foot .credits { color: #8E99A8; }
.foot a { color: #E3E7EC; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
  .t-body, .bt-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav nav a:nth-child(n+3) { display: none; }
  .story { height: 380vh; }
  .story-head { top: calc(var(--nav-h) + 18px); }
  .story-head p { margin-top: 14px; font-size: 15px; }
  .story-note { left: 16px; right: 16px; bottom: auto; top: 46%; max-width: none; padding: 10px 14px; }
  .story-note b { font-size: 15px; } .story-note span { font-size: 14px; }
  .story-readout { bottom: 22px; }
  .story-end { bottom: 18px; right: 16px; left: 16px; width: auto; padding: 18px 20px; }
  .story-sticky.ended .story-readout { opacity: 0; }
  .story-readout { transition: opacity .3s; }
  .scroll-cue { display: none; }
  .se-score { font-size: 52px; }
  .chart { height: 440px; }
  .chart-bar { padding: 12px; }
  .toggles { width: 100%; }
  .ind-grid { grid-template-columns: 1fr; }
  .ind:nth-child(odd) { border-right: 0; }
  .ind:not(:last-child) { border-bottom: 1px solid var(--rule); }
  .tables { grid-template-columns: 1fr; }
  .bt-chart-head .muted { margin-left: 0; }
  .flow { grid-template-columns: 1fr; }
  .eq-chart { height: 300px; }
}
