/* ==========================================================================
   Subfyo — core stylesheet (public site, auth, unlock page, installer)
   Design tokens → base → components → layout → pages
   ========================================================================== */

/* ---------- Self-hosted fonts (SIL OFL, see assets/fonts/LICENSE.txt) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../fonts/sora-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --brand: #FF3B5C;
  --accent: #3DE0C4;
  --radius: 14px;
  --radius-sm: calc(var(--radius) * .62);
  --radius-lg: calc(var(--radius) * 1.45);
  --font: "Inter", "InterVariable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
  --header-h: 68px;
  --brand-ink: #fff;
  --yt: #FF0033; --dc: #5865F2;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0D12; --bg-2: #0E1117;
  --surface: #12151D; --surface-2: #171B25; --surface-3: #1F2431;
  --border: #232836; --border-2: #303646;
  --text: #EEF1F6; --text-2: #A7AEBD; --muted: #6E7689;
  --ok: var(--accent); --warn: #FFB547; --danger: #FF5A5A; --info: #6B93FF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 0 rgba(255,255,255,.035) inset, 0 18px 40px -18px rgba(0,0,0,.75);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 80px -30px rgba(0,0,0,.85);
  --grid-line: rgba(255,255,255,.045);
  --x-color: #E7E9EA;
  --glass: rgba(18,21,29,.72);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F7F9; --bg-2: #EEF0F4;
  --surface: #FFFFFF; --surface-2: #F5F6F9; --surface-3: #ECEEF3;
  --border: #E3E6EC; --border-2: #D2D6DF;
  --text: #0F1219; --text-2: #4A5163; --muted: #7A8193;
  --ok: #0E9F86; --warn: #C27803; --danger: #E5484D; --info: #3B6FE8;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06);
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 12px 32px -16px rgba(16,24,40,.18);
  --shadow-lg: 0 2px 4px rgba(16,24,40,.04), 0 40px 70px -32px rgba(16,24,40,.3);
  --grid-line: rgba(15,18,25,.06);
  --x-color: #0F1419;
  --glass: rgba(255,255,255,.78);
}
:root {
  --brand-soft: color-mix(in srgb, var(--brand) 14%, transparent);
  --brand-line: color-mix(in srgb, var(--brand) 40%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: var(--brand-line); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--surface-3); padding: .12em .4em; border-radius: 6px; border: 1px solid var(--border); }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
::selection { background: color-mix(in srgb, var(--brand) 35%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.i-sm { width: .95em; height: .95em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-lg { width: min(100% - 2.5rem, 1040px); margin-inline: auto; }
.container-md { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.container-sm { width: min(100% - 2.5rem, 620px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.d-block { display: block; }
.inline { display: inline; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.mt-1 { margin-top: .6rem; }
.grow { flex: 1; }
.txt-brand { color: var(--brand); font-weight: 600; }
.txt-muted { color: var(--muted); }
.txt-ok { color: var(--ok); } .txt-warn { color: var(--warn); } .txt-danger { color: var(--danger); }
.only-mobile { display: none !important; }
@media (max-width: 767px) { .only-mobile { display: block !important; } .only-desktop { display: none !important; } .hide-sm { display: none !important; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row-wrap { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--text); --b-bd: var(--border-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 42px; padding: .55rem 1.05rem; border-radius: calc(var(--radius) * .75);
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--b-fg); border-color: var(--muted); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary { --b-bg: var(--brand); --b-fg: var(--brand-ink); --b-bd: transparent; box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--brand) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { --b-bg: color-mix(in srgb, var(--brand) 88%, #fff); border-color: transparent; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--brand) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-outline { --b-bg: transparent; --b-bd: var(--border-2); }
.btn-outline:hover { --b-bg: var(--surface-2); }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; }
.btn-ghost:hover { --b-bg: var(--surface-2); border-color: transparent; }
.btn-danger { --b-bg: var(--danger); --b-fg: #fff; --b-bd: transparent; }
.btn-danger-ghost { --b-bg: transparent; --b-fg: var(--danger); --b-bd: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn-danger-ghost:hover { --b-bg: color-mix(in srgb, var(--danger) 10%, transparent); border-color: var(--danger); }
.btn-dashed { --b-bg: transparent; border-style: dashed; color: var(--text-2); }
.btn-dashed:hover { color: var(--brand); border-color: var(--brand); }
.btn-sm { min-height: 34px; padding: .35rem .75rem; font-size: .85rem; border-radius: calc(var(--radius) * .6); }
.btn-lg { min-height: 52px; padding: .8rem 1.4rem; font-size: 1.02rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { padding: .5rem; width: 42px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: var(--b-fg) var(--b-fg) transparent transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); transition: background .2s, color .2s; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn-social { --b-bg: var(--surface); --b-bd: var(--border-2); width: 100%; min-height: 48px; }
.btn-discord .i { color: var(--dc); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pills, chips, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.pill-brand { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.pill-danger { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); border-color: transparent; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid var(--border-2); color: var(--text-2); text-decoration: none; background: var(--surface); }
.chip:hover, .chip.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.badge { display: inline-flex; align-items: center; gap: .55rem; padding: .38rem .85rem .38rem .55rem; border-radius: 999px; border: 1px solid var(--border-2); background: var(--glass); backdrop-filter: blur(8px); font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: 1.4rem; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.badge-st { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem; border-radius: 6px; font-size: .74rem; font-weight: 700; text-transform: capitalize; letter-spacing: .01em; vertical-align: middle; }
.badge-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-active { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.st-disabled { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.st-banned { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, transparent); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }

/* ---------- Forms ---------- */
.form-stack { display: grid; gap: 1rem; }
.form-row-2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row-3 { display: grid; gap: .6rem; grid-template-columns: 1fr 1.6fr 1fr; }
@media (max-width: 640px) { .form-row-2, .form-row-3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field > span:first-child, .field > label { font-size: .875rem; font-weight: 600; color: var(--text-2); }
.field small { color: var(--muted); font-size: .8rem; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.field-error { color: var(--danger); font-size: .82rem; margin: 0; font-weight: 500; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]), select, textarea {
  width: 100%; min-height: 44px; padding: .6rem .85rem; border-radius: calc(var(--radius) * .7);
  background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s; outline: none;
}
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
select { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238891a3' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; }
input[type="file"] { font-size: .875rem; color: var(--text-2); max-width: 100%; }
input[type="file"]::file-selector-button { margin-right: .75rem; padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; }
.code-input { font-family: var(--mono) !important; font-size: .86rem !important; line-height: 1.55 !important; tab-size: 4; white-space: pre; }
.check { display: inline-flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: var(--text-2); cursor: pointer; line-height: 1.4; }
.check input { accent-color: var(--brand); width: 17px; height: 17px; margin: .1rem 0 0; flex: none; }
.check a { color: var(--brand); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix b { display: grid; place-items: center; padding: 0 .7rem; border: 1px solid var(--border-2); border-right: 0; border-radius: calc(var(--radius) * .7) 0 0 calc(var(--radius) * .7); background: var(--surface-3); color: var(--muted); font-weight: 600; }
.input-prefix input { border-radius: 0 calc(var(--radius) * .7) calc(var(--radius) * .7) 0 !important; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 2.8rem !important; }
.pw-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); border-radius: 8px; }
.pw-eye:hover { color: var(--text); }
.strength { display: block; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.strength[data-score="2"] i { background: var(--warn); }
.strength[data-score="3"] i, .strength[data-score="4"] i { background: var(--ok); }
.otp-input { text-align: center; font-size: 1.5rem !important; letter-spacing: .35em; font-family: var(--mono) !important; }
.form-inline { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.form-inline .field { flex: 1 1 200px; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.captcha { min-height: 65px; }

/* Segmented control */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: calc(var(--radius) * .8); background: var(--bg-2); border: 1px solid var(--border); flex-wrap: wrap; }
.seg-col { display: grid; width: 100%; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: calc(var(--radius) * .6); font-weight: 600; font-size: .9rem; color: var(--text-2); transition: background .2s, color .2s; flex-wrap: wrap; }
.seg-opt small { color: var(--muted); font-weight: 400; }
.seg-opt input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-2); }
.seg-opt input:checked + span .i { color: var(--brand); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--brand); }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 600; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-2); transition: background .2s, border-color .2s; flex: none; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--brand); outline-offset: 2px; }
.switch input:disabled + .switch-ui { opacity: .5; }

/* ---------- Alerts, toasts ---------- */
.alert { padding: .85rem 1rem; border-radius: var(--radius); border: 1px solid; font-size: .92rem; margin-bottom: 1rem; }
.alert-error { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.alert-success { color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert-warning { color: var(--text); background: color-mix(in srgb, var(--warn) 10%, transparent); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.toasts { position: fixed; top: 1rem; right: 1rem; z-index: 300; display: grid; gap: .6rem; width: min(400px, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .7rem; align-items: flex-start; padding: .85rem .9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); animation: toast-in .35s var(--ease); font-size: .92rem; }
.toast p { margin: 0; flex: 1; }
.toast > .i { margin-top: .15rem; }
.toast-success > .i { color: var(--ok); } .toast-error > .i { color: var(--danger); } .toast-info > .i, .toast-warning > .i { color: var(--warn); }
.toast-error { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); }
.toast-x { background: none; border: 0; color: var(--muted); padding: 0; }
.toast.is-out { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,6,10,.66); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 2rem); overflow: auto; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-lg); animation: pop .3s var(--ease); }
.modal-card h2 { font-size: 1.35rem; display: flex; gap: .5rem; align-items: center; padding-right: 2rem; }
.modal-x { position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--text-2); }
.modal-body { color: var(--text-2); margin-bottom: 1.2rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: .4rem; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 120; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s var(--ease); }
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .7rem; border-radius: 9px; font-size: .9rem; text-decoration: none; color: var(--text); background: none; border: 0; text-align: left; font-weight: 500; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu .i { color: var(--muted); }
.dropdown-menu .danger, .dropdown-menu .danger .i { color: var(--danger); }
.dropdown-head { padding: .6rem .7rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .35rem; display: grid; }
.dropdown-head span { color: var(--muted); font-size: .82rem; }

/* ---------- Avatar ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.avatar-initials { --s: 32px; width: var(--s); height: var(--s); display: inline-grid; place-items: center; font-size: calc(var(--s) * .38); font-weight: 700; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 40) 70% 42%)); letter-spacing: -.02em; }
.avatar-btn { padding: 0; border: 2px solid var(--border-2); border-radius: 50%; background: none; display: grid; }
.avatar-btn:hover { border-color: var(--brand); }

/* ---------- Header ---------- */
.announce { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 22%, var(--bg)), color-mix(in srgb, var(--accent) 16%, var(--bg))); border-bottom: 1px solid var(--border); font-size: .88rem; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: .7rem; min-height: 40px; position: relative; padding-right: 2rem; }
.announce a { font-weight: 600; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.announce-pill { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .12rem .45rem; border-radius: 6px; background: var(--brand); color: #fff; }
.announce-x { position: absolute; right: 0; background: none; border: 0; color: var(--text-2); }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, backdrop-filter .25s; }
.site-header.is-stuck { background: var(--glass); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark svg { width: 32px; height: 32px; }
.bm-bg { fill: var(--brand); } .bm-play { fill: var(--brand); }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -.04em; }
.brand-img { height: 32px; width: auto; }
.main-nav { flex: 1; display: flex; align-items: center; }
.nav-list { display: flex; gap: .2rem; list-style: none; margin: 0 auto; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .8rem; border-radius: 9px; font-size: .94rem; font-weight: 500; color: var(--text-2); text-decoration: none; background: none; border: 0; }
.nav-link:hover, .nav-link.is-active { color: var(--text); background: var(--surface-2); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 0; padding: .4rem; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: none; }
.has-sub.is-open .sub, .has-sub:hover .sub { display: block; }
.sub a { display: block; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; font-size: .92rem; }
.sub a:hover { background: var(--surface-2); }
.nav-mobile-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }
.nav-toggle { display: none; }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger i:nth-child(2) { opacity: 0; }
.nav-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; padding: 1.25rem; gap: 1.25rem; background: var(--bg); border-top: 1px solid var(--border); transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; z-index: 99; visibility: hidden; }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; margin: 0; gap: .15rem; }
  .nav-link { font-size: 1.1rem; padding: .85rem 1rem; width: 100%; justify-content: space-between; }
  .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 1rem; background: none; }
  .nav-mobile-cta { display: grid; gap: .6rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer-brand p { color: var(--text-2); font-size: .92rem; max-width: 34ch; margin-top: 1rem; }
.footer-col h2 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul, .socials, .footer-bottom ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: var(--text); }
.socials { display: flex; gap: .4rem; margin-top: 1.25rem; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-2); color: var(--text-2); }
.socials a:hover { color: var(--brand); border-color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Shared backgrounds ---------- */
.hero-bg, .unlock-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.grid-fade { position: absolute; inset: -1px; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-a { width: 520px; height: 420px; background: var(--brand); top: -220px; right: 8%; opacity: .32; }
.glow-b { width: 460px; height: 380px; background: var(--accent); top: 120px; left: -180px; opacity: .14; }
[data-theme="light"] .glow-a { opacity: .18; } [data-theme="light"] .glow-b { opacity: .12; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; }
.section-head p { color: var(--text-2); font-size: 1.08rem; margin: 0; }
.section-link { text-align: center; margin-top: 2rem; }
.section-link a { color: var(--brand); font-weight: 600; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.eyebrow-title { font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; text-align: center; margin-bottom: 1.5rem; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.ticks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--text-2); }
.ticks .i { color: var(--ok); margin-top: .2rem; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin-bottom: 1.4rem; }
.rotator { display: block; color: var(--brand); min-height: 1.05em; }
.rotator-word { display: inline-block; animation: word-in .5s var(--ease); background: linear-gradient(100deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #ffb36b)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.rotator-word.is-out { animation: word-out .35s var(--ease) forwards; }
@keyframes word-in { from { opacity: 0; transform: translateY(.4em); filter: blur(6px); } }
@keyframes word-out { to { opacity: 0; transform: translateY(-.35em); filter: blur(6px); } }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 36rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-ctas.center { justify-content: center; }
.hero-note { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; color: var(--muted); font-size: .88rem; }
.hero-note .i { color: var(--ok); }
.hero-stats { display: flex; gap: 2.5rem; margin: 2.5rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.hero-stats div { display: grid; }
.hero-stats dt { color: var(--muted); font-size: .82rem; order: 2; }
.hero-stats dd { margin: 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
.hero-visual { position: relative; display: grid; justify-items: center; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } .hero-visual { margin-top: 1rem; } }

/* Animated mock card */
.mock-card { position: relative; width: min(420px, 100%); padding: 1.35rem; border-radius: calc(var(--radius) * 1.6); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface)); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.02); transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); transition: transform .6s var(--ease); }
.hero-visual:hover .mock-card { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.mock-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, var(--brand-line), transparent 40%, transparent 60%, color-mix(in srgb, var(--accent) 35%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mock-top { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.mock-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #7C5CFF, #3DA9FC); color: #fff; flex: none; }
.mock-by { display: block; font-size: .75rem; color: var(--muted); }
.mock-title { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -.02em; }
.mock-lock { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); transition: .4s var(--ease); }
.mock-card.is-unlocked .mock-lock { background: var(--accent-soft); color: var(--ok); transform: rotate(-12deg) scale(1.05); }
.mock-progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-bottom: 1rem; }
.mock-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .6s var(--ease); }
.mock-tasks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.mock-tasks li { display: flex; align-items: center; gap: .7rem; padding: .7rem .75rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-2); font-size: .9rem; font-weight: 600; color: var(--muted); transition: .35s var(--ease); }
.mock-tasks li.is-active { color: var(--text); border-color: var(--brand-line); background: var(--brand-soft); }
.mock-tasks li.is-done { color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-soft); }
.mt-ico { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-3); flex: none; color: var(--pc, var(--text)); }
.mt-state { margin-left: auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--border-2); color: transparent; transition: .3s; }
.mock-tasks li.is-active .mt-state { border-color: var(--brand) transparent var(--brand) var(--brand); animation: spin .9s linear infinite; }
.mock-tasks li.is-done .mt-state { background: var(--ok); border-color: var(--ok); color: #0b0d12; }
.mock-tasks .mt-state .i { width: 14px; height: 14px; stroke-width: 3; }
.mock-unlock { display: flex; align-items: center; justify-content: center; gap: .55rem; height: 50px; border-radius: var(--radius); background: var(--surface-3); color: var(--muted); font-weight: 700; transition: .4s var(--ease); }
.mock-card.is-unlocked .mock-unlock { background: var(--brand); color: #fff; box-shadow: 0 14px 34px -12px var(--brand); }
.mock-result { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; padding: .65rem .75rem; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); opacity: 0; transform: translateY(-6px); transition: .4s var(--ease); }
.mock-result code { background: none; border: 0; padding: 0; font-size: .8rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.mock-copy { color: var(--ok); }
.mock-card.is-revealed .mock-result { opacity: 1; transform: none; }
.mock-chip { position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); font-size: .82rem; font-weight: 700; white-space: nowrap; animation: float 6s ease-in-out infinite; }
.mock-chip-a { top: 18%; left: -12%; } .mock-chip-b { bottom: 14%; right: -6%; animation-delay: -3s; }
.mock-chip-b .i { color: var(--dc); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yt); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 560px) { .mock-chip { display: none; } .mock-card { transform: none; } }

/* Platform colours */
.p-youtube { --pc: var(--yt); } .p-discord { --pc: var(--dc); } .p-x { --pc: var(--x-color); } .p-instagram { --pc: #E1306C; }
.p-tiktok { --pc: #25F4EE; } .p-twitch { --pc: #9146FF; } .p-github { --pc: var(--text); } .p-telegram { --pc: #26A5E4; }
.p-facebook { --pc: #1877F2; } .p-reddit { --pc: #FF4500; } .p-steam { --pc: #66C0F4; } .p-kick { --pc: #53FC18; } .p-patreon { --pc: #FF424D; } .p-web { --pc: var(--accent); }
[data-theme="light"] .p-tiktok { --pc: #111; } [data-theme="light"] .p-kick { --pc: #1a9e00; }

/* Platforms strip */
.platforms { padding: 1rem 0 2rem; }
.platform-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; }
.platform-row li { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .9rem; transition: .25s; }
.platform-row li .i { color: var(--pc); width: 1.25em; height: 1.25em; filter: grayscale(1) opacity(.7); transition: .25s; }
.platform-row li:hover { border-color: var(--border-2); color: var(--text); transform: translateY(-2px); }
.platform-row li:hover .i { filter: none; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 46px; left: 12%; right: 12%; height: 1px; background: repeating-linear-gradient(90deg, var(--border-2) 0 6px, transparent 6px 12px); }
.step { position: relative; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step-num { position: absolute; top: 1.25rem; right: 1.4rem; font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -.05em; color: var(--surface-3); line-height: 1; }
.step-ico { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--brand); color: #fff; margin-bottom: 1.25rem; box-shadow: 0 10px 26px -10px var(--brand); }
.step-ico .i { width: 24px; height: 24px; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--text-2); margin: 0; font-size: .96rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 1rem; }
.bento-card { position: relative; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .25s var(--ease); }
.bento-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.bento-card.size-wide { grid-column: span 2; }
.bento-card.size-tall { grid-row: span 2; }
.bento-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 1.1rem; border: 1px solid var(--brand-line); }
.bento-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.bento-card p { color: var(--text-2); font-size: .95rem; margin: 0; }
.viz { margin-top: 1.4rem; }
.viz-code { border-radius: var(--radius); background: #0A0C11; border: 1px solid #222736; overflow: hidden; margin-top: auto; padding-top: 0; }
.viz-code-head { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; border-bottom: 1px solid #222736; color: #8b93a7; font-size: .75rem; font-family: var(--mono); }
.viz-code-head i { width: 9px; height: 9px; border-radius: 50%; background: #2c3242; }
.viz-code-head span { margin-left: .4rem; }
.viz-code-head b { margin-left: auto; display: inline-flex; gap: .3rem; align-items: center; color: var(--accent); font-weight: 600; }
.viz-code pre { margin: 0; padding: .9rem 1rem; font-size: .8rem; line-height: 1.7; color: #d7dbe6; overflow-x: auto; }
.tk-k { color: #ff7aa2; } .tk-n { color: #ffcb6b; } .tk-c { color: #5f6b85; }
.viz-tasks { list-style: none; padding: 0; display: grid; gap: .45rem; }
.viz-tasks li { display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--muted); }
.viz-tasks li.done { color: var(--text); } .viz-tasks li.done .i { color: var(--ok); }
.viz-tasks li.now { color: var(--text); border-color: var(--brand-line); }
.viz-tasks em { margin-left: auto; font-style: normal; color: var(--brand); font-family: var(--mono); font-size: .78rem; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brand); border-right-color: transparent; animation: spin .8s linear infinite; }
.viz-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: .5rem; }
.viz-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 30%, transparent)); opacity: .85; }
.viz-funnel { display: grid; gap: .4rem; margin-top: 1.1rem; }
.viz-funnel div { width: var(--w); padding: .4rem .65rem; border-radius: 8px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: .78rem; font-weight: 600; }
.viz-qr { display: flex; align-items: center; gap: 1rem; }
.viz-qr canvas { width: 92px; height: 92px; border-radius: 10px; background: #fff; padding: 6px; }
.viz-cipher { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: 10px; background: var(--bg-2); border: 1px dashed var(--border-2); }
.viz-cipher code { background: none; border: 0; padding: 0; color: var(--muted); font-size: .78rem; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-cipher .i { color: var(--brand); }
.viz-domains { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; color: var(--muted); }
.viz-domains .pill { font-family: var(--mono); font-size: .8rem; padding: .35rem .7rem; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento-card.size-wide, .bento-card.size-tall { grid-column: auto; grid-row: auto; } }

/* Demo */
.demo { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.demo-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; }
.demo-copy > p { color: var(--text-2); font-size: 1.05rem; }
.demo-stage { display: grid; justify-items: center; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

/* Use cases */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.uc-item { display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); transition: .25s; }
.uc-item:hover { border-color: var(--border-2); }
.uc-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--surface-3); color: var(--accent); }
.uc-item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.uc-item p { margin: 0; color: var(--text-2); font-size: .93rem; }
@media (max-width: 900px) { .uc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .uc-grid { grid-template-columns: 1fr; } }

/* Dashboard preview */
.dp-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dp-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; }
.dp-copy > p { color: var(--text-2); font-size: 1.05rem; }
.dp-mock { margin: 0; }
.dp-mock figcaption { text-align: center; color: var(--muted); font-size: .78rem; margin-top: .75rem; }
.dpm-window { border-radius: var(--radius-lg); border: 1px solid var(--border-2); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.dpm-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.dpm-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.dpm-bar span { margin-left: .75rem; font-size: .75rem; color: var(--muted); font-family: var(--mono); }
.dpm-body { padding: 1.25rem; display: grid; gap: 1rem; }
.dpm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.dpm-stats div { padding: .8rem .9rem; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); display: grid; }
.dpm-stats span { font-size: .75rem; color: var(--muted); }
.dpm-stats strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -.03em; }
.dpm-stats em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--ok); }
.dpm-chart { color: var(--brand); height: 110px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--border); padding: .6rem 0 0; overflow: hidden; }
.dpm-chart svg { width: 100%; height: 100%; }
.dpm-line2 { stroke: var(--accent); }
.dpm-funnel { display: grid; gap: .5rem; }
.dpm-funnel div { display: grid; grid-template-columns: 9rem 1fr 3rem; align-items: center; gap: .75rem; font-size: .82rem; }
.dpm-funnel span { display: flex; gap: .4rem; align-items: center; color: var(--text-2); }
.dpm-funnel span .i { color: var(--pc, var(--yt)); }
.dpm-funnel div:nth-child(2) span .i { color: var(--dc); }
.dpm-funnel i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--brand) var(--w), var(--surface-3) var(--w)); }
.dpm-funnel b { text-align: right; font-weight: 700; }
@media (max-width: 900px) { .dp-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dpm-funnel div { grid-template-columns: 7rem 1fr 2.6rem; } }

/* Compare */
.compare-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.ct-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; border-top: 1px solid var(--border); }
.ct-row:first-child { border-top: 0; }
.ct-row > span { padding: .95rem 1.2rem; }
.ct-head { background: var(--bg-2); font-weight: 700; font-size: .9rem; color: var(--text-2); }
.ct-row .ct-brand { background: color-mix(in srgb, var(--brand) 6%, transparent); text-align: center; }
.ct-row > span:last-child { text-align: center; }
.ct-head .ct-brand { color: var(--brand); }
.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.yes { background: var(--accent-soft); color: var(--ok); } .no { background: var(--surface-3); color: var(--muted); }
.yes .i, .no .i { width: 14px; height: 14px; stroke-width: 3; }
@media (max-width: 560px) { .ct-row > span { padding: .75rem .7rem; font-size: .88rem; } }

/* Testimonials */
.tm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.tm { margin: 0; padding: 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 1.25rem; }
.tm blockquote { margin: 0; color: var(--text); font-size: 1.02rem; }
.tm figcaption { display: flex; gap: .75rem; align-items: center; margin-top: auto; }
.tm figcaption span { display: grid; } .tm small { color: var(--muted); }

/* FAQ accordion */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin: 0; }
.accordion { display: grid; gap: .6rem; }
.acc { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s; }
.acc[open] { border-color: var(--border-2); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { margin: 0; font-family: var(--font); font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.acc-ico { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--text-2); transition: transform .25s var(--ease); }
.acc[open] .acc-ico { transform: rotate(45deg); color: var(--brand); }
.acc-body { padding: 0 1.25rem 1.2rem; color: var(--text-2); }
.acc-body p { margin: 0; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 1.5rem; } .faq-grid .section-head { position: static; } }

/* SEO block + guides */
.seo-inner { padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.seo-inner > h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.prose-cols { columns: 2 340px; column-gap: 3rem; }
.prose-cols h3 { break-after: avoid; }
.prose-cols p { break-inside: avoid-column; }
.home-guides { margin-top: 4rem; }
.hg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; }
.hg-head h2 { font-size: 1.6rem; margin: 0; }
.hg-head a { color: var(--brand); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: .25s var(--ease); }
.post-card:hover { border-color: var(--border-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.pc-media { display: block; aspect-ratio: 1200 / 630; background: var(--surface-3); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .pc-media img { transform: scale(1.03); }
.pc-ph { display: grid; place-items: center; height: 100%; color: var(--muted); }
.pc-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; align-items: flex-start; }
.pc-body h3 { font-size: 1.12rem; margin: 0; }
.pc-body h3 a { text-decoration: none; }
.pc-body p { color: var(--text-2); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-body time { margin-top: auto; color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { padding: 2rem 0 clamp(3rem, 6vw, 5rem); }
.cta-inner { position: relative; overflow: hidden; text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; border-radius: calc(var(--radius) * 2); background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 60%), var(--surface); border: 1px solid var(--border-2); }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; max-width: 22ch; margin-inline: auto; }
.cta-inner p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-art { width: 64px; height: 64px; margin: 0 auto 1.25rem; display: grid; place-items: center; border-radius: 20px; background: var(--brand); color: #fff; box-shadow: 0 16px 40px -14px var(--brand); }
.cta-art .i { width: 30px; height: 30px; }

/* Widgets & ads */
.widget-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--brand-line); background: linear-gradient(120deg, var(--brand-soft), transparent 70%), var(--surface); margin: 2rem 0; flex-wrap: wrap; }
.widget-cta h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.widget-cta p { margin: 0; color: var(--text-2); }
.widget-notice { display: flex; gap: .8rem; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); margin: 1.5rem 0; }
.widget-notice p { margin: .2rem 0 0; color: var(--text-2); }
.widget-html { margin: 1.5rem 0; }
.ad-slot { display: block; margin: 1.5rem auto; text-align: center; max-width: 100%; overflow: hidden; contain: layout; }
.ad-label { display: block; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
body > .ad-slot { width: min(100% - 2.5rem, var(--container)); }

/* ---------- Page templates ---------- */
.page-hero { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); overflow: hidden; }
.page-hero > .container, .page-hero > .container-md { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; }
.page-hero-lg { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.page-hero-lg .hero-ctas { margin-top: 1.75rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 60ch; }
.crumbs ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* Prose */
.prose { color: var(--text-2); font-size: 1.04rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { color: var(--text); font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 2.4em 0 .7em; font-weight: 750; }
.prose h3 { color: var(--text); font-size: 1.22rem; margin: 1.9em 0 .6em; }
.prose h4 { color: var(--text); font-size: 1.05rem; margin: 1.5em 0 .5em; }
.prose a { color: var(--brand); font-weight: 500; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); }
.prose pre { background: #0A0C11; color: #d7dbe6; border: 1px solid #222736; border-radius: var(--radius); padding: 1rem 1.2rem; overflow-x: auto; font-size: .86rem; line-height: 1.6; }
.prose img { border-radius: var(--radius); border: 1px solid var(--border); margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .7rem .85rem; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface-2); color: var(--text); }
.prose hr { margin: 2.5em 0; }
.prose .callout { padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--text); margin: 1.75em 0; }
.prose .callout p:last-child { margin: 0; }
.prose-wide { max-width: 920px; margin-inline: auto; }
.prose .feature-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 2rem 0; }
.prose .feature-rows > div { padding: 1.35rem; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.prose .feature-rows h3 { margin-top: 0; font-size: 1.08rem; }
.prose .feature-rows p { margin: 0; font-size: .96rem; }
.prose .step-list { counter-reset: st; list-style: none; padding: 0; }
.prose .step-list > li { counter-increment: st; position: relative; padding: 0 0 1.5rem 3.4rem; margin: 0; }
.prose .step-list > li::before { content: counter(st); position: absolute; left: 0; top: -.1rem; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-family: var(--font-display); }
.prose .step-list > li::after { content: ""; position: absolute; left: 1.13rem; top: 2.4rem; bottom: .3rem; width: 2px; background: var(--border); }
.prose .step-list > li:last-child::after { display: none; }
.prose .step-list strong { display: block; font-size: 1.1rem; margin-bottom: .2rem; }
@media (max-width: 640px) { .prose .feature-rows { grid-template-columns: 1fr; } }

/* Legal */
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; align-items: start; max-width: 1040px; }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); font-size: .88rem; }
.toc-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin-bottom: .75rem; }
.toc ol { list-style: none; margin: 0 0 1.5rem; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; padding: .3rem 0 .3rem .9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--brand); border-left-color: var(--brand); }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } .toc { position: static; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: start; }
.contact-side { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.contact-card > .i { width: 22px; height: 22px; color: var(--brand); }
.contact-card div { display: grid; }
.contact-card a { color: var(--text-2); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Blog post */
.post-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.post-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; margin-top: 1rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--muted); font-size: .88rem; }
.post-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post-cover { margin-top: 2rem; }
.post-cover img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); aspect-ratio: 1200/630; object-fit: cover; }
.post-grid-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 3.5rem; justify-content: center; margin-top: 3rem; }
.post-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.share { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.share .toc-title { width: 100%; }
.share a, .share button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); }
.share a:hover, .share button:hover { color: var(--brand); border-color: var(--brand); }
.post-cta { margin-top: 3rem; }
.related { padding-top: 3rem; }
.related h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
@media (max-width: 980px) { .post-grid-layout { grid-template-columns: 1fr; gap: 1.5rem; } .post-aside { position: static; order: 2; } }

/* Errors */
.error-page { padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; }
.error-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.error-page .lead { margin: 0 auto 2rem; }
.error-art { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-family: var(--font-display); font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--surface-3); }
.error-art > .i { width: 64px; height: 64px; color: var(--brand); }
.error-lock { display: grid; place-items: center; width: .9em; height: .9em; border-radius: 30%; background: var(--brand); color: #fff; box-shadow: 0 20px 50px -20px var(--brand); }
.error-lock .i { width: .45em; height: .45em; }
.maint { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 2rem; padding: 2rem; text-align: center; }
.maint-card { max-width: 520px; }
.maint .lead { margin: 0 auto 1.5rem; }

/* ---------- Auth ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-main { display: flex; flex-direction: column; padding: 1.5rem clamp(1.25rem, 5vw, 4rem); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-back { display: inline-flex; gap: .35rem; align-items: center; color: var(--muted); text-decoration: none; font-size: .9rem; }
.auth-content { flex: 1; display: grid; place-items: center; padding: 2.5rem 0; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.035em; }
.auth-card > .muted { margin-bottom: 1.75rem; }
.auth-card.center { text-align: center; }
.auth-alt { text-align: center; margin-top: 1.5rem; color: var(--muted); font-size: .92rem; }
.auth-alt a { color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-foot { display: flex; gap: 1.25rem; justify-content: center; font-size: .82rem; }
.auth-foot a { color: var(--muted); text-decoration: none; }
.social-btns { display: grid; gap: .6rem; }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0; color: var(--muted); font-size: .82rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.big-ico { width: 60px; height: 60px; margin: 0 auto 1.25rem; display: grid; place-items: center; border-radius: 18px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); }
.big-ico .i { width: 28px; height: 28px; }
.closed-note { text-align: center; }
.closed-note > .i { width: 40px; height: 40px; color: var(--warn); margin: 0 auto 1rem; }
.auth-art { position: relative; overflow: hidden; background: var(--bg-2); border-left: 1px solid var(--border); display: grid; place-items: center; padding: 3rem; }
.auth-art-inner { position: relative; z-index: 1; max-width: 440px; }
.auth-art .mock-card { transform: none; margin-bottom: 2.5rem; }
.auth-art h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.035em; }
@media (max-width: 960px) { .auth-shell { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- Unlock page ---------- */
.t-unlock { min-height: 100vh; display: flex; flex-direction: column; }
.t-unlock .unlock-bg { position: fixed; }
.unlock-top, .unlock-main, .unlock-foot { position: relative; z-index: 1; }
.unlock-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1rem, 4vw, 2rem); }
.unlock-main { flex: 1; display: grid; place-items: start center; padding: clamp(.5rem, 3vw, 2rem) 1rem 2rem; }
.unlock-wrap { width: min(540px, 100%); display: grid; gap: 1rem; }
.unlock-foot { text-align: center; padding: 1.5rem 1rem 2rem; color: var(--muted); font-size: .82rem; }
.unlock-foot p { margin-bottom: .6rem; }
.unlock-foot a { color: var(--text-2); }
.unlock-foot nav { display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.unlock-foot nav a, .unlock-foot .link-btn { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .82rem; display: inline-flex; gap: .3rem; align-items: center; }
.unlock-note { display: flex; gap: .7rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: .92rem; color: var(--text-2); }
.unlock-note p { margin: 0; }
.unlock-note .i { margin-top: .25rem; color: var(--brand); }
.unlock-safety { text-align: center; color: var(--muted); font-size: .8rem; display: flex; gap: .4rem; justify-content: center; align-items: center; }

.unlock-card { width: min(540px, 100%); padding: clamp(1.4rem, 4vw, 2rem); border-radius: calc(var(--radius) * 1.7); background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); position: relative; text-align: center; }
.uc-small { padding: 2.25rem 1.75rem; }
.uc-head { display: grid; justify-items: center; gap: .2rem; margin-bottom: 1.4rem; }
.uc-creator { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .75rem .25rem .3rem; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border); font-size: .82rem; color: var(--text-2); margin-bottom: 1rem; }
.uc-lock { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); margin-bottom: 1rem; transition: .5s var(--ease); }
.uc-lock .i { width: 28px; height: 28px; }
.uc-lock .i-unlock { display: none; }
.unlock-card.is-unlocked .uc-lock { background: var(--accent-soft); color: var(--ok); border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: rotate(-8deg) scale(1.06); }
.unlock-card.is-unlocked .uc-lock .i-lock { display: none; }
.unlock-card.is-unlocked .uc-lock .i-unlock { display: block; }
.uc-lock-muted { background: var(--surface-3); color: var(--muted); border-color: var(--border-2); }
.uc-title { font-size: clamp(1.4rem, 3.6vw, 1.85rem); font-weight: 800; letter-spacing: -.035em; margin: 0 0 .4rem; word-break: break-word; }
.uc-desc { color: var(--text-2); font-size: .95rem; margin: 0; max-width: 44ch; }
.uc-progress { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.uc-progress-bar { flex: 1; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.uc-progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .6s var(--ease); }
.uc-progress span { font-size: .82rem; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.uc-tasks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .65rem; text-align: left; }
.task { width: 100%; display: flex; align-items: center; gap: .85rem; padding: .8rem .9rem; border-radius: calc(var(--radius) * 1.05); border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); text-align: left; transition: border-color .25s, background .25s, transform .2s var(--ease), opacity .25s; position: relative; overflow: hidden; }
.task-ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--pc) 16%, var(--surface)); color: var(--pc); }
.task-ico .i { width: 22px; height: 22px; }
.task-text { display: grid; flex: 1; min-width: 0; }
.task-label { font-weight: 650; font-size: .98rem; line-height: 1.3; }
.task-sub { font-size: .78rem; color: var(--muted); }
.task-state { width: 34px; height: 34px; flex: none; display: grid; place-items: center; position: relative; }
.task-state > span { display: none; place-items: center; }
.task-locked { opacity: .55; cursor: not-allowed; }
.task-locked .task-ico { filter: grayscale(1); }
.task-locked .ts-lock { display: grid; color: var(--muted); }
.task-ready { border-color: var(--brand-line); background: linear-gradient(90deg, var(--brand-soft), transparent 70%), var(--bg-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 7%, transparent); }
.task-ready:hover { transform: translateY(-1px); border-color: var(--brand); }
.task-ready .ts-go { display: grid; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; }
.task-ready .ts-go .i { width: 16px; height: 16px; }
.task-progress { border-color: var(--brand-line); cursor: progress; }
.task-progress .ts-ring { display: grid; }
.ts-ring svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.ts-ring circle { fill: none; stroke: var(--surface-3); stroke-width: 3; }
.ts-ring .ring { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset 1s linear; }
.ts-ring b { position: absolute; font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.task-done { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(90deg, var(--accent-soft), transparent 75%), var(--bg-2); cursor: default; }
.task-done .ts-done { display: grid; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #0B0D12; animation: pop .35s var(--ease); }
.task-done .ts-done .i { width: 16px; height: 16px; stroke-width: 3; }
.task-done .task-sub { color: var(--ok); }
.task-failed { border-color: var(--danger) !important; animation: shake .45s; }
.task-failed .task-sub { color: var(--danger); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.uc-msg { margin: -.4rem 0 1rem; padding: .65rem .8rem; border-radius: 10px; font-size: .86rem; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); text-align: left; }
.uc-msg.is-hint { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--text); }
.btn-unlock { width: 100%; min-height: 58px; font-size: 1.08rem; border-radius: calc(var(--radius) * 1.05); --b-bg: var(--surface-3); --b-fg: var(--muted); --b-bd: var(--border-2); gap: .6rem; }
.btn-unlock .i-unlock { display: none; }
.btn-unlock:not([disabled]) { --b-bg: var(--brand); --b-fg: #fff; --b-bd: transparent; box-shadow: 0 16px 40px -14px var(--brand); animation: glow 2s ease-in-out infinite; }
.btn-unlock:not([disabled]) .i-lock { display: none; }
.btn-unlock:not([disabled]) .i-unlock { display: block; }
.btn-unlock[disabled] { opacity: 1; cursor: not-allowed; pointer-events: auto; }
@keyframes glow { 50% { box-shadow: 0 16px 50px -10px var(--brand); } }
.uc-result { text-align: left; animation: pop .4s var(--ease); }
.uc-success { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--ok); font-weight: 700; margin-bottom: .9rem; }
.uc-linkbox { display: flex; gap: .5rem; padding: .45rem .45rem .45rem .9rem; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); align-items: center; margin-bottom: .6rem; }
.uc-linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; padding: 0; font-size: .85rem; }
.uc-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.uc-code { border-radius: var(--radius); background: #0A0C11; border: 1px solid #222736; overflow: hidden; }
.uc-code-head { display: flex; justify-content: space-between; align-items: center; padding: .45rem .5rem .45rem .9rem; border-bottom: 1px solid #222736; color: #8b93a7; font-size: .76rem; font-family: var(--mono); gap: .5rem; }
.uc-code-head .btn { --b-bg: #1a1f2b; --b-bd: #2a3040; --b-fg: #e5e8ef; }
.uc-code pre { margin: 0; padding: 1rem; max-height: 420px; overflow: auto; color: #d7dbe6; font-size: .84rem; line-height: 1.6; white-space: pre; tab-size: 4; }
.uc-code.wrap pre { white-space: pre-wrap; word-break: break-word; }
.preview-card .uc-tasks { pointer-events: none; }

/* ---------- Cookie bar ---------- */
.cookie { position: fixed; z-index: 250; bottom: 1rem; display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow-lg); animation: toast-in .45s var(--ease); max-width: 430px; font-size: .88rem; }
.cookie p { margin: 0; color: var(--text-2); }
.cookie a { color: var(--text); }
.cookie-left { left: 1rem; } .cookie-right { right: 1rem; }
.cookie-bar { left: 1rem; right: 1rem; max-width: none; justify-content: center; }
.cookie-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--surface-3); color: var(--warn); }
.cookie.is-out { animation: toast-out .3s forwards; }
@media (max-width: 600px) { .cookie { left: .75rem !important; right: .75rem !important; bottom: .75rem; max-width: none; flex-wrap: wrap; } .cookie-icon { display: none; } .cookie .btn { width: 100%; } .t-unlock .cookie { padding: .7rem .8rem; } }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--text-2); }
.empty > .i { width: 44px; height: 44px; margin: 0 auto 1rem; color: var(--muted); }
.empty h2 { font-size: 1.25rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: center; margin: 2rem 0 0; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--text-2); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .gap { border: 0; background: none; }
.pagination .pagination-total { border: 0; background: none; color: var(--muted); font-weight: 500; margin-left: .5rem; }

/* ---------- Installer ---------- */
.install { min-height: 100vh; background: radial-gradient(ellipse at 50% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 55%), var(--bg); }
.install-wrap { width: min(760px, 100% - 2rem); margin: 0 auto; padding: 3rem 0; }
.install-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 2rem; }
.install-brand .logo-mark { color: var(--brand); }
.install-brand .muted { font-family: var(--font); font-size: .9rem; margin-left: .25rem; }
.install-steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1.5rem; flex-wrap: wrap; }
.install-steps li { display: flex; align-items: center; gap: .5rem; padding: .4rem .8rem .4rem .45rem; border-radius: 999px; border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--muted); }
.install-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: .75rem; }
.install-steps li.active { color: var(--text); border-color: var(--brand); }
.install-steps li.active span { background: var(--brand); color: #fff; }
.install-steps li.done span { background: var(--ok); color: #0b0d12; }
.install-card h1 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.install-card .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.install-card .span-2 { grid-column: 1 / -1; }
.install-card .form-actions { justify-content: flex-end; margin-top: .5rem; }
.req-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .4rem; }
.req-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem .8rem; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-size: .92rem; }
.req-list small { display: block; color: var(--muted); }
.req-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .45rem; flex: none; background: var(--ok); }
.req-list .fail .req-dot { background: var(--danger); } .req-list .warn .req-dot { background: var(--warn); }
.install-done { text-align: center; }
.install-done .kv { text-align: left; margin: 1.5rem auto; max-width: 520px; }
.install-done .alert { text-align: left; }
.install-done .form-actions { justify-content: center; }
.done-badge { width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #0b0d12; }
.install-foot { text-align: center; font-size: .8rem; margin-top: 1.5rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; margin: 1rem 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .install-card .form-grid { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Grid children must be allowed to shrink below their content width on small screens */
.hero-inner > *, .demo-grid > *, .dp-grid > *, .faq-grid > *, .contact-grid > *, .legal-grid > *, .post-grid-layout > *, .auth-shell > *, .footer-grid > * { min-width: 0; }
.rotator-word { white-space: normal; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .hero-title { font-size: 2.35rem; } .hero-ctas .btn { width: 100%; } .hero-stats { gap: 1.25rem; } }
