/* DisplayForge — site styles. Dark-first, light via prefers-color-scheme.
   No external fonts: system stack with CJK fallbacks. */

:root {
  color-scheme: dark light;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --bg: #0b0d14;
  --bg-2: #0f121b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-solid: #131722;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef6;
  --text-2: #c9cde0;
  --muted: #a3a9bf;
  --accent: #a5b4fc;
  --accent-2: #67e8f9;
  --accent-ink: #c7d2fe;
  --btn-1: #4f46e5;
  --btn-2: #7c3aed;
  --ring: #a5b4fc;
  --ok: #4ade80;
  --warn: #fbbf24;
  --tint: rgba(129, 140, 248, 0.12);
  --tint-strong: rgba(129, 140, 248, 0.2);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow-1: rgba(99, 102, 241, 0.28);
  --glow-2: rgba(34, 211, 238, 0.14);

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-2: #eef0f7;
    --surface: #ffffff;
    --surface-2: #f1f3f9;
    --surface-solid: #ffffff;
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.18);
    --text: #0f172a;
    --text-2: #263248;
    --muted: #4a5468;
    --accent: #4338ca;
    --accent-2: #0e7490;
    --accent-ink: #3730a3;
    --ring: #4f46e5;
    --ok: #15803d;
    --warn: #b45309;
    --tint: rgba(79, 70, 229, 0.08);
    --tint-strong: rgba(79, 70, 229, 0.14);
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 50px -24px rgba(15, 23, 42, 0.28);
    --glow-1: rgba(99, 102, 241, 0.16);
    --glow-2: rgba(14, 165, 233, 0.1);
  }
}

/* The hero is always a dark "island" so the night-desk artwork reads well in both themes. */
.hero {
  --bg: #0b0d14;
  --text: #f1f3fa;
  --text-2: #cfd3e4;
  --muted: #b0b6cb;
  --accent: #a5b4fc;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --surface: rgba(255, 255, 255, 0.05);
  --ring: #a5b4fc;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
:lang(ko) { word-break: keep-all; }
:lang(ja), :lang(zh-CN), :lang(zh-TW) { line-break: strict; }
/* Japanese: break headings at phrase boundaries (Chromium 119+), not mid-word. */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { line-height: 1.15; margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code { font-family: var(--mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.i { width: 20px; height: 20px; flex: none; }
.i-sm { width: 16px; height: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface-solid); color: var(--text); padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--border-strong); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------- buttons -- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 20px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-sm { --h: 36px; padding: 0 14px; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { --h: 52px; padding: 0 24px; font-size: 1.02rem; border-radius: 14px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--btn-1), var(--btn-2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 30px -10px rgba(99, 102, 241, 0.7);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 16px 40px -12px rgba(124, 58, 237, 0.8); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--accent); }

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.hdr { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand img { border-radius: 8px; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); background: var(--tint); }
.hdr-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

/* language switcher (<details>, no JS required) */
.lang { position: relative; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  min-height: 36px; padding: 0 10px; border-radius: 10px; color: var(--text-2);
  border: 1px solid var(--border); background: var(--surface); font-size: 0.9rem; font-weight: 500;
  user-select: none; white-space: nowrap;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { border-color: var(--border-strong); color: var(--text); }
.lang .i { width: 18px; height: 18px; }
.lang .chev { transition: transform .2s ease; }
.lang[open] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
  width: min(340px, calc(100vw - 32px)); padding: 8px; border-radius: 14px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.lang-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 0.92rem; }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a[aria-current="true"] { background: var(--tint-strong); color: var(--text); font-weight: 600; }

/* root-only language suggestion banner */
.lang-banner { background: linear-gradient(90deg, var(--tint-strong), var(--tint)); border-bottom: 1px solid var(--border); }
.lang-banner ul { list-style: none; }
.lang-banner li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-block: 10px; font-size: 0.95rem; }
.banner-x {
  margin-inline-start: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.banner-x:hover { background: var(--surface-2); }

/* ---------------------------------------------------------------- hero -- */
.hero { position: relative; overflow: hidden; background: var(--bg); color: var(--text); padding-bottom: clamp(40px, 6vw, 72px); isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 85% 45%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 13, 20, 0.92) 0%, rgba(11, 13, 20, 0.8) 30%, rgba(11, 13, 20, 0.1) 62%, rgba(11, 13, 20, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 20, 0) 35%),
    linear-gradient(180deg, rgba(11, 13, 20, 0.6) 0%, rgba(11, 13, 20, 0) 25%);
}
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: -20% auto auto -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.25), transparent 70%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-inner { min-height: clamp(560px, 72vh, 720px); display: flex; align-items: center; padding-block: clamp(56px, 9vw, 112px) 32px; }
.hero-copy { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
.hero-title {
  margin-top: 22px;
  font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 750; letter-spacing: -0.035em; line-height: 1.02;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 30%, #c7cdfc 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
:lang(ko) .hero-title, :lang(ja) .hero-title, :lang(zh-CN) .hero-title, :lang(zh-TW) .hero-title { letter-spacing: -0.01em; line-height: 1.15; font-size: clamp(2.1rem, 5.2vw, 4rem); }
.hero-lead { margin-top: 22px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-2); max-width: 58ch; line-height: 1.65; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 0.88rem; }
.hero-note .i { width: 18px; height: 18px; color: var(--ok); }

.stats {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, 0.035); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.stats li { display: flex; flex-direction: column; gap: 2px; padding: 20px 24px; }
.stats li + li { border-inline-start: 1px solid var(--border); }
.stats strong { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.stats span { color: var(--muted); font-size: 0.9rem; }

/* ------------------------------------------------------------ sections -- */
.section { padding-block: clamp(64px, 9vw, 112px); scroll-margin-top: 64px; }
.section-compact { padding-block: clamp(32px, 5vw, 56px); }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 720; letter-spacing: -0.03em; }
:lang(ko) .sec-head h2, :lang(ja) .sec-head h2, :lang(zh-CN) .sec-head h2, :lang(zh-TW) .sec-head h2 { letter-spacing: -0.01em; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
#features, #screenshots, #compare, #download, #faq, #guides { scroll-margin-top: 64px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* spotlights */
.spot {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px);
  align-items: center; margin-bottom: clamp(48px, 7vw, 88px);
}
.spot-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.spot-flip .spot-text { order: 2; }
.spot-text h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; margin-top: 18px; }
.spot-text h3 + p { margin-top: 10px; color: var(--muted); font-size: 1.03rem; }
.kbds { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.kbds li { display: inline-flex; align-items: center; gap: 4px; }
.plus { color: var(--muted); font-size: 0.8rem; }
kbd {
  display: inline-block; min-width: 28px; padding: 3px 8px; border-radius: 7px; text-align: center;
  font-family: var(--font); font-size: 0.8rem; font-weight: 600; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px;
}

.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--surface-solid);
  box-shadow: 0 30px 80px -30px var(--glow-1), 0 0 0 1px rgba(255, 255, 255, 0.02), var(--shadow);
}
.frame img { width: 100%; }

.feat-ic {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--accent); background: linear-gradient(135deg, var(--tint-strong), var(--tint));
  border: 1px solid var(--border);
}
.feat-ic .i { width: 22px; height: 22px; }

.feat-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 24px; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.feat:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-2); }
.feat h3 { margin-top: 18px; font-size: 1.1rem; letter-spacing: -0.01em; }
.feat p { margin-top: 8px; color: var(--muted); font-size: 0.96rem; }
.feat-ai { grid-column: 1 / -1; display: flex; gap: 20px; align-items: flex-start;
  border-color: var(--border-strong); background: linear-gradient(120deg, var(--tint-strong), var(--tint) 45%, transparent 100%), var(--surface-solid); }
.feat-ai .feat-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; }
.feat-ai .feat-ic .i { width: 26px; height: 26px; }
.feat-ai h3 { margin-top: 4px; }
.feat-ai p.feat-badge { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.feat-ai-text { min-width: 0; max-width: 72ch; }
@media (max-width: 560px) { .feat-ai { flex-direction: column; gap: 12px; } }

.principles {
  margin-top: 16px; padding: clamp(24px, 4vw, 36px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 24px 40px; align-items: center;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--tint-strong), transparent 55%),
    var(--surface);
}
.principles h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; }
.principles-text p { margin-top: 10px; color: var(--muted); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
}
.pills .i { color: var(--ok); }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.shot { margin: 0; }
.shot-dashboard { grid-column: 1 / -1; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.93rem; font-weight: 500; }

/* comparison */
.table-scroll {
  position: relative;
  overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); -webkit-overflow-scrolling: touch;
}
.cmp { width: 100%; min-width: 820px; border-collapse: separate; border-spacing: 0; font-size: 0.93rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-weight: 600; color: var(--text); background: var(--surface-2); line-height: 1.25; }
.cmp thead th:first-child, .cmp tbody th { text-align: start; }
.cmp tbody th { font-weight: 500; color: var(--text-2); min-width: 240px; }
.cmp .pn { display: block; }
.cmp .ps { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.cmp .self { background: var(--tint); }
.cmp thead .self { background: var(--tint-strong); color: var(--text); }
.cmp td .mk, .cmp td .tag { margin-inline: auto; }
.mk { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.mk-y { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.mk-n { color: var(--muted); }
.mk-p { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.tag-free { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.tag-paid { color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); }
.tag-pro { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.cmp-legend { margin-top: 16px; color: var(--text-2); font-size: 0.9rem; }
.cmp-note { margin-top: 8px; color: var(--muted); font-size: 0.85rem; max-width: 90ch; }

/* download */
.dl {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); overflow: hidden;
  background:
    radial-gradient(90% 120% at 0% 0%, var(--tint-strong), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, var(--glow-2), transparent 60%),
    var(--surface);
}
.dl-main { padding: clamp(28px, 4.5vw, 48px); }
.dl-main h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; }
.dl-lead { margin: 12px 0 26px; color: var(--muted); font-size: 1.05rem; }
.dl-meta { margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.dl-meta div { min-width: 0; }
.dl-meta dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
:lang(ko) .dl-meta dt, :lang(ja) .dl-meta dt, :lang(zh-CN) .dl-meta dt, :lang(zh-TW) .dl-meta dt { text-transform: none; letter-spacing: 0; font-size: 0.82rem; }
.dl-meta dd { margin: 2px 0 0; color: var(--text); font-weight: 500; }
.dl-sha { grid-column: 1 / -1; }
.dl-sha code { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.dl-small { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }
.ss { padding: clamp(28px, 4.5vw, 48px); border-inline-start: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 35%, transparent); }
.ss h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; }
.ss h3 .i { color: var(--ok); width: 22px; height: 22px; }
.ss-list { list-style: none; counter-reset: ss; margin-top: 18px; display: grid; gap: 14px; }
.ss-list li { counter-increment: ss; position: relative; padding-inline-start: 40px; color: var(--text-2); font-size: 0.95rem; }
.ss-list li::before {
  content: counter(ss); position: absolute; inset-inline-start: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; color: var(--accent-ink); background: var(--tint-strong); border: 1px solid var(--border);
}
.ss-list li[data-smartscreen="3"] { color: var(--text); font-weight: 500; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.qa { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .2s ease, background-color .2s ease; }
.qa[open] { border-color: var(--border-strong); background: var(--surface-2); }
.qa summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; border-radius: 14px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { text-wrap: pretty; font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.qa .chev { color: var(--muted); transition: transform .2s ease; }
.qa[open] .chev { transform: rotate(180deg); }
.qa-a { padding: 0 20px 20px; color: var(--muted); }

/* share */
.share { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.share-title { font-size: clamp(1.2rem, 2.4vw, 1.5rem); letter-spacing: -0.02em; }
.share-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--text-2); text-decoration: none; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.chip .i { width: 16px; height: 16px; }
.chip-accent { color: var(--text); background: var(--tint-strong); border-color: var(--border-strong); }
.share-status { min-height: 1.5em; color: var(--ok); font-size: 0.9rem; }

/* prose (privacy) */
.prose-page h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.03em; margin-top: 18px; }
.prose-page h2 { font-size: 1.3rem; margin-top: 40px; letter-spacing: -0.01em; }
.prose-page p { margin-top: 14px; color: var(--text-2); }
.prose-page .muted { color: var(--muted); font-size: 0.92rem; }
.prose-lead { font-size: 1.12rem; color: var(--text) !important; }
.prose-list { margin-top: 14px; padding-inline-start: 1.2em; display: grid; gap: 10px; color: var(--text-2); }
.prose-list li::marker { color: var(--accent); }
.crumbs ol { list-style: none; row-gap: 4px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--border-strong); }

/* guides: landing "popular guides" strip */
.section-tight { padding-block: 0; }
.sec-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.sec-head-row > div { max-width: 720px; }
.sec-head-row .btn { flex: none; }
.plinks { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plink {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%;
  padding: 18px 20px; border-radius: 14px; text-decoration: none;
  color: var(--text); font-weight: 600; font-size: 0.98rem; line-height: 1.4;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.plink:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-1px); }
.plink .arrow { color: var(--accent); transition: transform .2s ease; }
.plink:hover .arrow { transform: translateX(3px); }

/* guides: shared heading block */
.guide, .guide-hub { padding-top: clamp(28px, 4vw, 48px); }
.ghead { max-width: 780px; margin-top: 28px; }
.geyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 9px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; color: var(--accent-ink); background: var(--tint); border: 1px solid var(--border);
}
.geyebrow .i { width: 16px; height: 16px; color: var(--accent); }
.ghead h1 { margin-top: 18px; font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 740; letter-spacing: -0.03em; line-height: 1.1; }
.glead { margin-top: 20px; font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--text-2); max-width: 68ch; }
.gmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; color: var(--muted); font-size: 0.9rem; }
.gmeta span + span::before { content: "·"; margin-inline-end: 18px; color: var(--border-strong); }
:lang(ko) .ghead h1, :lang(ja) .ghead h1, :lang(zh-CN) .ghead h1, :lang(zh-TW) .ghead h1 { letter-spacing: -0.01em; line-height: 1.3; font-size: clamp(1.75rem, 4vw, 2.75rem); }

/* guides: cards (hub + related) */
.gcards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.grelated .gcards { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.gcard {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.gcard:hover { transform: translateY(-2px); border-color: var(--border-strong); background: var(--surface-2); }
.gcard:focus-within { border-color: var(--ring); }
.gcard-n { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.gcard-title { text-wrap: pretty; font-size: 1.16rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; }
.gcard-title a { color: var(--text); text-decoration: none; }
.gcard-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.gcard-title a:focus-visible { outline: none; }
.gcard p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.gcard-more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 0.9rem; font-weight: 600; }
.gcard:hover .gcard-more .arrow { transform: translateX(3px); }
.gcard-more .arrow { transition: transform .2s ease; }

/* guides: article layout */
.guide-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(36px, 5vw, 56px); align-items: start; }
.guide-body { min-width: 0; max-width: 72ch; font-size: 1.0625rem; }
.gtoc { position: sticky; top: 88px; font-size: 0.9rem; }
.gtoc-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
:lang(ko) .gtoc-title, :lang(ja) .gtoc-title, :lang(zh-CN) .gtoc-title, :lang(zh-TW) .gtoc-title { text-transform: none; letter-spacing: 0.02em; font-size: 0.85rem; }
.gtoc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; border-inline-start: 1px solid var(--border); }
.gtoc li { counter-increment: toc; }
.gtoc a {
  display: block; padding: 7px 12px; margin-inline-start: -1px; border-inline-start: 2px solid transparent;
  color: var(--muted); text-decoration: none; line-height: 1.4;
}
.gtoc li:not(:last-child) a::before { content: counter(toc) ". "; color: var(--accent); font-variant-numeric: tabular-nums; }
.gtoc a:hover { color: var(--text); border-inline-start-color: var(--accent); }

.gsteps { list-style: none; display: grid; gap: 0; }
.gstep { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-bottom: 40px; scroll-margin-top: 88px; }
.gstep::before {
  content: ""; position: absolute; inset-inline-start: 21px; top: 48px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--tint-strong), transparent);
}
.gstep:last-child { padding-bottom: 8px; }
.gstep:last-child::before { display: none; }
.gstep-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  font-weight: 750; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: #fff;
  background: linear-gradient(135deg, var(--btn-1), var(--btn-2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -10px rgba(99, 102, 241, 0.75);
}
.gstep-k { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-top: 2px; }
:lang(ko) .gstep-k, :lang(ja) .gstep-k, :lang(zh-CN) .gstep-k, :lang(zh-TW) .gstep-k { text-transform: none; letter-spacing: 0.02em; font-size: 0.84rem; }
.gstep h2 { margin-top: 6px; font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 680; letter-spacing: -0.02em; line-height: 1.3; }
.gstep p:not(.gstep-k), .gsec .qa-a p { color: var(--text-2); line-height: 1.75; }
.gstep h2 + p { margin-top: 12px; }
:lang(ko) .guide-body, :lang(ja) .guide-body, :lang(zh-CN) .guide-body, :lang(zh-TW) .guide-body { font-size: 1.03rem; }
:lang(ko) .gstep p, :lang(ja) .gstep p, :lang(zh-CN) .gstep p, :lang(zh-TW) .gstep p,
:lang(ko) .glead, :lang(ja) .glead, :lang(zh-CN) .glead, :lang(zh-TW) .glead { line-height: 1.9; letter-spacing: 0.01em; }
:lang(ko) .gstep h2, :lang(ja) .gstep h2, :lang(zh-CN) .gstep h2, :lang(zh-TW) .gstep h2 { letter-spacing: -0.005em; line-height: 1.4; }

.gsec { margin-top: clamp(40px, 6vw, 64px); scroll-margin-top: 88px; }
.gsec > h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.gsec .qa-a { color: var(--text-2); }
.grelated { border-top: 1px solid var(--border); padding-top: clamp(40px, 6vw, 64px); }
.grelated > h2 { margin-bottom: 0; }

.gcta {
  margin-top: clamp(40px, 6vw, 64px); padding: clamp(24px, 4vw, 36px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  background:
    radial-gradient(90% 140% at 0% 0%, var(--tint-strong), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, var(--glow-2), transparent 60%),
    var(--surface);
  border-color: var(--border-strong);
}
.gcta-text { flex: 1 1 320px; min-width: 0; }
.gcta h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; }
.gcta p { margin-top: 8px; color: var(--text-2); }
.guide-hub .gcta { max-width: none; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-block: 48px 32px; }
.ftr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.ftr-brand p { margin-top: 10px; color: var(--muted); font-size: 0.93rem; }
.ftr-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.ftr-links a { color: var(--text-2); text-decoration: none; font-size: 0.93rem; }
.ftr-links a:hover { color: var(--text); text-decoration: underline; }
.ftr-legal { margin-top: 32px; color: var(--muted); font-size: 0.84rem; }

/* utility pages (404 / offline) */
.util { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.util-main { max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.util-main img { border-radius: 16px; }
.util-main h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); letter-spacing: -0.02em; }
.util-main p { color: var(--muted); }
.util-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.util-links a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; color: var(--text-2); font-size: 0.92rem; }
.util-links a:hover { color: var(--text); border-color: var(--border-strong); }

/* ----------------------------------------------------------- responsive -- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .plinks, .grelated .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-body { max-width: 72ch; }
  .gtoc { position: static; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
  .gtoc ol { border-inline-start: 0; }
  .gtoc a { padding: 5px 0; border-inline-start: 0; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .spot, .spot-flip { grid-template-columns: minmax(0, 1fr); }
  .spot-flip .spot-text { order: 0; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .ss { border-inline-start: 0; border-top: 1px solid var(--border); }
  .hero-art { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 10; margin-bottom: -28%; }
  .hero-art img { object-position: 62% 50%; }
  .hero-art::after {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 20, 0.4) 45%, rgba(11, 13, 20, 0) 75%),
      linear-gradient(180deg, rgba(11, 13, 20, 0.5) 0%, rgba(11, 13, 20, 0) 30%);
  }
  .hero-inner { min-height: 0; padding-top: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { border-inline-start: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .plinks, .gcards, .grelated .gcards { grid-template-columns: minmax(0, 1fr); }
  /* Number sits beside the "Step n" label; heading and body use the full width. */
  .gstep { grid-template-columns: 32px minmax(0, 1fr); gap: 0 12px; align-items: center; padding-bottom: 36px; }
  .gstep::before { display: none; }
  .gstep-body { display: contents; }
  .gstep-n { width: 32px; height: 32px; border-radius: 10px; font-size: 0.92rem; }
  .gstep-k { margin-top: 0; }
  .gstep h2, .gstep h2 + p { grid-column: 1 / -1; }
  .gstep h2 { margin-top: 12px; }
  .gstep + .gstep { border-top: 1px solid var(--border); padding-top: 28px; }
  .gcard { padding: 22px; }
  .gcta .btn { flex: 1 1 100%; }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .lang-cur { display: none; }
  .dl-meta { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-note { align-items: flex-start; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
  .stats li { padding: 16px; }
  .feat { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .hero-title { -webkit-text-fill-color: currentColor; background: none; }
  .btn, .chip, .card, .qa { border: 1px solid CanvasText; }
}
@media print {
  .site-header, .share, .lang-banner, .hero-art, .gtoc, .gcta { display: none !important; }
  body { background: #fff; color: #000; }
}
