/* StockNote2 site — Paper & Pine. No external fonts, CDNs or trackers. */
@font-face {
  font-family: "SN Sans";
  src: url("/fonts/sn-sans.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #faf8f3;
  --paper-2: #f2efe6;
  --card: #ffffff;
  --ink: #1b2a24;
  --muted: #5c6862;
  --line: #e2e7e2;
  --pine: #18382f;
  --pine-2: #28594b;
  --pine-3: #0f2620;
  --gold: #e5c158;
  --gold-2: #f3dc8f;
  --gold-ink: #7d621b;
  --mint: #e2ede6;
  --pine-line: #28594b;
  --on-pine: #f4efe0;
  --on-pine-muted: #b9c7bf;
  --shadow: 0 1px 2px rgba(15, 38, 32, .06), 0 18px 40px -18px rgba(15, 38, 32, .28);
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1714;
    --paper-2: #12201b;
    --card: #15251f;
    --ink: #ece8dc;
    --muted: #a3afa8;
    --line: #253831;
    --gold-ink: #e5c158;
    --mint: #1c3029;
    --pine-line: #5fa48c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1714; --paper-2: #12201b; --card: #15251f; --ink: #ece8dc; --muted: #a3afa8;
  --line: #253831; --gold-ink: #e5c158; --mint: #1c3029; --pine-line: #5fa48c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--pine-3); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "SN Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 20px; }
.narrow { width: min(760px, 100%); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--pine-3); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---- top bar ---- */
.bar {
  position: fixed; inset: 12px 12px auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1096px; margin: 0 auto;
  padding: 8px 10px 8px 10px;
  border-radius: 999px;
  background: rgba(15, 38, 32, .92);
  border: 1px solid rgba(229, 193, 88, .22);
  color: var(--on-pine);
  transition: background .3s, box-shadow .3s;
}
.bar.scrolled { background: rgba(15, 38, 32, .85); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand img { border-radius: 10px; }
.bar nav { display: flex; gap: 2px; }
.bar nav a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; color: var(--on-pine-muted); transition: color .2s, background .2s; }
.bar nav a:hover { color: var(--on-pine); background: rgba(255, 255, 255, .08); }
.still .bar { position: absolute; } /* offscreen capture tools mis-draw fixed bars */
@media (max-width: 640px) { .bar nav a:not(:nth-last-child(-n+2)) { display: none; } .bar nav a { font-size: 13px; padding: 7px 10px; } }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 80% 0%, #24584a 0%, var(--pine) 45%, var(--pine-3) 100%);
  color: var(--on-pine);
  padding: 116px 0 0;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(229, 193, 88, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 193, 88, .05) 1px, transparent 1px);
  background-size: 100% 34px, 34px 100%;
  -webkit-mask-image: radial-gradient(90% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(90% 70% at 70% 30%, #000 20%, transparent 75%);
}
.hero-in { display: grid; gap: 40px; align-items: center; padding-bottom: 64px; }
@media (min-width: 920px) { .hero-in { grid-template-columns: 1.05fr .95fr; gap: 56px; padding-bottom: 88px; } }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(229, 193, 88, .12); border: 1px solid rgba(229, 193, 88, .35); color: var(--gold-2);
}
.hero h1 { font-size: clamp(36px, 9.6vw, 66px); font-weight: 900; margin: 22px 0 20px; letter-spacing: -.04em; }
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.lead { font-size: clamp(16px, 4.2vw, 19px); color: var(--on-pine-muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 16px; text-decoration: none;
  padding: 15px 24px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn.primary { background: var(--gold); color: var(--pine-3); box-shadow: 0 10px 30px -10px rgba(229, 193, 88, .7); }
.btn.primary:hover { box-shadow: 0 16px 36px -10px rgba(229, 193, 88, .85); }
.btn.ghost { border: 1px solid rgba(244, 239, 224, .35); color: var(--on-pine); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn:active { transform: scale(.97); }
.fine { font-size: 14px; color: #93a69c; }

/* hero notebook art */
.hero-art { position: relative; max-width: 460px; width: 100%; margin: 0 auto; padding: 18px 8px 26px; }
.note {
  position: relative;
  background: linear-gradient(180deg, #fffdf6, #f6f1e2);
  color: var(--ink);
  border-radius: 26px;
  padding: 18px 18px 16px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(229, 193, 88, .35);
  transform: rotateZ(-1.5deg);
}
.note::before { /* binding rings */
  content: ""; position: absolute; left: 24px; right: 24px; top: -7px; height: 14px;
  background: radial-gradient(circle at 7px 7px, #c9a24a 5px, transparent 6px) 0 0 / 26px 14px repeat-x;
  opacity: .9;
}
.note-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.note-head img { border-radius: 8px; }
.chip { margin-left: auto; font-size: 12px; font-weight: 800; color: #28594b; background: #e2ede6; padding: 4px 10px; border-radius: 999px; }
.sk { display: inline-block; height: 9px; border-radius: 6px; background: #ddd8c8; }
.sk.light { background: rgba(255, 255, 255, .5); }
.w20 { width: 20%; } .w24 { width: 24%; } .w30 { width: 30%; } .w40 { width: 40%; }
.note-chart { width: 100%; height: auto; aspect-ratio: 320 / 170; overflow: visible; }
.note-chart .ruled line { stroke: #e6dcc2; stroke-width: 1; }
.note-chart .steps rect { fill: #28594b; opacity: .14; transform-origin: bottom; transform-box: fill-box; }
.note-chart .target { stroke: #b48a2c; stroke-width: 1.5; stroke-dasharray: 5 6; }
.note-chart .trace { fill: none; stroke: #c9a24a; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.note-chart .tip { fill: #e5c158; stroke: #fffdf6; stroke-width: 3; }
.note-rows { display: grid; gap: 9px; margin-top: 12px; }
.row { display: grid; grid-template-columns: 12px 1fr 1.3fr; align-items: center; gap: 10px; }
.row .sk { width: auto; }
.sw { width: 12px; height: 12px; border-radius: 4px; }
.s1 { background: #28594b; } .s2 { background: #c9a24a; } .s3 { background: #b4bcb6; }
.meter { height: 8px; border-radius: 6px; background: #ebe5d3; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; transform-origin: left; }
.b1 { width: 70%; background: #28594b; } .b2 { width: 45%; background: #c9a24a; } .b3 { width: 22%; background: #b4bcb6; }
.note-foot { margin-top: 12px; text-align: right; }
.hand { display: inline-block; font-weight: 800; font-size: 14px; color: #8a6a1c; border-bottom: 2px solid #e5c158; transform: rotate(-3deg); }


/* ---- sections ---- */
.sec { padding: 92px 0; position: relative; }
.sec.alt { background: var(--paper-2); }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--gold-ink); margin-bottom: 12px; }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 8px; border-radius: 2px; }
.sec h2 { font-size: clamp(30px, 7.6vw, 46px); font-weight: 900; margin-bottom: 16px; }
.sub { color: var(--muted); font-size: 17px; max-width: 36em; }
.muted { color: var(--muted); font-size: 15px; margin-top: 16px; }

/* flow */
.flow { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 14px; position: relative; counter-reset: s; }
.flow::before {
  content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px;
  background: linear-gradient(var(--gold), var(--gold)) 0 0 / 100% var(--p, 100%) no-repeat, var(--line);
}
.flow li {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 20px 20px 76px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s;
}
.flow li:hover { border-color: rgba(201, 162, 74, .6); }
.flow .num {
  position: absolute; left: 14px; top: 18px; width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; font-size: 13px; font-weight: 900;
  background: var(--pine); color: var(--gold); box-shadow: 0 0 0 5px var(--paper);
}
.flow h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.flow p { color: var(--muted); font-size: 15.5px; }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .flow::before { left: 30px; right: 30px; top: 37px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold)) 0 0 / var(--p, 100%) 100% no-repeat, var(--line); }
  .flow li { padding: 72px 18px 22px; }
  .flow .num { left: 18px; top: 20px; }
}

/* split layouts */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.rev > :first-child { order: 2; } }
.split-copy > p { color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.facts li { padding: 14px 16px 14px 44px; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: 15.5px; }
.facts li::before { content: ""; position: absolute; left: 16px; top: 20px; width: 14px; height: 14px; border-radius: 5px; background: var(--pine-2); box-shadow: inset 0 0 0 3px var(--gold); }
.facts strong { color: var(--ink); font-weight: 800; }

/* allocation lab */
.lab-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 26px 22px 22px; box-shadow: var(--shadow); }
.lab-title { font-weight: 800; font-size: 15px; color: var(--gold-ink); margin-bottom: 6px; }
.glide { width: 100%; height: auto; margin-top: 18px; overflow: visible; }
.glide-target { stroke: #c9a24a; stroke-width: 2; stroke-dasharray: 6 6; }
.glide-steps rect { fill: var(--pine-2); transform-origin: bottom; transform-box: fill-box; }
.glide-steps rect:nth-child(1) { opacity: .25; } .glide-steps rect:nth-child(2) { opacity: .35; } .glide-steps rect:nth-child(3) { opacity: .45; }
.glide-steps rect:nth-child(4) { opacity: .58; } .glide-steps rect:nth-child(5) { opacity: .7; } .glide-steps rect:nth-child(6) { opacity: .84; }
.lab-caption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.lab-warn { font-size: 14px; color: var(--muted); margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--gold); }

/* forward record */
.trio { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.trio li { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 16.5px; }
.ln { width: 34px; height: 4px; border-radius: 4px; flex: none; }
.l1 { background: #c9a24a; } .l2 { background: var(--pine-line); } .l3 { background: var(--muted); }
.timeline { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 22px 18px 18px; box-shadow: var(--shadow); }
.timeline svg { width: 100%; height: auto; }
.tl-grid line { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 5; }
.tl { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 0; }
.tl1 { stroke: #c9a24a; } .tl2 { stroke: var(--pine-line); } .tl3 { stroke: var(--muted); stroke-width: 3; }
.tl-start { fill: var(--gold); stroke: var(--card); stroke-width: 3; }
.tl-q circle { fill: var(--mint); stroke: var(--gold); stroke-width: 2; }
.tl-q text { fill: var(--gold-ink); font-size: 18px; font-weight: 900; font-family: inherit; }
.tl-labels { position: relative; height: 22px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tl-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tl-labels span:nth-child(1) { left: 6.25%; } .tl-labels span:nth-child(2) { left: 23.75%; } .tl-labels span:nth-child(3) { left: 46.25%; } .tl-labels span:nth-child(4) { left: 93.75%; transform: translateX(-80%); }
.tl-cap { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

/* tabs */
.tabs-wrap { display: grid; gap: 36px; margin-top: 40px; align-items: center; }
@media (min-width: 920px) { .tabs-wrap { grid-template-columns: 340px 1fr; gap: 64px; } }
.phone { width: 260px; margin: 0 auto; padding: 10px; border-radius: 42px; background: linear-gradient(160deg, #2b3a35, #0b1411); box-shadow: 0 40px 70px -30px rgba(15, 38, 32, .6), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone-in { position: relative; height: 500px; border-radius: 33px; overflow: hidden; background: #faf8f3; display: flex; flex-direction: column; }
.ph-top { display: flex; align-items: center; justify-content: space-between; padding: 30px 18px 14px; background: var(--pine); }
.ph-dot { width: 26px; height: 26px; border-radius: 50%; background: rgba(229, 193, 88, .8); }
.scr { position: absolute; left: 0; right: 0; top: 74px; bottom: 54px; padding: 16px 14px; display: none; flex-direction: column; gap: 12px; }
.phone-in[data-screen="decide"] .scr-decide, .phone-in[data-screen="hold"] .scr-hold, .phone-in[data-screen="market"] .scr-market,
.phone-in[data-screen="perf"] .scr-perf, .phone-in[data-screen="set"] .scr-set { display: flex; }
.blk { background: #fff; border: 1px solid #e2e7e2; border-radius: 14px; padding: 12px; }
.ratio { display: flex; gap: 4px; height: 52px; padding: 14px 12px; }
.ratio i { display: block; border-radius: 6px; }
.r1 { flex: 7; background: #28594b; } .r2 { flex: 2; background: #c9a24a; } .r3 { flex: 1; background: #b4bcb6; }
.list { display: grid; gap: 10px; }
.list span { height: 10px; border-radius: 6px; background: #e7e2d3; }
.list span:nth-child(2) { width: 80%; } .list span:nth-child(3) { width: 60%; }
.btnish { height: 44px; background: #28594b; border: 0; margin-top: auto; }
.card { display: grid; gap: 8px; }
.card svg, .mrow svg { width: 100%; height: 34px; }
.card path, .mrow path { fill: none; stroke: #28594b; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; }
.mrow .sk { flex: none; }
.mrow svg { width: 46%; height: 24px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding: 14px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: #28594b; height: 40%; }
.bars i:nth-child(4n+1) { background: #c9a24a; } .bars i:nth-child(4n+3) { background: #b4bcb6; }
.bars i:nth-child(1) { height: 30%; } .bars i:nth-child(2) { height: 26%; } .bars i:nth-child(3) { height: 22%; }
.bars i:nth-child(5) { height: 55%; } .bars i:nth-child(6) { height: 46%; } .bars i:nth-child(7) { height: 40%; }
.bars i:nth-child(9) { height: 80%; } .bars i:nth-child(10) { height: 70%; } .bars i:nth-child(11) { height: 64%; }
.bars b { width: 8px; }
.setrow { display: flex; align-items: center; justify-content: space-between; }
.tg { width: 40px; height: 22px; border-radius: 22px; background: #d9dcd6; position: relative; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.tg.on { background: #28594b; } .tg.on::after { left: 21px; }
.slider { width: 46%; height: 6px; border-radius: 6px; background: #e2e7e2; position: relative; }
.slider i { position: absolute; left: 0; top: 0; bottom: 0; width: 70%; background: #28594b; border-radius: 6px; }
.slider i::after { content: ""; position: absolute; right: -8px; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: #e5c158; }
.ph-tabs { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #e2e7e2; background: #fff; padding: 10px 4px 16px; position: relative; z-index: 1; }
.ph-tabs span { text-align: center; font-size: 12px; font-weight: 700; color: #8a948f; transition: color .3s; }
.phone-in[data-screen="decide"] [data-t="decide"], .phone-in[data-screen="hold"] [data-t="hold"], .phone-in[data-screen="market"] [data-t="market"],
.phone-in[data-screen="perf"] [data-t="perf"], .phone-in[data-screen="set"] [data-t="set"] { color: #28594b; }
.tablist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tablist button {
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  display: grid; gap: 4px; padding: 16px 18px 16px 22px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.tablist button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); transition: background .3s; }
.tablist button[aria-pressed="true"] { border-color: rgba(201, 162, 74, .7); box-shadow: var(--shadow); }
.tablist button[aria-pressed="true"]::before { background: var(--gold); }
.tn { font-weight: 900; font-size: 18px; }
.td { color: var(--muted); font-size: 15px; }

/* honest (dark band) */
.sec.dark { background: radial-gradient(100% 70% at 10% 0%, #24584a, var(--pine) 50%, var(--pine-3)); color: var(--on-pine); }
.sec.dark .eyebrow { color: var(--gold); }
.cards { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; gap: 18px; } }
.hc {
  position: relative; padding: 26px 22px 24px; border-radius: 24px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(229, 193, 88, .22);
  transition: background .3s, border-color .3s;
}
.hc:hover { background: rgba(255, 255, 255, .08); border-color: rgba(229, 193, 88, .5); }
.hc-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(229, 193, 88, .14); color: var(--gold); margin-bottom: 16px; transition: transform .4s var(--ease), background .3s; }
.hc-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc:hover .hc-ico { transform: rotate(-8deg) scale(1.08); background: rgba(229, 193, 88, .24); }
.hc h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.hc p { color: var(--on-pine-muted); font-size: 15.5px; }
.disclaimer { margin-top: 32px; font-weight: 700; color: var(--gold-2); }

/* faq */
.faq-grid { display: grid; gap: 8px; }
.faq-head .sub a { color: var(--gold-ink); font-weight: 700; }
@media (min-width: 920px) { .faq-grid { grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; } .faq-grid .faq { margin-top: 0; } .faq-head { position: sticky; top: 100px; } }
.faq { display: grid; gap: 10px; margin-top: 30px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: rgba(201, 162, 74, .6); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 800; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--pine-2); font-weight: 900; transition: rotate .3s var(--ease); }
:root[data-theme="dark"] .faq summary::after { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .faq summary::after { color: var(--gold); } }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 20px 20px; color: var(--muted); font-size: 16px; }

/* footer */
.foot { background: var(--pine-3); color: var(--on-pine-muted); padding: 48px 0 40px; }
.foot-in { display: grid; gap: 22px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 12px; }
.foot-brand strong { display: block; color: var(--on-pine); font-size: 18px; }
.foot-brand span { font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-links a { text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(229, 193, 88, .3); color: var(--on-pine); transition: background .25s, border-color .25s; }
.foot-links a:hover { background: rgba(229, 193, 88, .12); border-color: var(--gold); }
.foot-links .other { background: var(--gold); color: var(--pine-3); border-color: var(--gold); }
.foot-links .other:hover { background: var(--gold-2); }
.foot-fine { font-size: 13px; }
.foot-fine a { color: var(--on-pine); }
@media (min-width: 820px) { .foot-in { grid-template-columns: 1fr auto; align-items: center; } .foot-fine { grid-column: 1 / -1; } }

/* ---- 개발 이력: 내용은 ../build-updates.mjs가 updates.json으로 넣는다. 전진 기록 그림의 .tl과 겹치지 않게 hx- ---- */
.hx-sec {
  background: linear-gradient(var(--paper-2), var(--paper) 60%);
  overflow: hidden; isolation: isolate;
  --t-new: #28594b; --t-better: #7d621b; --t-fix: #b4513a; --t-release: #18382f; --t-start: #a77a12;
  --hx-dot: var(--paper-2);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hx-sec { --t-new: #6fc3a3; --t-better: #e5c158; --t-fix: #ee9a82; --t-release: #5fa48c; --t-start: #f3dc8f; }
}
:root[data-theme="dark"] .hx-sec { --t-new: #6fc3a3; --t-better: #e5c158; --t-fix: #ee9a82; --t-release: #5fa48c; --t-start: #f3dc8f; }
.hx-sec .t-new { --c: var(--t-new); } .hx-sec .t-better { --c: var(--t-better); } .hx-sec .t-fix { --c: var(--t-fix); }
.hx-sec .t-release { --c: var(--t-release); } .hx-sec .t-start { --c: var(--t-start); }

/* 지금 만들고 있는 것: 소나무 색 카드 */
.hx-now {
  position: relative; overflow: hidden; margin-top: 36px; padding: 20px 22px; border-radius: var(--r);
  color: var(--on-pine); background: radial-gradient(120% 160% at 0% 0%, #24584a, var(--pine) 55%, var(--pine-3));
  border: 1px solid rgba(229, 193, 88, .22);
  box-shadow: 0 24px 50px -28px rgba(15, 38, 32, .9);
}
.hx-now::after { content: ""; position: absolute; right: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 193, 88, .32), transparent 70%); pointer-events: none; }
.hx-now-h { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--gold); }
.hx-beat { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }
.hx-now ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; position: relative; z-index: 1; }
.hx-now li { position: relative; padding-left: 19px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.hx-now li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--gold-2); }
@media (min-width: 760px) { .hx-now ul { grid-template-columns: 1fr 1fr; gap: 6px 28px; } }

/* 타임라인: 금빛→소나무 세로줄 + 날짜 머리 + 종이 카드 */
.hx-tl { list-style: none; margin: 34px 0 0; padding: 0; }
.hx-day { position: relative; padding: 0 0 34px 36px; }
.hx-day::before {
  content: ""; position: absolute; left: 11px; top: 16px; bottom: 0; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--gold), var(--pine-line) 70%, color-mix(in srgb, var(--pine-line) 0%, transparent));
}
.hx-day::after {
  content: ""; position: absolute; left: 4px; top: 10px; width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 0 5px var(--hx-dot), 0 0 0 7px color-mix(in srgb, var(--gold) 35%, transparent), 0 0 20px color-mix(in srgb, var(--gold) 70%, transparent);
}
.hx-date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.hx-date b {
  font-size: 46px; font-weight: 900; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--pine-2), var(--gold-ink)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hx-date b { background-image: linear-gradient(120deg, #6fc3a3, var(--gold)); } }
:root[data-theme="dark"] .hx-date b { background-image: linear-gradient(120deg, #6fc3a3, var(--gold)); }
.hx-date span { font-size: 17px; font-weight: 800; }
.hx-date small { flex-basis: 100%; font-size: 13px; color: var(--muted); }

.hx-ups { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.hx-up {
  position: relative; padding: 18px 20px 19px 22px; border-radius: 18px; overflow: visible;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s;
}
.hx-up::after { /* 종류 색 책갈피 */
  content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c);
}
.hx-up:hover { transform: translateX(3px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.hx-up::before { /* 줄 위 작은 점(종류 색) */
  content: ""; position: absolute; left: -29px; top: 25px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 4px var(--hx-dot);
}
.hx-top { display: flex; align-items: center; gap: 8px; }
.hx-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 800; line-height: 1.5; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
}
.hx-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hx-ver { font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 8px; border-radius: 999px; border: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.hx-up h3 { margin-top: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.hx-up p { margin-top: 5px; color: var(--muted); font-size: 15px; }

/* 배포·시작은 눈에 띄게: 소나무 카드에 금빛 */
.hx-up.t-release, .hx-up.t-start {
  color: var(--on-pine); border-color: rgba(229, 193, 88, .3);
  background: radial-gradient(240px circle at 100% 0%, rgba(229, 193, 88, .3), transparent 70%), linear-gradient(140deg, var(--pine-2), var(--pine-3));
  box-shadow: 0 18px 40px -22px rgba(15, 38, 32, .9);
}
.hx-up.t-release::after, .hx-up.t-start::after { display: none; }
.hx-up.t-release p, .hx-up.t-start p { color: var(--on-pine-muted); }
.hx-up.t-release .hx-badge, .hx-up.t-start .hx-badge { color: var(--gold-2); background: rgba(229, 193, 88, .16); }
.hx-up.t-release .hx-badge::before, .hx-up.t-start .hx-badge::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.hx-up.t-release .hx-ver { color: var(--on-pine-muted); border-color: rgba(229, 193, 88, .35); }
.hx-up.t-release::before, .hx-up.t-start::before { width: 14px; height: 14px; left: -31px; top: 23px; background: var(--gold); box-shadow: 0 0 0 4px var(--hx-dot), 0 0 14px var(--gold); }
.hx-up.t-release h3, .hx-up.t-start h3 { font-size: 19px; }

.hx-more { margin: 0 0 0 36px; }
.hx-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); transition: border-color .2s;
}
.hx-more > summary::-webkit-details-marker { display: none; }
.hx-more > summary span { font-size: 12px; color: var(--muted); font-weight: 700; }
.hx-more > summary::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 2px; border-right: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: rotate(45deg); transition: transform .25s; }
.hx-more[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.hx-more > summary:hover { border-color: var(--gold); }
.hx-more > .hx-tl { margin: 22px 0 0 -36px; }

@media (min-width: 900px) {
  .hx-day { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 56px; padding: 0 0 44px; }
  .hx-day::before { left: 231px; top: 18px; }
  .hx-day::after { left: 224px; top: 12px; }
  .hx-date { position: sticky; top: 96px; align-self: start; display: grid; justify-items: end; text-align: right; gap: 4px; }
  .hx-date b { font-size: 76px; }
  .hx-date small { flex-basis: auto; }
  .hx-ups { margin: 0; grid-template-columns: 1fr 1fr; gap: 14px; }
  .hx-ups > .t-release, .hx-ups > .t-start, .hx-ups > :only-child { grid-column: 1 / -1; }
  /* 두 칸이면 오른쪽 카드 점이 줄에 닿지 않으므로 줄 위 점은 한 줄 전체 카드(배포·시작)에만. 첫 카드는 날짜 점이 대신한다 */
  .hx-up::before { display: none; }
  .hx-ups > .t-release:not(:first-child)::before, .hx-ups > .t-start:not(:first-child)::before { display: block; }
  .hx-more { margin-left: 256px; }
  .hx-more > .hx-tl { margin-left: -256px; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 404 */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 40px 0; }
.lost img { border-radius: 18px; margin-bottom: 8px; }
.lost h1 { font-size: clamp(30px, 8vw, 48px); font-weight: 900; margin: 18px 0 10px; }
