/* =========================================================================
   LP core v1 — 素材LP共通のデザインシステム
   - 各商品ページは page.css で :root の色トークンを上書きする。
   - 破壊的な変更は v2 ファイルとして追加し、v1 を使う既存ページを壊さない。
   ========================================================================= */

:root {
  --bg: #0d0f16;
  --bg-2: #141826;
  --panel: #171c2c;
  --panel-2: #1e2438;
  --line: #2a3250;
  --ink: #eef1f8;
  --ink-2: #aab3c8;
  --ink-3: #78829a;
  --accent: #7cc4ff;
  --accent-2: #ffcf6e;
  --accent-ink: #0b0d14;
  --warn: #ffb35c;
  --warn-bg: rgba(255, 179, 92, .1);
  --ok: #7ee2a8;
  --frame: rgba(255, 255, 255, .85);
  --frame-inner: rgba(255, 255, 255, .22);
  --window-bg: rgba(10, 14, 28, .84);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .55);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 60px;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "BIZ UDPMincho", serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, Menlo, monospace;
  --font-display: var(--font-sans);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.85 var(--font-sans);
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-feature-settings: "palt"; letter-spacing: .03em; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
figure { margin: 0; }
code, kbd, samp, .mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }
.wrap-wide { width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }

/* ------------------------------------------------------------ draft banner */
.draft-banner { display: none; }
html[data-status="draft"] .draft-banner {
  display: flex; gap: .6em; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 6px var(--gutter); font-size: 12.5px; line-height: 1.6;
  background: repeating-linear-gradient(-45deg, #2a2208 0 12px, #241d06 12px 24px);
  color: #ffe2a3; border-bottom: 1px solid #5a4614; text-align: center;
}
.draft-banner strong { color: #fff3d0; }
@media (max-width: 640px) { .draft-banner .long { display: none; } }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap-wide { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 15px; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand small { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.site-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  position: relative; color: var(--ink-2); text-decoration: none; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.site-nav a.is-current { color: var(--ink); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.header-cta { flex: none; }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .brand small { display: none; }
}
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .mobile-nav {
    display: flex; gap: 6px; overflow-x: auto; padding: 8px var(--gutter); scrollbar-width: none;
    position: sticky; top: var(--header-h); z-index: 90;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a { flex: none; font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; }
  .mobile-nav a.is-current { border-color: var(--accent); color: var(--ink); }
}

/* XP bar: スクロール進捗 */
.xp-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; }
.xp-bar span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); }

/* ------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--btn-neutral-bg, color-mix(in srgb, var(--ink) 8%, transparent));
  --btn-ink: var(--ink);
  --btn-line: var(--line);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 10px 22px; border-radius: 12px; border: 1px solid var(--btn-line);
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; font-size: 15px; line-height: 1.3;
  text-decoration: none; white-space: nowrap; letter-spacing: .04em;
  transition: transform .18s var(--ease-out), box-shadow .25s, background .2s, border-color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-line: transparent; box-shadow: 0 10px 30px -10px var(--accent); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px var(--accent); }
.btn-secondary { --btn-bg: transparent; --btn-line: color-mix(in srgb, var(--accent) 60%, transparent); --btn-ink: var(--ink); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 13px; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: .78; }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn .pending-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.22); letter-spacing: .02em; }
/* JRPGのカーソル */
.cursor-target { position: relative; }
.cursor-target::before {
  content: ""; position: absolute; left: -18px; top: 50%; width: 0; height: 0;
  border-left: 9px solid var(--accent-2); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  transform: translate(-6px, -50%); opacity: 0; transition: opacity .15s, transform .2s var(--ease-out);
  filter: drop-shadow(0 0 6px var(--accent-2));
}
.cursor-target:hover::before, .cursor-target:focus-visible::before { opacity: 1; transform: translate(0, -50%); animation: cursor-bob .7s ease-in-out infinite alternate; }
@keyframes cursor-bob { to { transform: translate(-4px, -50%); } }
@media (prefers-reduced-motion: reduce) { .cursor-target:hover::before, .cursor-target:focus-visible::before { animation: none; } }

/* ------------------------------------------------------------ chips, badges, kbd */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: .45em; padding: 5px 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: color-mix(in srgb, var(--bg) 55%, transparent);
  font-size: 13px; line-height: 1.5; color: var(--ink); white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip b { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0; }
.badge { display: inline-flex; align-items: center; gap: .3em; font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 6px; letter-spacing: .04em; white-space: nowrap; }
.badge-free { background: var(--ok); color: #06210f; }
.badge-loop { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.badge-once { background: color-mix(in srgb, var(--accent-2) 20%, transparent); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent); }
.badge-muted { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink-2); }
.badge-pending { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
kbd {
  display: inline-block; min-width: 1.7em; padding: 1px 6px; border-radius: 6px; text-align: center;
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-bottom-width: 3px;
  background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: 12px; line-height: 1.6; color: var(--ink);
}
.example-tag {
  position: absolute; z-index: 5; top: 10px; left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; border: 1px solid rgba(255,255,255,.28);
  pointer-events: none;
}
.example-tag.right { left: auto; right: 10px; }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 700 12px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); font-family: var(--font-display); }
.lead { font-size: clamp(15.5px, 1.6vw, 17.5px); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); font-size: 13px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, html.reduced .reveal { opacity: 1; transform: none; transition: none; }

/* ------------------------------------------------------------ panels & windows */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow); }
.panel-pad { padding: clamp(18px, 3vw, 28px); }

/* RPGの会話ウィンドウ */
.window {
  position: relative; background: var(--window-bg); color: #fff;
  border: 2px solid var(--frame); border-radius: 10px;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.35), inset 0 0 0 4px var(--frame-inner), 0 12px 40px -12px rgba(0,0,0,.7);
  padding: 14px 20px 18px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.window-name {
  position: absolute; top: -15px; left: 16px; padding: 2px 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  background: var(--window-bg); border: 2px solid var(--frame); border-radius: 8px;
}
.window-text { margin: 0; min-height: 3.4em; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.75; }
.window-next { position: absolute; right: 14px; bottom: 8px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #fff; animation: next-blink 1s steps(2, start) infinite; }
@keyframes next-blink { to { visibility: hidden; } }
html.reduced .window-next { animation: none; }
.menu-window { padding: 10px 8px; }
.menu-window ul { list-style: none; margin: 0; padding: 0; }
.menu-window li { position: relative; padding: 3px 14px 3px 26px; font-size: 14px; }
.menu-window li.is-active::before { content: ""; position: absolute; left: 9px; top: 50%; transform: translateY(-50%); border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

/* 開発ツール風インスペクター */
.inspector { margin: 0; display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; font-size: 13.5px; }
.inspector dt, .inspector dd { margin: 0; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.inspector dt { color: var(--ink-3); background: color-mix(in srgb, var(--ink) 4%, transparent); white-space: nowrap; }
.inspector dd { font-family: var(--font-mono); color: var(--ink); overflow-wrap: anywhere; letter-spacing: 0; }
.inspector dd.ja { font-family: var(--font-sans); letter-spacing: .02em; }
.inspector dt:nth-last-of-type(1), .inspector dd:nth-last-of-type(1) { border-bottom: 0; }
.inspector-head { display: flex; align-items: center; gap: 8px; font: 700 11px/1 var(--font-mono); letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin: 0 0 8px; }
.inspector-head::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

/* ------------------------------------------------------------ notes */
.note { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 16px 18px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--panel); font-size: 14.5px; }
.note > svg { width: 22px; height: 22px; margin-top: 2px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note-warn { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: var(--warn-bg); }
.note-warn > svg { color: var(--warn); }
.note-info > svg { color: var(--accent); }
.note h3 { font-size: 16px; margin-bottom: .35em; }

/* 購入前の確認リスト */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--panel); }
.checklist li > svg { width: 26px; height: 26px; color: var(--accent-2); }
.checklist li.is-important { border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: var(--warn-bg); }
.checklist li.is-important > svg { color: var(--warn); }
.checklist h3 { font-size: 16px; margin: 0 0 .2em; }
.checklist p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ------------------------------------------------------------ grids & cards */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.card-media img, .card-media video, .card-media canvas { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: 16px; margin-bottom: .25em; }
.card-body p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* use-case mockups */
.usecase { position: relative; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 10; }
.usecase > img, .usecase > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.usecase-caption { margin-top: 12px; }
.usecase-caption h3 { font-size: 17px; margin-bottom: .2em; }
.usecase-caption p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------------ segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 7%, transparent); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg span { display: inline-flex; align-items: center; gap: .4em; padding: 6px 14px; border-radius: 9px; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; white-space: nowrap; }
.seg span svg { width: 16px; height: 16px; }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.seg label:hover input:not(:checked) + span { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }

.field { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); max-width: 100%; }
.field .select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
select.select { appearance: none; padding: 8px 36px 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23aab3c8' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--ink); }
input[type="range"] { accent-color: var(--accent); width: 100%; }

/* ------------------------------------------------------------ compare slider */
.compare { position: relative; overflow: hidden; border-radius: var(--radius-m); background: #000; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .compare-top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 0 20px rgba(255,255,255,.6); pointer-events: none; }
.compare .compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(10,12,20,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center;
  border: 2px solid #fff;
}
.compare .compare-label { position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 12.5px; font-weight: 700; pointer-events: none; }
.compare .compare-label.l { left: 12px; }
.compare .compare-label.r { right: 12px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input[type="range"]:focus-visible ~ .compare-handle::after { outline: 3px solid var(--accent-2); outline-offset: 3px; }

/* ------------------------------------------------------------ file tree */
.filetree { font: 13px/1.9 var(--font-mono); letter-spacing: 0; background: color-mix(in srgb, #000 30%, var(--panel)); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px; overflow-x: auto; }
.filetree-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font: 700 11px/1 var(--font-mono); color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.filetree ul { list-style: none; margin: 0; padding-left: 18px; border-left: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent); }
.filetree > ul { padding-left: 0; border: 0; }
.filetree li { white-space: nowrap; }
.filetree .d::before { content: "▸ "; color: var(--accent-2); }
.filetree .f::before { content: "· "; color: var(--ink-3); }
.filetree .n { color: var(--ink-3); margin-left: .6em; font-size: 12px; }
.filetree .hl { color: var(--accent); }

/* ------------------------------------------------------------ steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.steps > li { counter-increment: step; position: relative; padding: 18px 20px 18px 74px; border-radius: var(--radius-m); background: var(--panel); border: 1px solid var(--line); }
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 18px; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font: 800 15px/1 var(--font-mono); color: var(--accent-ink); background: var(--accent);
}
.steps h3 { font-size: 17px; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ------------------------------------------------------------ pricing */
.price-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 22px 22px; border-radius: var(--radius-l); background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, transform .3s var(--ease-out); }
.price-card.is-highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px -24px var(--accent); }
.price-card.is-picked { transform: translateY(-4px); border-color: var(--accent-2); box-shadow: 0 0 0 2px var(--accent-2), 0 24px 60px -24px var(--accent-2); }
.price-card .ribbon { position: absolute; top: -12px; left: 20px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); letter-spacing: .04em; }
.price-card .ribbon.free { background: var(--ok); color: #06210f; }
.price-card h3 { font-size: 18px; margin: 4px 0 0; }
.price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -.01em; }
.price small { font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.price-card ul li { position: relative; padding-left: 22px; }
.price-card ul li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.price-card ul li.minus::before { width: 10px; height: 0; border-left: 0; border-bottom: 2px solid var(--ink-3); transform: none; top: .8em; }
.price-card .meta { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0; }
.price-card .btn { width: 100%; }
.price-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------------------ license */
.license-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.license-col { padding: 22px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--panel); }
.license-col h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.license-col h3 svg { width: 24px; height: 24px; }
.license-col.can h3 svg { color: var(--ok); }
.license-col.cannot h3 svg { color: #ff8a8a; }
.license-col ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.license-col ul strong { color: var(--ink); }

/* ------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--panel); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; position: relative; font-weight: 700; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font: 800 14px/1 var(--font-mono); color: var(--accent); margin-right: 10px; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-a { padding: 0 20px 18px 44px; color: var(--ink-2); font-size: 14.5px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ related */
.related-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.related-card { display: grid; grid-template-rows: auto 1fr; color: var(--ink); text-decoration: none; border-radius: var(--radius-l); overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .3s var(--ease-out), border-color .3s; }
.related-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.related-card .rc-media { aspect-ratio: 16/9; overflow: hidden; background: #000; }
.related-card .rc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.related-card:hover .rc-media img { transform: scale(1.04); }
.related-card .rc-body { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.related-card .rc-kind { font: 700 11px/1 var(--font-mono); letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.related-card h3 { font-size: 18px; margin: 0; }
.related-card p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.related-card .rc-why { font-size: 13px; color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 8px; padding: 8px 10px; }

/* ------------------------------------------------------------ CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-l); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); background: var(--panel); display: grid; gap: 18px; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------ footer */
.site-footer { padding: 56px 0 72px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer a { color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ------------------------------------------------------------ toast */
.toast-host { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(92vw, 520px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; background: rgba(12, 14, 24, .94); color: #fff; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 12px 40px -12px rgba(0,0,0,.6); font-size: 14px; animation: toast-in .35s var(--ease-out); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------ dialog viewer */
dialog.viewer { width: min(96vw, 1280px); max-height: 94vh; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-2); color: var(--ink); box-shadow: 0 40px 120px -20px rgba(0,0,0,.8); overflow: hidden; }
dialog.viewer::backdrop { background: rgba(4, 6, 12, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog.viewer[open] { animation: viewer-in .3s var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.viewer-close { position: absolute; top: 10px; right: 10px; z-index: 10; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.viewer-close svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ misc utilities */
.stack-s > * + * { margin-top: 8px; }
.stack-m > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hr { height: 1px; background: var(--line); border: 0; margin: 32px 0; }
.icon { width: 18px; height: 18px; flex: none; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checker { background-color: #d9dce3; background-image: conic-gradient(#b8bcc6 25%, transparent 0 50%, #b8bcc6 0 75%, transparent 0); background-size: 18px 18px; }
.ratio-bar { position: relative; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.ratio-bar > i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .btn { min-height: 44px; padding: 10px 18px; }
  .steps > li { padding: 16px 16px 16px 66px; }
  .steps > li::before { left: 14px; width: 36px; height: 36px; }
}
@media print {
  .site-header, .mobile-nav, .xp-bar, .toast-host { display: none !important; }
  body { background: #fff; color: #000; }
}
