/* LayerShop — site styles. Tokens first; everything else reads them. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --bg: #0b0c0f;
  --bg-2: #101216;
  --surface: #15181d;
  --surface-2: #1b1f26;
  --surface-3: #232831;
  --line: #262b34;
  --line-2: #363d49;
  --text: #eef0f3;
  --muted: #a3acba;
  --dim: #6f7887;
  --accent: #ff8a3d;
  --accent-2: #ffc24d;
  --accent-3: #ff5d6c;
  --accent-ink: #1b0d03;
  --ok: #5fd39b;
  --info: #7cc4ff;
  --grad: linear-gradient(115deg, var(--accent-2), var(--accent) 48%, var(--accent-3));
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.028em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, kbd, pre { font-family: var(--mono); font-size: 0.86em; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 8vw, 112px) 0; position: relative; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

/* —— Type helpers —— */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.h-xl { font-size: clamp(2.55rem, 6.4vw, 4.9rem); letter-spacing: -0.045em; line-height: 1.02; }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.038em; }
.h-md { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.h-sm { font-size: 1.12rem; letter-spacing: -0.015em; line-height: 1.3; }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--muted); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* —— Buttons, pills —— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--grad); color: var(--accent-ink); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 38px -10px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost { background: color-mix(in srgb, var(--text) 6%, transparent); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: color-mix(in srgb, var(--text) 11%, transparent); border-color: var(--dim); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn-lg { padding: 17px 28px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font: 500 13px/1 var(--sans); color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line-2); font: 500 12px/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.tag-accent { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 35%, transparent); background: color-mix(in srgb, var(--accent-2) 9%, transparent); }
.tag-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: color-mix(in srgb, var(--ok) 9%, transparent); }

/* —— Header —— */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.14rem; letter-spacing: -0.03em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.brand .preview { font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); padding: 4px 6px; border-radius: 5px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 13px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover, .nav a.btn-primary[aria-current="page"] { color: var(--accent-ink); background: var(--grad); padding: 10px 16px; border-radius: 999px; }
.header-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 16px; }
  .header-cta { margin: 8px 0 0; }
}

/* —— Hero —— */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 0; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -2; background: radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%), radial-gradient(40% 40% at 82% 12%, color-mix(in srgb, var(--accent-3) 16%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 78%); -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 78%); opacity: 0.5; }
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 26px; max-width: 900px; margin-inline: auto; }
.hero-copy .lede { max-width: 58ch; }
.hero-note { font-size: 14px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--ok); }
.hero-shot { margin-top: clamp(44px, 6vw, 76px); position: relative; }
.hero-shot::before { content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; background: var(--grad); filter: blur(90px); opacity: 0.22; }

/* A window frame for screenshots */
.window { border-radius: var(--radius); background: #17191e; border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #1d2026; border-bottom: 1px solid var(--line); font: 500 12.5px/1 var(--sans); color: var(--dim); }
.window-bar .mark { width: 16px; height: 16px; }
.window-bar .ctl { margin-left: auto; display: flex; gap: 18px; color: var(--dim); }
.window-bar .ctl svg { width: 11px; height: 11px; }
.window img { width: 100%; }
.hero-shot .window { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.shot-caption { margin-top: 14px; font-size: 13.5px; color: var(--dim); text-align: center; }

/* —— Fact strip —— */
.facts { border-block: 1px solid var(--line); background: var(--bg-2); }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-grid > div { padding: 30px clamp(16px, 2.4vw, 30px); border-left: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.facts-grid > div:first-child { border-left: 0; padding-left: 0; }
.facts-grid > div:last-child { padding-right: 0; }
.facts strong { font-size: 1.04rem; font-weight: 600; letter-spacing: -0.015em; }
.facts span { color: var(--muted); font-size: 0.93rem; line-height: 1.5; }
@media (max-width: 860px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid > div { padding: 22px 16px; }
  .facts-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts-grid > div:nth-child(even) { padding-right: 0; }
  .facts-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .facts-grid > div { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); }
  .facts-grid > div:first-child { border-top: 0; }
}

/* —— Feature rows —— */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 128px); }
.feature.flip > .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 18px; justify-items: start; }
.feature-copy .num { font: 500 13px/1 var(--mono); color: var(--dim); letter-spacing: 0.06em; }
.feature-copy ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature-copy li { position: relative; padding-left: 28px; color: var(--muted); font-size: 0.98rem; }
.feature-copy li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-4px); }
.feature-copy li b { color: var(--text); font-weight: 500; }
.prompt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font: 400 13.5px/1.55 var(--mono); color: var(--text); max-width: 100%; }
.prompt::before { content: "prompt"; flex: none; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); padding-top: 3px; }
.figure { margin: 0; display: grid; gap: 12px; }
.figure figcaption { font-size: 13.5px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--surface); position: relative; }
.frame img { width: 100%; }
.layer-chip { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 9px; max-width: calc(100% - 28px); padding: 8px 12px 8px 9px; border-radius: 9px; background: rgba(16, 18, 22, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.12); font: 400 12.5px/1.2 var(--mono); color: var(--text); pointer-events: none; }
.layer-chip svg { width: 15px; height: 15px; flex: none; color: var(--accent-2); }
.layer-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature.flip > .feature-copy { order: 0; } }

/* —— Before / after —— */
.compare { --pos: 50%; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--surface); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare img { width: 100%; pointer-events: none; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare .after img { height: 100%; object-fit: cover; }
.compare .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none; }
.compare .knob { position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); pointer-events: none; }
.compare .knob svg { width: 20px; height: 20px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(input:focus-visible) .knob { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.compare .lab { position: absolute; top: 12px; padding: 5px 9px; border-radius: 6px; background: rgba(16, 18, 22, 0.8); font: 500 11px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: #fff; pointer-events: none; }
.compare .lab.l { left: 12px; }
.compare .lab.r { right: 12px; }

/* —— Cards —— */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--line-2); }
.card p { color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); color: var(--accent-2); margin-bottom: 8px; }
.card .ico svg { width: 20px; height: 20px; }
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-2px); }
@media (max-width: 980px) { .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards, .cards.two, .cards.four { grid-template-columns: minmax(0, 1fr); } }

/* —— Steps —— */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; counter-increment: step; }
.step::before { content: counter(step); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--accent-ink); font: 600 15px/1 var(--sans); margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.97rem; }
.step kbd { padding: 2px 6px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); font-size: 0.8em; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* —— Pipeline diagram —— */
.pipeline { margin-top: 20px; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--bg-2)); }
.pipeline-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: stretch; }
.node { padding: 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; gap: 6px; align-content: start; }
.node .k { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.node strong { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.015em; }
.node span { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
.node.hot { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, var(--surface-2)); }
.arrow { display: grid; place-items: center; color: var(--dim); }
.arrow svg { width: 26px; height: 26px; }
.pipeline-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--muted); }
.pipeline-foot span { display: inline-flex; align-items: center; gap: 8px; }
.pipeline-foot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
@media (max-width: 860px) { .pipeline-row { grid-template-columns: minmax(0, 1fr); } .arrow svg { transform: rotate(90deg); } }

/* —— Split (text + panel) —— */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split.center { align-items: center; }
.split .stack { display: grid; gap: 20px; justify-items: start; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--muted); font-size: 0.99rem; }
.checks li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--ok); }
.checks li b { color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* —— Code —— */
.code { margin: 0; border-radius: 12px; border: 1px solid var(--line-2); background: #0e1014; overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--dim); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; color: #d6dbe4; tab-size: 2; }
.code .c { color: var(--dim); }
.code .s { color: #a8e1b7; }
.code .k { color: var(--accent-2); }
.code .p { color: #ffb38a; }
p code, li code, td code { padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: #e3e7ee; white-space: nowrap; }

/* —— Setup wizard mock —— */
.wizard { border-radius: var(--radius); border: 1px solid var(--line-2); background: #17191e; box-shadow: var(--shadow); overflow: hidden; }
.wizard-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 440px; }
.wizard-rail { padding: 20px 14px; background: #131519; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.wizard-rail button { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font: 500 14px/1.25 var(--sans); color: var(--dim); cursor: pointer; }
.wizard-rail button:hover { color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.wizard-rail button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.wizard-rail button .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font: 500 12px/1 var(--mono); }
.wizard-rail button[aria-selected="true"] { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.wizard-rail button[aria-selected="true"] .n { background: var(--grad); border-color: transparent; color: var(--accent-ink); }
.wizard-rail button.done .n { background: color-mix(in srgb, var(--ok) 18%, transparent); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.wizard-rail .rail-foot { margin-top: auto; padding: 12px; font-size: 12px; line-height: 1.45; color: var(--dim); }
.wizard-pane { padding: 28px clamp(18px, 3vw, 34px) 0; display: none; flex-direction: column; gap: 16px; min-width: 0; }
.wizard-pane.active { display: flex; }
.wizard-pane h3 { font-size: 1.28rem; }
.wizard-pane > p { color: var(--muted); font-size: 0.95rem; }
.wizard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 20px; border-top: 1px solid var(--line); }
.wizard-foot small { color: var(--dim); font-size: 12.5px; }
.wbtn { all: unset; box-sizing: border-box; padding: 9px 18px; border-radius: 8px; font: 600 14px/1 var(--sans); cursor: pointer; background: var(--grad); color: var(--accent-ink); }
.wbtn.secondary { background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2); }
.wbtn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.wrows { display: grid; gap: 8px; }
.wrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 10px; background: #1c1f25; border: 1px solid var(--line); font-size: 14px; }
.wrow svg { width: 18px; height: 18px; color: var(--ok); }
.wrow.info svg { color: var(--info); }
.wrow .v { color: var(--muted); font: 400 12.5px/1.3 var(--mono); text-align: right; }
.wrow .t { min-width: 0; }
.wrow .t small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.wpath { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.wpath .field { padding: 10px 12px; border-radius: 8px; background: #101216; border: 1px solid var(--line-2); font: 400 13px/1.3 var(--mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wlabel { font: 500 12px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); margin-bottom: -6px; }
.meter { height: 8px; border-radius: 99px; background: #0f1115; border: 1px solid var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.preset { all: unset; box-sizing: border-box; padding: 14px; border-radius: 11px; background: #1c1f25; border: 1px solid var(--line); cursor: pointer; display: grid; gap: 5px; align-content: start; }
.preset:hover { border-color: var(--line-2); }
.preset:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.preset[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, #1c1f25); box-shadow: 0 0 0 1px var(--accent) inset; }
.preset strong { font-size: 14.5px; font-weight: 600; }
.preset .sz { font: 500 13px/1 var(--mono); color: var(--accent-2); }
.preset small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.mlist { display: grid; gap: 6px; }
.mrow { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; color: var(--dim); border: 1px solid transparent; }
.mrow .box { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-2); display: grid; place-items: center; }
.mrow .box svg { width: 11px; height: 11px; opacity: 0; color: var(--accent-ink); }
.mrow.on { color: var(--text); background: #1c1f25; border-color: var(--line); }
.mrow.on .box { background: var(--accent); border-color: var(--accent); }
.mrow.on .box svg { opacity: 1; }
.mrow .sz { font: 400 12.5px/1 var(--mono); color: var(--muted); }
.mrow small { color: var(--dim); margin-left: 8px; }
.dl { display: grid; gap: 10px; }
.dlrow { display: grid; gap: 7px; padding: 12px 14px; border-radius: 10px; background: #1c1f25; border: 1px solid var(--line); }
.dlrow .top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.dlrow .top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlrow .top .v { font: 400 12.5px/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.dlrow.done .v { color: var(--ok); }
.dlrow.wait { opacity: 0.55; }
.wizard-pane.active .dlrow.run .meter i { animation: fill 7s ease-out forwards; }
@keyframes fill { from { width: 8%; } to { width: 64%; } }
.ready { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.ready img { border-radius: 10px; border: 1px solid var(--line-2); }
.ready .stat { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.ready .stat b { color: var(--text); font-weight: 500; }
@media (max-width: 780px) {
  .wizard-body { grid-template-columns: minmax(0, 1fr); }
  .wizard-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .wizard-rail button { grid-template-columns: 24px auto; white-space: nowrap; }
  .wizard-rail .rail-foot { display: none; }
  .presets, .ready { grid-template-columns: minmax(0, 1fr); }
}

/* —— Tables —— */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font: 500 12px/1.2 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); font-size: 0.88rem; white-space: nowrap; }
td strong { font-weight: 600; }
td small { display: block; color: var(--dim); font-size: 0.86rem; margin-top: 3px; }
.table-note { margin-top: 14px; font-size: 0.9rem; color: var(--dim); max-width: 80ch; }

/* —— Requirements —— */
.req { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.req > div { padding: 24px 26px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.req > div:nth-child(2n) { border-right: 0; }
.req > div:nth-last-child(-n + 2) { border-bottom: 0; }
.req dt { font: 500 12px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); }
.req dd { margin: 0; font-size: 1rem; }
.req dd small { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; line-height: 1.5; }
@media (max-width: 720px) { .req { grid-template-columns: minmax(0, 1fr); } .req > div { border-right: 0; } .req > div:nth-last-child(2) { border-bottom: 1px solid var(--line); } }

/* —— FAQ —— */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 500; font-size: 1.04rem; position: relative; border-radius: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 22px 22px; color: var(--muted); display: grid; gap: 12px; font-size: 0.99rem; }

/* —— Support —— */
.support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.support .panel { padding: clamp(26px, 3.4vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 16px; align-content: start; justify-items: start; }
.support .panel.hot { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--surface); }
.support .panel p { color: var(--muted); }
@media (max-width: 860px) { .support { grid-template-columns: minmax(0, 1fr); } }

/* —— CTA band —— */
.cta-band { text-align: center; display: grid; gap: 24px; justify-items: center; padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 56px); border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%), var(--surface); }

/* —— Footer —— */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 40px; font-size: 0.93rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h4 { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-about { display: grid; gap: 14px; max-width: 40ch; }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 0.82rem; color: var(--dim); line-height: 1.6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }

/* —— Inner pages —— */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); background: radial-gradient(60% 120% at 20% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%); }
.page-head .wrap { display: grid; gap: 18px; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 0.92rem; }
.toc strong { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.toc a { padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); border-color: var(--accent); }
.prose { display: grid; gap: 20px; min-width: 0; max-width: 780px; }
.prose > h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose > h3 { font-size: 1.2rem; margin-top: 14px; letter-spacing: -0.02em; }
.prose p, .prose li { color: #c5ccd7; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 9px; }
.prose li::marker { color: var(--dim); }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose a:not(.btn):not(.card) { color: var(--accent-2); }
.prose .dim { color: var(--dim); }
.prose .muted { color: var(--muted); }
.prose .frame, .prose .compare, .prose .code, .prose .table-wrap, .prose .wizard { margin-block: 8px; }
.prose kbd { padding: 2px 6px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); font-size: 0.8em; white-space: nowrap; }
.callout { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 0.96rem; }
.callout svg { width: 20px; height: 20px; margin-top: 3px; color: var(--info); }
.callout.warn svg { color: var(--accent-2); }
.callout p { color: var(--muted); }
.lesson { counter-increment: lesson; }
.prose { counter-reset: lesson; }
.lesson > .lesson-n { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-2); }
.dl-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 3.4vw, 38px); border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 60%), var(--surface); }
.dl-box .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } .toc strong { grid-column: 1 / -1; } .dl-box { grid-template-columns: minmax(0, 1fr); } }

/* —— Reveal on scroll (only when JS is on) —— */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .wizard-pane.active .dlrow.run .meter i { animation: none; width: 64%; }
  .btn, .card { transition: none; }
}

/* —— Contact —— */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-grid .stack { display: grid; gap: 20px; justify-items: stretch; }
.contact-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.contact-side .panel { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 14px; align-content: start; justify-items: start; }
.contact-side .panel.hot { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--surface); }
.contact-side .panel p { color: var(--muted); font-size: 0.96rem; }
.contact-side a:not(.btn) { color: var(--accent-2); }
.contact-form { display: grid; gap: 16px; margin-top: 8px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font: 500 13px/1.2 var(--sans); color: var(--muted); }
.field label .opt { color: var(--dim); font-weight: 400; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 400 16px/1.4 var(--sans); transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field select option { background: var(--surface); color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 0.92rem; color: var(--muted); min-height: 1.4em; flex: 1 1 220px; }
.form-status.error { color: #ff8f8f; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
.contact-done { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 7%, var(--surface)); display: grid; gap: 10px; justify-items: center; text-align: center; }
.contact-done[hidden] { display: none; }
.contact-done > svg { width: 40px; height: 40px; color: var(--ok); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-side { position: static; } }
@media (max-width: 620px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
