/* Linklbee site, shared by the EN (/) and KO (/ko) pages.
   Self-contained: no external fonts, scripts or images. Light theme only.
   White by default (2026-10-25 19:53). Sections are split by faces, not rules: .band.soft is the pale face (ink at 5%),
   .dark is the ink face with white text — one or two per page. --night-* and --on-dark mean "on the current face":
   ink-based on white, paper-based inside .dark.
   Two colors only (2026-10-25 19:30): --brand-ink and --brand-paper. Greys are those two at lower opacity; emphasis is weight,
   inversion (ink face + white text) or a rule, never a third color. --gain/--loss stay for signed numbers. */
:root {
  --brand-ink: #312723;
  --brand-paper: #ffffff;
  --paper: var(--brand-paper);
  --paper2: color-mix(in srgb, var(--brand-ink) 5%, transparent);
  --foot-face: color-mix(in srgb, var(--brand-ink) 6%, var(--brand-paper)); /* = dashboard --paper2 (app/site.css), footer only */
  --ink: var(--brand-ink);
  --muted: color-mix(in srgb, var(--brand-ink) 78%, transparent);
  --rule: color-mix(in srgb, var(--brand-ink) 18%, transparent);
  --amber-ink: var(--brand-ink);
  --ink-hover: color-mix(in srgb, var(--brand-ink) 85%, transparent);
  --night: var(--brand-ink);
  --night2: var(--paper2);
  --night-rule: var(--rule);
  --night-head: color-mix(in srgb, var(--brand-ink) 4%, transparent);
  --night-ink: var(--ink);
  --night-muted: var(--muted);
  --night-field: color-mix(in srgb, var(--brand-ink) 45%, transparent);
  --on-dark: var(--ink);
  --on-dark-hover: var(--ink-hover);
  --gain: #1e6b3e;
  --loss: #a3261c;
  --gain-d: #8bd6a4;
  --loss-d: #ff9384;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 5px;
  color-scheme: light;
}
.brand .lg-y, .diagram .mk-y { fill: var(--on-dark); }
.diagram .mk-m { fill: var(--night-muted); }
.brand .lg-k { fill: var(--paper); }
.dark .brand .lg-k { fill: var(--night); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/25px var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
:lang(ko) body, body:lang(ko) { word-break: keep-all; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 2px; border-radius: 3px; }
.dark :focus-visible { outline-color: var(--on-dark); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.col { max-width: 760px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
h2 { font-size: clamp(25px, 2.9vw, 34px); line-height: 1.18; font-weight: 600; letter-spacing: -0.018em; }
h3 { font-size: 17px; line-height: 25px; font-weight: 600; }
p { margin: 0; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-ink); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 22px; }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.stack > *, .split > *, .hero > *, .hero-copy > * { min-width: 0; }
code { font: 14px var(--mono); background: var(--paper2); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }

/* bands: white, the pale face, the ink face. Whitespace separates them, never a rule */
.band { padding-block: 48px; background: var(--paper); }
.band.tight { padding-block: 48px; }
.soft, .bar { background: var(--paper2); --night2: var(--paper); }
.dark {
  background: var(--night); color: var(--night-ink);
  --night2: color-mix(in srgb, var(--brand-paper) 7%, transparent);
  --night-rule: color-mix(in srgb, var(--brand-paper) 20%, transparent);
  --night-head: color-mix(in srgb, var(--brand-paper) 4%, transparent);
  --night-ink: var(--brand-paper);
  --night-muted: color-mix(in srgb, var(--brand-paper) 66%, transparent);
  --night-field: color-mix(in srgb, var(--brand-paper) 45%, transparent);
  --on-dark: var(--brand-paper);
  --on-dark-hover: color-mix(in srgb, var(--brand-paper) 86%, transparent);
}
/* an ink band is a panel set in from the edges, so white space surrounds it */
.band.dark { background: var(--paper); padding-inline: 16px; }
.band.dark > .wrap { background: var(--night); border-radius: 12px; padding: 48px clamp(20px, 4vw, 56px); }
.dark a { color: var(--night-ink); }
.dark .eyebrow { color: var(--on-dark); }
.dark .muted { color: var(--night-muted); }
.dark code { background: var(--night2); border-color: var(--night-rule); color: var(--night-ink); }
.hl { color: var(--on-dark); font-weight: 700; }
.light-hl { color: var(--amber-ink); font-weight: 600; }

/* announcement bar (pale face) + nav */
.bar { font-size: 14px; line-height: 20px; }
.bar .wrap { padding-block: 10px; display: flex; gap: 6px 14px; flex-wrap: wrap; justify-content: center; text-align: center; }
.bar b { color: var(--on-dark); font-weight: 700; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; flex: none; }
.links { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 15px; }
.links a { text-decoration: none; color: var(--night-muted); }
.links a:hover, .links a[aria-current="page"] { color: var(--night-ink); }
.links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--on-dark); }
.navr { display: flex; gap: 16px; align-items: center; }
.lang { font-size: 14px; color: var(--night-muted); white-space: nowrap; }
.lang a { color: var(--night-muted); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--night-ink); font-weight: 600; }
@media (max-width: 900px) { .links { order: 3; width: 100%; padding-bottom: 12px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: var(--r); font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-y { background: var(--ink); color: var(--paper); }
.btn-y:hover { background: var(--ink-hover); }
.dark .btn-y { background: var(--on-dark); color: var(--night); }
.dark .btn-y:hover { background: var(--on-dark-hover); }
.btn-k { background: var(--night); color: var(--paper); }
.btn-k:hover { background: var(--ink-hover); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--rule); }
.dark .btn-line { color: var(--night-ink); border-color: var(--night-rule); }
.btn-line:hover { border-color: currentColor; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.cta { display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; }
.textlink { font-weight: 600; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 40px 56px; }
.hero-copy { display: grid; gap: 22px; }
.lede { font-size: 18px; line-height: 28px; color: var(--night-muted); max-width: 580px; }
.lede b { color: var(--night-ink); }
.assure { font-size: 14px; line-height: 22px; color: var(--night-muted); max-width: 580px; border-left: 2px solid var(--on-dark); padding-left: 14px; }
.assure b { color: var(--night-ink); font-weight: 600; }
@media (max-width: 980px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* code panel with tabs */
.code { background: var(--night2); color: var(--night-ink); border: 1px solid transparent; border-radius: var(--r); overflow: hidden; min-width: 0; }
.code.dark { background: var(--night); }
.dark .code, .dark .term, .dark .formula { border-color: var(--night-rule); }
.tabs { display: flex; border-bottom: 1px solid var(--night-rule); overflow-x: auto; }
.tabs button { background: none; border: 0; color: var(--night-muted); font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 15px 16px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--night-ink); border-bottom-color: var(--on-dark); }
.code pre { margin: 0; padding: 18px 20px; font: 13px/21px var(--mono); overflow-x: auto; }
.code .c { color: var(--night-muted); }
.code .k { color: var(--night-ink); font-weight: 700; }
.code .s { color: var(--night-ink); }
.code-foot { font: 12px/18px var(--mono); color: var(--night-muted); padding: 0 20px 16px; }

/* reader split: three cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid transparent; border-radius: var(--r); background: var(--night2); padding: 20px; display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--ink); }
.card .k { font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card .big { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.card .big + p { font-size: 14px; line-height: 21px; color: var(--muted); }
.card .q { font-size: 15px; line-height: 23px; }
.card .go { font-weight: 600; color: var(--amber-ink); }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* two-column: text left, panel right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 980px) { .split, .split.even { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 23px; }
.ticks li::before { content: "—"; color: var(--on-dark); font-weight: 700; }
.band:not(.dark) .ticks li::before { color: var(--amber-ink); }

/* diagram */
.diagram { width: 100%; max-width: 420px; height: auto; display: block; justify-self: center; }
.diagram .box { fill: var(--paper); stroke: var(--night-rule); stroke-width: 1.2; }
.dark .diagram .box { fill: var(--night2); }
.diagram .box.y { stroke: var(--on-dark); stroke-width: 2; }
.diagram .box.dash { stroke: var(--on-dark); stroke-dasharray: 5 4; }
.diagram .t { fill: var(--night-ink); font: 600 15px var(--sans); }
.diagram .s { fill: var(--night-muted); font: 13px var(--sans); }
.diagram .lab { fill: var(--night-muted); font: 600 12px var(--mono); }
.diagram .laby { fill: var(--on-dark); font: 600 12px var(--mono); }
.diagram .ln { stroke: var(--night-muted); stroke-width: 1.4; fill: none; }
.diagram .ln.y { stroke: var(--on-dark); stroke-width: 2; }
.diagram .ln.d { stroke-dasharray: 4 4; }

/* tables */
.tbl { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 22px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font: 600 12px/16px var(--mono); letter-spacing: 0.04em; color: var(--muted); background: var(--paper2); }
tbody tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.gain { color: var(--gain); font-weight: 600; }
td.best { font-weight: 700; }
.dark .tbl { background: var(--night2); border-color: var(--night-rule); }
.dark th, .dark td { border-color: var(--night-rule); }
.dark thead th { background: var(--night-head); color: var(--night-muted); }
.dark td.gain { color: var(--gain-d); }
/* yes/no table (scope) */
td.yes, td.no { font: 700 15px/22px var(--mono); white-space: nowrap; }
td.yes { color: var(--gain); }
td.no { color: var(--loss); }
td .why { display: block; color: var(--muted); font-size: 14px; line-height: 21px; margin-top: 2px; }
tr.grp td { background: var(--paper2); font: 600 12px/16px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* five-cell reading guide */
.five { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: var(--r); overflow: hidden; background: var(--night2); }
.five div { padding: 14px; border-right: 1px solid var(--rule); display: grid; gap: 4px; align-content: start; }
.five div:last-child { border-right: 0; }
.five b { font: 600 11px/14px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.five span { font-size: 14px; line-height: 21px; }
@media (max-width: 860px) { .five { grid-template-columns: minmax(0, 1fr); } .five div { border-right: 0; border-bottom: 1px solid var(--rule); } .five div:last-child { border-bottom: 0; } }

/* method blocks */
.formula { font: 14px/23px var(--mono); background: var(--night2); color: var(--night-ink); border: 1px solid transparent; border-radius: var(--r); padding: 16px 18px; overflow-x: auto; white-space: pre; }
.assume { border: 1px solid transparent; border-radius: var(--r); background: var(--night2); padding: 16px 18px; display: grid; gap: 6px; font-size: 15px; line-height: 23px; }
.assume b { font: 600 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dark .assume { border-color: var(--night-rule); }
.dark .assume b { color: var(--night-muted); }
ol.crit { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }

/* loss chart (light face) */
.chartbox { border-radius: var(--r); background: var(--night2); padding: 18px 14px 10px; }
.chartbox h3 { padding-inline: 6px; }
.chartbox h3 small { font-weight: 400; color: var(--muted); font-size: 14px; }
.chartscroll { overflow-x: auto; }
.chart { width: 100%; min-width: 640px; height: auto; display: block; margin-top: 8px; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .axis0 { stroke: var(--ink); stroke-width: 1.2; }
.chart .tick, .chart .n { fill: var(--muted); font: 12px var(--mono); }
.chart .lab { fill: var(--ink); font: 12.5px var(--sans); }
.chart .bar { fill: var(--gain); }
.chart .bar.loss { fill: var(--loss); }
.chart .val { fill: var(--ink); font: 600 12.5px var(--mono); }
.chart .val.lossv { fill: var(--loss); }
.chart .switch { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .swl { fill: var(--amber-ink); font: 600 12.5px var(--sans); }

/* security */
.data3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.data4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.data3 div, .data4 div { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.data3 p, .data4 p { font-size: 15px; line-height: 23px; color: var(--muted); }
@media (max-width: 1080px) { .data4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .data3, .data4 { grid-template-columns: minmax(0, 1fr); } }
/* AI 에 붙여넣는 프롬프트 (받기 페이지) — 먹색 면 안 */
.prompts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prompts > div { border-top: 2px solid var(--on-dark); padding-top: 14px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.prompts p { font-size: 15px; line-height: 23px; color: var(--night-muted); }
.prompts .btn { justify-self: start; }
.prompts summary { cursor: pointer; font-size: 14px; color: var(--night-muted); }
.prompts pre.term { margin: 8px 0 0; max-height: 360px; overflow: auto; white-space: pre-wrap; font-size: 12px; line-height: 19px; }
@media (max-width: 860px) { .prompts { grid-template-columns: minmax(0, 1fr); } }
.term { background: var(--night2); color: var(--night-ink); border: 1px solid transparent; border-radius: var(--r); padding: 14px 18px; font: 13px/21px var(--mono); overflow-x: auto; white-space: pre; }
.term .c { color: var(--night-muted); }
.term.report { margin: 0; white-space: pre-wrap; }
.faq { display: grid; border-top: 1px solid var(--rule); }
.faq > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.faq p { color: var(--muted); font-size: 15px; line-height: 24px; }
.faq p + p { margin-top: 10px; }
@media (max-width: 760px) { .faq > div { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* the scope question */
.ask { border-left: 3px solid var(--on-dark); padding: 4px 0 4px 20px; display: grid; gap: 10px; }
.ask p:first-child { font-size: 22px; line-height: 31px; font-weight: 600; letter-spacing: -0.01em; }

/* pricing */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps div { border-radius: var(--r); background: var(--night2); padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.steps .tag { font: 600 12px/1 var(--mono); letter-spacing: 0.06em; color: var(--amber-ink); }
.steps .price { font-size: 22px; line-height: 28px; font-weight: 600; }
.steps p { font-size: 15px; line-height: 23px; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* page header for subpages */
.phead { padding-block: 48px 56px; display: grid; gap: 16px; }
.phead .lede { max-width: 760px; }

/* closing CTA + footer */
.last { display: grid; gap: 20px; }
.last h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
.mail { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mail output { font: 600 18px var(--mono); user-select: all; overflow-wrap: anywhere; color: var(--on-dark); }
/* contact form: plain POST, result shown via :target (no script) */
.ask { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.ask label { display: grid; gap: 6px; font-size: 13px; line-height: 18px; color: var(--night-muted); }
.ask input { height: 40px; padding: 0 12px; border: 1px solid var(--night-field); border-radius: var(--r); background: var(--night2); color: var(--night-ink); font: 15px var(--sans); min-width: 0; }
.ask input:focus-visible { border-color: var(--on-dark); }
.ask .wide { grid-column: 1 / -1; }
.ask textarea { padding: 10px 12px; border: 1px solid var(--night-field); border-radius: var(--r); background: var(--night2); color: var(--night-ink); font: 15px var(--sans); min-width: 0; resize: vertical; }
.ask textarea:focus-visible { border-color: var(--on-dark); }
.ask .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ask .btn { height: 40px; }
.sent { display: none; margin: 0; font-weight: 600; color: var(--on-dark); }
.sent.fail { color: var(--loss); font-weight: 400; }
.dark .sent.fail { color: var(--loss-d); }
.sent:target { display: block; }
#sent:target ~ .ask { display: none; }
footer { background: var(--foot-face); --night2: var(--paper); color: var(--muted); }
footer .wrap { padding-block: 22px 32px; display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; font-size: 13px; line-height: 20px; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }

/* yes/no table stacks on phones instead of squeezing three columns */
@media (max-width: 640px) {
  table.yn, table.yn tbody, table.yn tr, table.yn td { display: block; width: 100%; }
  table.yn thead { display: none; }
  table.yn tr { border-bottom: 1px solid var(--rule); padding: 8px 0; }
  table.yn td { border: 0; padding: 4px 14px; }
  table.yn tr.grp { padding: 0; }
  table.yn tr.grp td { padding: 10px 14px; }
  /* long commands wrap instead of hiding past the box edge; tabs wrap instead of clipping */
  .term { white-space: pre-wrap; overflow-wrap: anywhere; }
  .tabs { flex-wrap: wrap; }
  .tabs button { padding: 12px 12px; }
}
