/* impDomain — one sheet, no framework. The stage (dark, starry) is shared with
   ImpSave; below it the page is a calm canvas that flips between a light and a
   dark theme through tokens only. */

/* ------------------------------------------------------------- tokens ---- */
:root {
  --ink: #100e26;
  --ink-2: #151238;
  --ink-3: #17134a;
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #ebebf0;
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --hover: rgba(0, 0, 0, 0.05);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: rgba(0, 113, 227, 0.1);
  --link: #0066cc;
  --glow: #2997ff;
  --green: #30d158;
  --amber: #ffd60a;
  --red: #ff453a;
  --red-soft: rgba(255, 69, 58, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.035);
  --shadow-hover: 0 24px 48px -20px rgba(0, 0, 0, 0.2);
  --code-bg: #f0f0f4;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "Segoe UI", Roboto, Inter, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shell: 880px;
  --shell-wide: 1180px;
  --nav-h: 56px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 980px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --spring: cubic-bezier(0.34, 1.3, 0.64, 1);
  --fast: 160ms;
  --slow: 420ms;
  color-scheme: light;
}

[data-theme="dark"] {
  --canvas: #0b0a1a;
  --surface: #14122e;
  --surface-2: #1b1840;
  --surface-3: #241f52;
  --text: #f5f5f7;
  --text-2: rgba(255, 255, 255, 0.78);
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --hover: rgba(255, 255, 255, 0.07);
  --blue: #0a84ff;
  --blue-hover: #3395ff;
  --blue-soft: rgba(41, 151, 255, 0.16);
  --link: #4ea7ff;
  --nav-bg: rgba(11, 10, 26, 0.72);
  --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
  --code-bg: rgba(255, 255, 255, 0.06);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0b0a1a;
    --surface: #14122e;
    --surface-2: #1b1840;
    --surface-3: #241f52;
    --text: #f5f5f7;
    --text-2: rgba(255, 255, 255, 0.78);
    --muted: rgba(255, 255, 255, 0.62);
    --faint: rgba(255, 255, 255, 0.42);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --hover: rgba(255, 255, 255, 0.07);
    --blue: #0a84ff;
    --blue-hover: #3395ff;
    --blue-soft: rgba(41, 151, 255, 0.16);
    --link: #4ea7ff;
    --nav-bg: rgba(11, 10, 26, 0.72);
    --shadow-card: 0 2px 14px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
    --code-bg: rgba(255, 255, 255, 0.06);
    color-scheme: dark;
  }
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* -------------------------------------------------------------- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.016em;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 240ms var(--ease), color 240ms var(--ease);
}
h1, h2, h3, h4, p, ul, ol, pre, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { display: block; }
img { max-width: 100%; display: block; }
code, kbd, pre { font-family: var(--mono); }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.visually-hidden:focus {
  position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; margin: 0;
  padding: 10px 14px; clip: auto; background: var(--surface); color: var(--text);
  border-radius: var(--r-sm); z-index: 100;
}
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.shell--wide { max-width: var(--shell-wide); }

/* ------------------------------------------------------------ buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease),
    transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--blue); color: #fff; font-weight: 600; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--quiet { background: var(--surface-3); color: var(--text); }
.btn--quiet:hover { background: var(--line-strong); }
.btn--ghost { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: var(--blue-soft); }
.btn--glass { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.16); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 50px; padding: 0 28px; font-size: 17px; }
.btn[disabled] { cursor: default; opacity: 0.55; }
.btn.is-busy { position: relative; color: transparent; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background-color 320ms var(--ease), border-color 320ms var(--ease), color 320ms var(--ease);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 18px; }
.nav__nav { flex: 1; display: flex; justify-content: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand__mark { width: 26px; height: 26px; }
.brand__accent { color: var(--blue); }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  display: inline-block; padding: 7px 12px; white-space: nowrap; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); background: var(--hover); }
.nav__tools { display: flex; align-items: center; gap: 8px; }
.menu { display: none; width: 36px; height: 36px; border-radius: 50%; place-items: center; color: var(--text-2); background: var(--hover); }
.menu svg { width: 18px; height: 18px; }
.menu__x { display: none; }
.nav.is-open .menu__bars { display: none; }
.nav.is-open .menu__x { display: block; }
.has-stage .nav .menu { color: #fff; background: rgba(255, 255, 255, 0.1); }
.theme {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-2); background: var(--hover); transition: background-color var(--fast) var(--ease), transform var(--fast) var(--spring);
}
.theme:hover { transform: rotate(15deg); }
.theme svg { width: 18px; height: 18px; }
.theme__moon { display: none; }
[data-theme="dark"] .theme__sun { display: none; }
[data-theme="dark"] .theme__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme__sun { display: none; }
  :root:not([data-theme="light"]) .theme__moon { display: block; }
}

.has-stage .nav { color: #fff; background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-stage .nav.is-stuck { background: rgba(16, 14, 38, 0.72); border-bottom-color: rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.has-stage .nav .brand__accent { color: var(--glow); }
.has-stage .nav__links a { color: rgba(255, 255, 255, 0.72); }
.has-stage .nav__links a:hover, .has-stage .nav__links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.1); }
.has-stage .nav .theme { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ------------------------------------------------------------- search ---- */
.search { position: relative; }
.search--nav {
  display: flex; align-items: center; gap: 8px; height: 36px; width: 200px; padding: 0 12px;
  border-radius: var(--r-pill); background: var(--hover); color: var(--text-2);
  transition: width 240ms var(--ease), background-color var(--fast) var(--ease);
}
.search--nav:focus-within { width: 260px; background: var(--surface); box-shadow: 0 0 0 2px var(--glow); }
.has-stage .search--nav { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); }
.has-stage .search--nav:focus-within { background: var(--surface); color: var(--text); }
.search__icon { flex: none; width: 16px; height: 16px; opacity: 0.7; }
.search__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; }
.search__input::-webkit-search-decoration, .search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__input::placeholder { color: var(--faint); }
.search--page, .search--box {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); box-shadow: var(--shadow-card);
}
.search--page:focus-within, .search--box:focus-within { border-color: var(--glow); box-shadow: 0 0 0 3px var(--blue-soft); }
.search--page .search__input, .search--box .search__input { font-size: 16px; color: var(--text); }
.search--page { min-width: 320px; }
.search__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  padding: 6px; border-radius: var(--r-md); background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.35);
  max-height: 360px; overflow: auto;
}
/* On the stage the list sits in the flow under the field and takes the place of
   the quick links while it is open, so nothing peeks out from behind it. */
.search__results--stage { position: relative; top: auto; left: 0; right: 0; margin-top: 8px; max-height: 320px; }
.console:has(.search__results--stage:not([hidden])) .console__foot { display: none; }
.search__item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
  border-radius: 9px; text-align: left; font-size: 14px; color: var(--text);
}
.search__item:hover, .search__item.is-active { background: var(--hover); }
.search__item-icon { flex: none; width: 26px; text-align: center; font-size: 16px; }
.search__item-name { font-weight: 600; }
.search__item-stem { color: var(--faint); font-size: 13px; }
.search__item-cat { margin-left: auto; color: var(--faint); font-size: 12px; white-space: nowrap; }
.search__empty { padding: 12px 10px; font-size: 14px; color: var(--muted); }

/* -------------------------------------------------------------- stage ---- */
.stage {
  position: relative; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 96px; color: #fff;
  background: linear-gradient(180deg, #0a0918 0%, var(--ink-2) 58%, var(--ink-3) 100%); isolation: isolate;
}
.stage--compact { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 72px; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.75; }
.star--a { animation: twinkle 4s ease-in-out infinite; }
.star--b { animation: twinkle 5.5s ease-in-out 1.2s infinite; }
.star--c { animation: twinkle 7s ease-in-out 2.6s infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
.stage__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(52% 44% at 50% 38%, rgba(41, 151, 255, 0.26), transparent 70%),
    radial-gradient(38% 34% at 68% 62%, rgba(139, 125, 255, 0.2), transparent 70%),
    radial-gradient(60% 30% at 50% 100%, rgba(41, 151, 255, 0.14), transparent 70%);
}
.stage__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.stage__mascot { width: 176px; margin-bottom: 22px; filter: drop-shadow(0 26px 34px rgba(41, 151, 255, 0.28)); animation: hover 6s ease-in-out infinite; }
.stage__mascot--sm { width: 124px; margin-bottom: 16px; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.stage__tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; margin-bottom: 18px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.85);
}
a.stage__tag:hover { background: rgba(255, 255, 255, 0.14); }
.stage__title { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.04; font-weight: 700; letter-spacing: -0.032em; max-width: 22ch; text-wrap: balance; }
.stage__sub { margin-top: 18px; max-width: 600px; font-size: 19px; line-height: 1.45; color: rgba(255, 255, 255, 0.68); text-wrap: pretty; }
.stage__stem { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.1); font-family: var(--mono); font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.stage__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 26px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }
.assure li { display: inline-flex; align-items: center; gap: 7px; }
.assure svg { width: 14px; height: 14px; color: var(--green); }

/* ------------------------------------------------------------ console ---- */
.console {
  position: relative; width: 100%; max-width: 760px; margin-top: 36px; padding: 12px;
  border-radius: var(--r-xl); background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7), 0 18px 40px -20px rgba(41, 151, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-align: left; transition: box-shadow var(--slow) var(--ease), border-color var(--slow) var(--ease);
}
.console.is-focus { border-color: rgba(255, 255, 255, 0.18); }
.console__ring {
  position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 170deg, rgba(41, 151, 255, 1) 250deg, rgba(139, 125, 255, 1) 300deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  transition: opacity var(--slow) var(--ease);
}
.console__halo {
  position: absolute; inset: -2px; z-index: -1; border-radius: inherit; filter: blur(22px); opacity: 0; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 170deg, rgba(41, 151, 255, 0.9) 250deg, rgba(139, 125, 255, 0.9) 300deg, transparent 360deg);
  transition: opacity var(--slow) var(--ease);
}
.console.is-focus .console__ring { opacity: 1; animation: orbit 3.2s linear infinite; }
.console.is-focus .console__halo { opacity: 0.5; animation: orbit 3.2s linear infinite; }
@keyframes orbit { to { --angle: 360deg; } }
.field {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 8px 8px 8px 18px;
  border-radius: 18px; background: #fff; color: #1d1d1f; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.field__icon { flex: none; width: 22px; height: 22px; color: #86868b; }
.field__icon svg { width: 100%; height: 100%; }
.field .field__input { flex: 1; min-width: 0; height: 48px; font-size: 17px; letter-spacing: -0.01em; color: #1d1d1f; }
.field .field__input::placeholder { color: #86868b; }
.field__actions { flex: none; display: flex; gap: 6px; }
.field .btn { height: 48px; border-radius: 13px; }
.field .btn--primary { padding: 0 24px; box-shadow: 0 8px 20px -8px rgba(0, 113, 227, 0.7); }
.console__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 8px 2px; }
.detect { display: flex; flex-wrap: wrap; gap: 2px; }
.detect__item {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.55); transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.detect__item:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.console__status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.console__status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(48, 209, 88, 0.8); }

/* ------------------------------------------------------------- mascot ---- */
.mascot { width: 100%; height: auto; overflow: visible; }
.mascot__helmet, .mascot__flaps path { fill: #fff; stroke: var(--ink); stroke-linejoin: round; }
.mascot__badge { fill: var(--ink); }
.mascot__waves { stroke: rgba(255, 255, 255, 0.72); transition: stroke var(--slow) var(--ease); }
.mascot__glint { opacity: 0; animation: glint 7s var(--ease) infinite; }
@keyframes glint { 0%, 60% { transform: translateX(-300px); opacity: 0; } 68% { opacity: 0.16; } 82%, 100% { transform: translateX(600px); opacity: 0; } }
.mascot__route { transition: opacity var(--fast) var(--ease), transform var(--slow) var(--spring); transform-origin: 0 0; }
.mascot__route-line { fill: none; opacity: 0.9; }
.mascot__node { transform-origin: center; transform-box: fill-box; animation: nodepulse 3s ease-in-out infinite; }
.mascot__node:nth-child(2) { animation-delay: 0.4s; }
.mascot__node:nth-child(3) { animation-delay: 0.8s; }
.mascot__node:nth-child(4) { animation-delay: 1.2s; }
@keyframes nodepulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.mascot__packet {
  offset-path: path("M-210 70L-80 -70L55 45L205 -75"); offset-distance: 0%; offset-rotate: 0deg;
  filter: drop-shadow(0 0 14px rgba(41, 151, 255, 0.9)); animation: packet-idle 4s ease-in-out infinite;
}
@keyframes packet-idle { 0%, 100% { offset-distance: 0%; } 50% { offset-distance: 18%; } }
.mascot--working .mascot__packet { animation: packet-run 1.4s linear infinite; }
@keyframes packet-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.mascot--working .mascot__node { animation-duration: 1.2s; }
.mascot--working .mascot__wave:nth-child(1), .mascot--working .mascot__wave:nth-child(4) { animation: signal 1.2s ease-in-out infinite; }
.mascot--working .mascot__wave:nth-child(2), .mascot--working .mascot__wave:nth-child(5) { animation: signal 1.2s ease-in-out 0.2s infinite; }
.mascot--working .mascot__wave:nth-child(3), .mascot--working .mascot__wave:nth-child(6) { animation: signal 1.2s ease-in-out 0.4s infinite; }
@keyframes signal { 0%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.mascot__check, .mascot__bang { opacity: 0; transform: scale(0.7); transform-origin: 0 0; transition: opacity var(--fast) var(--ease), transform var(--slow) var(--spring); }
.mascot__check path { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 480ms var(--ease) 80ms; }
.mascot--done .mascot__route, .mascot--error .mascot__route { opacity: 0; transform: scale(0.6); }
.mascot--done .mascot__check { opacity: 1; transform: none; }
.mascot--done .mascot__check path { stroke-dashoffset: 0; }
.mascot--error .mascot__bang { opacity: 1; transform: none; }
.mascot--error .mascot__waves { stroke: rgba(255, 214, 10, 0.9); }

/* ----------------------------------------------------------- sections ---- */
.section { padding: 96px 0; }
.section--tint { background: var(--surface); }
[data-theme="dark"] .section--tint { background: #0f0e22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section--tint { background: #0f0e22; } }
.section--first { padding-top: calc(var(--nav-h) + 64px); }
.section--tight { padding: 56px 0; }
.section--stats { padding: 0; margin-top: -36px; position: relative; z-index: 2; }
.section__head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; margin-bottom: 28px; }
.section__head h2, .h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.028em; text-wrap: balance; }
.h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.section__head p { margin-top: 12px; font-size: 18px; color: var(--muted); text-wrap: pretty; }
.section__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; }
.lede { margin-top: 12px; max-width: 640px; font-size: 19px; line-height: 1.45; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--link); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.stat {
  padding: 22px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 4px;
}
.stat__value { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat__label { font-size: 13px; color: var(--muted); }
.stats--stage { width: 100%; max-width: 760px; margin-top: 28px; grid-template-columns: repeat(4, 1fr); }
.stats--stage .stat { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.1); box-shadow: none; padding: 16px 18px; }
.stats--stage .stat__value { font-size: 24px; }
.stats--stage .stat__label { color: rgba(255, 255, 255, 0.55); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.step__art { height: 180px; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface-3)); }
.step__body { padding: 24px 28px 30px; }
.step__num { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--blue); }
.step h3 { margin: 8px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.step p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.mini-field { width: 100%; max-width: 300px; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 13px; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 30px -10px rgba(0, 0, 0, 0.14); font-size: 14px; }
.mini-field__icon { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-3); }
.mini-field__caret { width: 1.5px; height: 18px; background: var(--blue); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.mini-list { width: 100%; max-width: 300px; display: grid; gap: 6px; }
.mini-row { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--surface); font-size: 13px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.mini-row b { font-weight: 600; }
.mini-row i, .mini-row s { font-style: normal; text-decoration: none; color: var(--faint); }
.mini-row s { margin-left: auto; }
.mini-row em { font-style: normal; margin-left: auto; padding: 2px 7px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-size: 10px; font-weight: 600; }
.mini-row.is-on { box-shadow: 0 0 0 1.5px var(--blue), 0 10px 24px -10px rgba(0, 113, 227, 0.4); }
.mini-done { width: 100%; max-width: 320px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 12px 30px -10px rgba(0, 0, 0, 0.14); }
.mini-done__check { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.mini-done__check::after { content: ""; width: 7px; height: 12px; margin-top: -3px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.mini-done__text { display: flex; flex-direction: column; min-width: 0; }
.mini-done__text b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-done__text i { font-style: normal; font-size: 12px; color: var(--faint); }
.mini-done__btn { margin-left: auto; padding: 7px 12px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; }

/* chips / tabs */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--text);
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.chip b { font-weight: 600; color: var(--faint); }
a.chip:hover, button.chip:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.chip.is-on { background: var(--text); color: var(--canvas); border-color: var(--text); }
.chip.is-on b { color: inherit; opacity: 0.7; }
.chip--lg { height: 40px; padding: 0 16px; font-size: 15px; }
.chip--sm { height: 24px; padding: 0 9px; font-size: 12px; background: var(--surface-2); border-color: transparent; color: var(--muted); }
.chip--warn { color: #b25e00; background: rgba(255, 214, 10, 0.18); }
.catgroup + .catgroup { margin-top: 28px; }
.catgroup__title { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-3); }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.tab:hover { color: var(--text); }
.tab.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.filters__count { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

/* grids and cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.grid--formats, .grid--guides { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid--prepared { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.card p { flex: 1; font-size: 15px; line-height: 1.5; color: var(--muted); }
.card__glyph { width: 48px; height: 48px; margin-bottom: 4px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); font-size: 24px; }
.card__more { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--link); }
.card__more svg { width: 12px; height: 12px; transition: transform var(--fast) var(--ease); }
.card:hover .card__more svg { transform: translateX(3px); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card__badge { align-self: flex-start; padding: 3px 9px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); }
.card__badge--keenetic { background: var(--blue-soft); color: var(--link); }
.card__badge--mikrotik { background: rgba(48, 209, 88, 0.16); color: #1c8a3c; }
[data-theme="dark"] .card__badge--mikrotik { color: var(--green); }

.svc {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.svc:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.svc__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); font-size: 22px; }
.svc__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.svc__name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc__stem { font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc__meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.svc__arrow { flex: none; width: 14px; height: 14px; color: var(--faint); transition: transform var(--fast) var(--ease), color var(--fast) var(--ease); }
.svc__arrow svg { width: 100%; height: 100%; }
.svc:hover .svc__arrow { color: var(--link); transform: translateX(3px); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 20px; }
.empty__mascot { width: 120px; margin-bottom: 14px; opacity: 0.9; }
.empty h3 { font-size: 22px; font-weight: 600; }
.empty p { margin-top: 8px; max-width: 460px; color: var(--muted); }
.empty a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* picks (data / format choice) */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 18px 16px; border-radius: var(--r-md); text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-card);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.pick:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--line-strong); }
.pick.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft), var(--shadow-card); }
.pick[disabled] { cursor: not-allowed; opacity: 0.55; }
.pick__icon { font-size: 22px; line-height: 1; margin-bottom: 6px; }
.pick__title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.pick__sub { font-size: 13px; color: var(--muted); }
.pick__badge { margin-top: 6px; padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; background: var(--blue-soft); color: var(--link); }
.pick--live { background: linear-gradient(135deg, var(--surface), var(--blue-soft)); }

/* exporter */
.exporter { margin-top: 20px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); animation: rise var(--slow) var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.exporter__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.exporter__title { display: flex; align-items: baseline; gap: 10px; }
.exporter__kind { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.exporter__name { font-size: 14px; color: var(--muted); }
.exporter__formats { display: flex; flex-wrap: wrap; gap: 6px; }
.exporter__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.exporter__stats b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.exporter__preview { position: relative; margin-top: 14px; }
.preview {
  margin: 0; max-height: 320px; overflow: auto; padding: 14px 16px; border-radius: var(--r-md); background: var(--code-bg); border: 1px solid var(--line);
  font-size: 13px; line-height: 1.55; color: var(--text-2); white-space: pre; tab-size: 4;
}
.preview__more { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 10px; text-align: center; font-size: 12px; color: var(--muted); pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--code-bg) 60%); border-radius: 0 0 var(--r-md) var(--r-md); }
.exporter__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.exporter__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.exporter.is-loading .preview { opacity: 0.5; }
.copied { color: var(--green) !important; }

/* progress / alerts */
.progress-card { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); animation: rise var(--slow) var(--ease) both; }
.progress__ring { flex: none; width: 48px; height: 48px; transform: rotate(-90deg); }
.progress__track, .progress__value { fill: none; stroke-width: 3.5; }
.progress__track { stroke: var(--line-strong); }
.progress__value { stroke: var(--glow); stroke-linecap: round; transition: stroke-dashoffset 600ms var(--ease); }
.progress__text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.progress__text strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.progress__text span { font-size: 13px; color: var(--muted); }
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 1.45; }
.alert--error { background: var(--red-soft); border: 1px solid rgba(255, 69, 58, 0.25); color: #c0271b; }
[data-theme="dark"] .alert--error { color: #ffb4ab; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alert--error { color: #ffb4ab; } }

/* two-column blocks, facts, guides */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two--wide { gap: 20px; }
.facts { margin-top: 16px; display: grid; gap: 10px; }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts b { font-weight: 600; }
.facts span { color: var(--muted); overflow-wrap: anywhere; }
.facts code { font-size: 13px; background: var(--code-bg); padding: 1px 6px; border-radius: 6px; }
.guidelist { margin-top: 16px; display: grid; gap: 8px; }
.guidelink { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 15px; transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.guidelink:hover { border-color: var(--line-strong); transform: translateX(3px); }
.panel-card { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; }
.dnslist { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.dnslist li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.dnslist code { font-size: 13px; }
.dnslist span { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--between { justify-content: space-between; }

/* forms */
.textarea, .select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 15px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.textarea { resize: vertical; min-height: 96px; font-family: var(--mono); font-size: 14px; line-height: 1.5; }
.textarea:focus, .select:focus { outline: 0; border-color: var(--glow); box-shadow: 0 0 0 3px var(--blue-soft); }
.select { height: 44px; appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; }
.fieldset { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.fieldset > span { font-weight: 600; color: var(--text-2); }
.fieldset--inline { flex-direction: row; align-items: center; gap: 10px; }
.fieldset--inline .select { width: auto; }
.code { padding: 12px 14px; border-radius: var(--r-md); background: var(--code-bg); border: 1px solid var(--line); font-size: 13px; line-height: 1.5; overflow-x: auto; white-space: pre; }
.code--inline { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.code--dark { margin-top: 18px; background: rgba(0, 0, 0, 0.35); border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); text-align: left; max-width: 100%; }
kbd { padding: 1px 6px; border-radius: 6px; background: var(--code-bg); border: 1px solid var(--line); font-size: 12px; }

/* generator */
.stepper { display: flex; gap: 6px; margin-bottom: 26px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-3); overflow-x: auto; }
.stepper__item { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; cursor: default; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.stepper__item span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line-strong); font-size: 12px; font-weight: 600; color: var(--text); }
.stepper__item.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.stepper__item.is-on span { background: var(--blue); color: #fff; }
.stepper__item.is-done { color: var(--text); cursor: pointer; }
.stepper__item.is-done span { background: var(--green); color: #fff; }
.gstep__head { margin-bottom: 18px; }
.gstep__head h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; }
.gstep__head p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.gstep__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.srcpane { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.picklist { display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.picklist:empty { display: none; }
.pickitem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); text-align: left; font-size: 14px; transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.pickitem:hover { border-color: var(--line-strong); background: var(--hover); }
.pickitem b { font-weight: 600; }
.pickitem i { font-style: normal; color: var(--faint); font-family: var(--mono); font-size: 12px; }
.pickitem span:last-child { margin-left: auto; color: var(--faint); font-size: 12px; white-space: nowrap; }
.chosen { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--blue-soft); border: 1px solid transparent; font-size: 15px; }
.chosen b { font-weight: 600; }
.chosen .chip { margin-left: auto; }
.howto { font-size: 14px; color: var(--muted); }
.howto summary { cursor: pointer; font-weight: 500; color: var(--link); }
.howto ol { margin-top: 10px; padding-left: 20px; }
.howto li { margin-top: 4px; }
.howto .code { margin: 10px 0; }
.advanced { margin-top: 36px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--line-strong); }
.advanced summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.advanced__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.advanced a { color: var(--link); }

/* dns results */
.dnsresult { margin-top: 40px; }
.dnsresult .stats { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.tablewrap { overflow-x: auto; margin-top: 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: 0.02em; white-space: nowrap; background: var(--surface-2); }
.table td code { font-size: 12px; display: block; overflow-wrap: anywhere; }
.table td .more { color: var(--faint); font-size: 12px; }
.table tr.is-empty td { color: var(--faint); }

/* faq / prose */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M6 2.5v7M2.5 6h7' stroke='%2386868b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform 260ms var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { max-width: 660px; padding: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.faq__answer a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.prose h2 { margin: 40px 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.prose p { margin-top: 12px; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.prose .lede { margin-top: 16px; font-size: 20px; color: var(--muted); }
.prose a:not(.btn) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { margin-top: 12px; padding-left: 22px; color: var(--text-2); }
.prose ul { list-style: disc; }
.prose li { margin-top: 8px; line-height: 1.55; }
.prose code { font-size: 14px; background: var(--code-bg); padding: 1px 6px; border-radius: 6px; }
.stepslist { counter-reset: s; list-style: none !important; padding-left: 0 !important; }
.stepslist li { position: relative; padding: 14px 16px 14px 56px; margin-top: 8px !important; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.stepslist li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; }

/* ------------------------------------------------------------- footer ---- */
.footer { padding: 64px 0 40px; background: var(--ink); color: rgba(255, 255, 255, 0.62); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr; gap: 40px; }
.footer .brand { color: #fff; }
.footer .brand__accent { color: var(--glow); }
.footer__brand p { max-width: 320px; margin-top: 16px; font-size: 14px; line-height: 1.5; }
.footer h4 { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: #fff; }
.footer li { margin-top: 9px; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer__note { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(255, 255, 255, 0.4); }
.footer__note a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------- responsive ---- */
@media (max-width: 1024px) {
  .steps, .grid, .grid--services, .grid--formats, .grid--guides { grid-template-columns: repeat(2, 1fr); }
  .grid--prepared { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr; }
  .search--nav { width: 150px; }
}
@media (max-width: 820px) {
  .menu { display: grid; }
  .nav__nav { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 8px 12px 12px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.4); }
  .nav.is-open .nav__nav { display: block; }
  .nav.is-open { background: var(--surface); color: var(--text); border-bottom-color: var(--line); }
  .nav__links { flex-direction: column; gap: 2px; }
  .nav__links a { display: block; padding: 12px 14px; font-size: 16px; color: var(--text); }
  .has-stage .nav.is-open .nav__links a { color: var(--text); }
  .has-stage .nav.is-open .brand__accent { color: var(--blue); }
  .has-stage .nav.is-open .theme, .has-stage .nav.is-open .menu { color: var(--text-2); background: var(--hover); }
  .has-stage .nav.is-open .search--nav { background: var(--hover); color: var(--text-2); }
  .search--nav { width: 40px; padding: 0 12px; }
  .search--nav:focus-within { width: 200px; }
  .search--nav .search__input { opacity: 0; width: 0; }
  .search--nav:focus-within .search__input { opacity: 1; width: auto; }
  .pagehead { flex-direction: column; align-items: stretch; }
  .search--page { min-width: 0; }
  .picks { grid-template-columns: repeat(2, 1fr); }
  .advanced__grid { grid-template-columns: 1fr; }
  .dnslist { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .shell { padding: 0 18px; }
  .stage { padding: calc(var(--nav-h) + 40px) 0 64px; }
  .stage--compact { padding-bottom: 56px; }
  .stage__mascot { width: 132px; margin-bottom: 18px; }
  .stage__mascot--sm { width: 104px; }
  .stage__sub { font-size: 17px; }
  .console { margin-top: 26px; padding: 8px; border-radius: 24px; }
  .field { flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 16px; }
  .field__icon { margin-left: 8px; }
  .field .field__input { flex: 1 1 0; height: 44px; font-size: 16px; }
  .field__actions { flex: 1 0 100%; display: grid; }
  .field .btn { height: 46px; padding: 0; }
  .console__foot { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 4px 4px; }
  .console__status { padding: 0 6px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 16px; }
  .stat__value { font-size: 24px; }
  .stats--stage { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .section--first { padding-top: calc(var(--nav-h) + 40px); }
  .section--stats { margin-top: -28px; }
  .section__head { margin-bottom: 30px; }
  .section__head p { font-size: 16px; }
  .steps, .grid, .grid--services, .grid--formats, .grid--guides, .grid--prepared { grid-template-columns: 1fr; gap: 12px; }
  .picks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pick { padding: 14px; }
  .step__art { height: 150px; }
  .card { padding: 22px; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .stepper__item { padding: 0 10px; font-size: 13px; }
  .stepper__item span { width: 20px; height: 20px; }
  .exporter { padding: 14px; }
  .exporter__actions .btn { flex: 1 1 auto; }
  .footer { padding: 48px 0 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__note { flex-direction: column; gap: 6px; }
  .faq__item summary { padding: 16px 0; font-size: 17px; }
  .dnsresult .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 430px) {
  .brand__name { font-size: 17px; }
  .picks { grid-template-columns: 1fr; }
  .stepper__item { flex: none; }
  .stepper__item:not(.is-on) { padding: 0 8px; }
  .stepper__item:not(.is-on) span + * { display: none; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 8px; font-size: 13px; }
}

/* ----------------------------------------------------- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .console.is-focus .console__ring { animation: none; opacity: 0.8; }
}
