/* =====================================================================
   WpWebGuru plugin page system.
   To reuse this page for another plugin: change the tokens below
   (--accent, --spark), the content, the JSON-LD and the meta tags.
   ===================================================================== */
:root {
    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-code: "JetBrains Mono", ui-monospace, Consolas, Menlo, monospace;

    --radius: 10px;
    --radius-sm: 6px;
    --wrap: 1120px;
    --gutter: clamp(16px, 4vw, 32px);
}

:root[data-theme="light"] {
    --bg: #e9edf2;
    --bg-soft: #f2f5f8;
    --surface: #ffffff;
    --ink: #13181f;
    --muted: #4b5666;
    --line: #c8d0db;
    --accent: #1d57b8;
    --accent-ink: #ffffff;
    --accent-soft: #dbe6f8;
    --spark: #e8501a;
    --ok: #17703f;
    --err: #b3261e;
    --err-soft: #f9dedc;
    --ok-soft: #d8efe2;
    --shadow: 0 1px 0 rgba(19, 24, 31, .06), 0 18px 40px -18px rgba(19, 24, 31, .35);
}

:root[data-theme="dark"] {
    --bg: #12161d;
    --bg-soft: #181e27;
    --surface: #1c232d;
    --ink: #e7ecf3;
    --muted: #9aa6b8;
    --line: #2c3544;
    --accent: #78a6ff;
    --accent-ink: #0b1220;
    --accent-soft: #1d2b46;
    --spark: #ff7a45;
    --ok: #5ed08f;
    --err: #ff8a80;
    --err-soft: #3a1f21;
    --ok-soft: #173325;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 18px 40px -18px rgba(0, 0, 0, .7);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent);
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-thickness: 2px;
}

button {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    margin: 0;
    line-height: 1.08;
    text-wrap: balance;
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

code,
kbd {
    font-family: var(--font-code);
    font-size: .9em;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--bg);
    border-radius: 6px;
}

.skip:focus {
    top: 12px;
}

.wrap {
    width: min(100% - var(--gutter) * 2, var(--wrap));
    margin-inline: auto;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 8px;
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}

.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--ink);
    color: var(--bg);
}

.btn-small {
    padding: 9px 14px;
    font-size: .9375rem;
}

/* ----- Header ----- */
.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.top-in {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    font-stretch: 85%;
}

.brand-mark {
    width: 30px;
    height: 30px;
}

.brand small {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .875rem;
    color: var(--muted);
    font-stretch: 100%;
}

.nav {
    display: flex;
    gap: 4px;
    margin-inline-start: auto;
}

.nav a {
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: .9688rem;
}

.nav a:hover {
    background: var(--accent-soft);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    cursor: pointer;
}

.icon-btn:hover {
    border-color: var(--ink);
}

[data-theme="light"] .i-sun,
[data-theme="dark"] .i-moon {
    display: none;
}

.menu-btn {
    display: none;
}

.progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    background: var(--spark);
}

/* ----- Hero ----- */
.hero {
    padding: clamp(40px, 8vw, 88px) 0 0;
}

.hero-copy {
    max-width: 880px;
}

.hero h1 {
    font-size: clamp(2.6rem, 8.2vw, 5.9rem);
    font-weight: 800;
    font-stretch: 78%;
    letter-spacing: -.015em;
    line-height: .98;
}

.caret {
    display: inline-block;
    width: .11em;
    height: .82em;
    margin-inline-start: .08em;
    background: var(--spark);
    vertical-align: -.04em;
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-lede {
    margin-top: 26px;
    max-width: 60ch;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--muted);
}

.hero-lede strong {
    color: var(--ink);
    font-weight: 600;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 22px;
    color: var(--muted);
    font-size: .9375rem;
}

.facts li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.facts .icon {
    color: var(--ok);
    width: 1.1em;
    height: 1.1em;
}

/* ----- Editor rig (hero mockup) ----- */
.rig-wrap {
    margin-top: clamp(36px, 6vw, 64px);
}

.rig {
    --r-bg: #11151c;
    --r-bar: #181e28;
    --r-line: #283142;
    --r-text: #dbe3ee;
    --r-muted: #8795a9;
    --r-hot: #ff7a45;
    --r-k: #ffa86b;
    --r-s: #8fd6a6;
    --r-c: #6a7a90;
    --r-f: #82c0ff;
    --r-v: #e9d8a6;
    background: var(--r-bg);
    color: var(--r-text);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--r-line);
}

.rig-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    padding: 14px 18px;
    background: var(--r-bar);
    border-bottom: 1px solid var(--r-line);
}

.rig-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
}

.rig-path {
    margin-top: 2px;
    color: var(--r-muted);
    font-size: .875rem;
}

.rig-path code {
    color: var(--r-text);
}

.rig-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rig-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 6px;
    border: 1px solid var(--r-line);
    background: transparent;
    color: var(--r-text);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
}

.rig-btn:hover:not(:disabled) {
    border-color: var(--r-text);
}

.rig-btn:disabled {
    opacity: .45;
    cursor: default;
}

.rig-btn.is-primary {
    background: #3b74d8;
    border-color: #3b74d8;
    color: #fff;
}

.rig-btn.is-primary:disabled {
    background: transparent;
    border-color: var(--r-line);
    color: var(--r-text);
}

.rig-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
}

.rig-tabs {
    display: flex;
    gap: 2px;
    padding: 8px 8px 0;
    background: var(--r-bar);
    overflow-x: auto;
}

.rig-tab {
    display: flex;
    align-items: center;
    background: #202938;
    border: 1px solid var(--r-line);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    color: var(--r-muted);
    flex: none;
}

.rig-tab.is-active {
    background: var(--r-bg);
    color: var(--r-text);
}

.rig-tab-label {
    background: none;
    border: 0;
    padding: 7px 4px 7px 12px;
    color: inherit;
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rig-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--r-hot);
    display: none;
}

.rig-tab.is-dirty .rig-dot {
    display: inline-block;
}

.rig-x {
    width: 20px;
    height: 20px;
    margin: 0 6px 0 2px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.rig-x:hover {
    background: #2f3a4d;
    color: #fff;
}

.rig-code {
    margin: 0;
    padding: 14px 0;
    min-height: 310px;
    max-height: 310px;
    overflow: auto;
    font-family: var(--font-code);
    font-size: .8438rem;
    line-height: 1.65;
    counter-reset: ln;
    outline-offset: -3px;
    cursor: text;
}

.rig-line {
    display: block;
    padding: 0 16px 0 0;
    white-space: pre;
    counter-increment: ln;
}

.rig-line::before {
    content: counter(ln);
    display: inline-block;
    width: 44px;
    margin-inline-end: 14px;
    text-align: right;
    color: #4c5a70;
}

.t-k {
    color: var(--r-k);
}

.t-s {
    color: var(--r-s);
}

.t-c {
    color: var(--r-c);
    font-style: italic;
}

.t-f {
    color: var(--r-f);
}

.t-v {
    color: var(--r-v);
}

.rig-status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 14px;
    background: var(--r-bar);
    border-top: 1px solid var(--r-line);
    color: var(--r-muted);
    font-size: .75rem;
}

.rig-status .grow {
    flex: 1;
}

.pill {
    padding: 1px 9px;
    border-radius: 99px;
    font-weight: 600;
    background: #232d3d;
}

.pill.is-ok {
    background: #173325;
    color: #6fe0a0;
}

.pill.is-warn {
    background: #43321a;
    color: #ffc46b;
}

.rig-side {
    border-inline-start: 1px solid var(--r-line);
    background: #141922;
    display: flex;
    flex-direction: column;
}

.rig-tools {
    display: flex;
    gap: 4px;
    padding: 10px;
    border-bottom: 1px solid var(--r-line);
    background: var(--r-bar);
}

.rig-tool {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--r-line);
    border-radius: 5px;
    color: #7fb0ff;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.rig-tool:hover {
    border-color: #7fb0ff;
}

.rig-tool .icon {
    width: 16px;
    height: 16px;
}

.rig-tool[data-tip]:hover::after,
.rig-tool[data-tip]:focus-visible::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 3;
    padding: 3px 8px;
    border-radius: 4px;
    background: #05070a;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
}

.rig-tree {
    padding: 8px;
    overflow: auto;
    flex: 1;
}

.rig-tree ul ul {
    padding-inline-start: 14px;
}

.rig-folder {
    padding: 4px 6px;
    color: var(--r-muted);
    font-size: .8125rem;
    font-weight: 600;
}

.rig-file {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 5px 6px;
    border: 0;
    border-inline-start: 3px solid transparent;
    border-radius: 3px;
    background: none;
    color: #a9c4ee;
    font-size: .8125rem;
    text-align: start;
    cursor: pointer;
}

.rig-file::before {
    content: "";
    width: 9px;
    height: 11px;
    border-radius: 2px;
    background: var(--ext, #8795a9);
    flex: none;
}

.rig-file:hover {
    background: #1b2230;
}

.rig-file.is-active {
    background: #1d2a40;
    border-inline-start-color: #5f9bff;
    color: #fff;
}

.rig-file[data-ext="php"] {
    --ext: #8f93d6;
}

.rig-file[data-ext="js"] {
    --ext: #e1c542;
}

.rig-file[data-ext="css"] {
    --ext: #4a86f0;
}

.rig-hint {
    margin-top: 14px;
    color: var(--muted);
    font-size: .9375rem;
}

.toast {
    position: absolute;
    right: 16px;
    bottom: 44px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #173325;
    color: #6fe0a0;
    font-size: .8125rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}

.toast.is-on {
    opacity: 1;
    transform: none;
}

.rig-main {
    position: relative;
    min-width: 0;
}

/* ----- Sections ----- */
.sec {
    padding: clamp(64px, 10vw, 112px) 0 0;
    scroll-margin-top: 56px;
}

.sec-head {
    max-width: 720px;
}

.sec h2 {
    font-size: clamp(2rem, 4.8vw, 3.25rem);
    font-weight: 750;
    font-stretch: 82%;
    letter-spacing: -.01em;
}

.sec-head p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 62ch;
}

/* ----- Feature ledger ----- */
.ledger {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.filters {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    background: none;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
}

.chip span {
    color: var(--muted);
    font-weight: 500;
    font-size: .875rem;
}

.chip:hover {
    background: var(--accent-soft);
}

.chip[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--surface);
}

.rows {
    border-top: 1.5px solid var(--ink);
}

.row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.row[hidden] {
    display: none;
}

.row .icon {
    width: 28px;
    height: 28px;
    margin-top: 2px;
    color: var(--accent);
}

.row h3 {
    font-size: 1.3rem;
    font-weight: 700;
    font-stretch: 88%;
}

.row p {
    grid-column: 2;
    color: var(--muted);
    max-width: 62ch;
}

.row .tag {
    display: inline-block;
    margin-inline-start: 8px;
    padding: 1px 9px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 600;
    vertical-align: middle;
    font-stretch: 100%;
}

/* ----- Lab (save demo) ----- */
.lab {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 28px;
    margin-top: 40px;
    align-items: start;
}

.lab-edit {
    background: #11151c;
    border: 1px solid #283142;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    color: #dbe3ee;
}

.lab-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #181e28;
    border-bottom: 1px solid #283142;
}

.lab-bar code {
    margin-inline-end: auto;
    color: #8795a9;
    font-size: .8125rem;
}

.lab textarea {
    display: block;
    width: 100%;
    min-height: 230px;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: #dbe3ee;
    font-family: var(--font-code);
    font-size: .875rem;
    line-height: 1.65;
    resize: vertical;
    tab-size: 4;
}

.lab textarea:focus-visible {
    outline: 3px solid #5f9bff;
    outline-offset: -3px;
}

.lab-result {
    min-height: 96px;
    padding: 14px 16px;
    border-top: 1px solid #283142;
    font-size: .9688rem;
    background: #141922;
}

.lab-result.is-err {
    background: var(--err-soft);
    color: var(--err);
    border-top-color: var(--err);
}

.lab-result.is-ok {
    background: var(--ok-soft);
    color: var(--ok);
    border-top-color: var(--ok);
}

.lab-result strong {
    display: block;
    margin-bottom: 2px;
}

.lab-result code {
    word-break: break-all;
}

.lab-hint {
    color: #8795a9;
}

.pipe {
    counter-reset: step;
    border-inline-start: 2px solid var(--line);
    margin-inline-start: 14px;
}

.pipe li {
    position: relative;
    padding: 0 0 26px 30px;
    counter-increment: step;
}

.pipe li:last-child {
    padding-bottom: 0;
}

.pipe li::before {
    content: counter(step);
    position: absolute;
    left: -15px;
    top: -2px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--line);
    font-weight: 700;
    font-size: .8438rem;
    color: var(--muted);
    transition: all .25s ease;
}

.pipe h3 {
    font-size: 1.15rem;
    font-weight: 700;
    font-stretch: 90%;
}

.pipe p {
    color: var(--muted);
    font-size: .9688rem;
}

.pipe li.is-active::before {
    border-color: var(--spark);
    color: var(--spark);
}

.pipe li.is-done::before {
    border-color: var(--ok);
    background: var(--ok);
    color: #fff;
    content: "\2713";
}

.pipe li.is-fail::before {
    border-color: var(--err);
    background: var(--err);
    color: #fff;
    content: "!";
}

.pipe li.is-skip {
    opacity: .45;
}

.note {
    margin-top: 28px;
    padding: 14px 16px;
    border-inline-start: 4px solid var(--spark);
    background: var(--surface);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--muted);
    font-size: .9688rem;
}

.note strong {
    color: var(--ink);
}

/* ----- Access matrix ----- */
.matrix-wrap {
    margin-top: 36px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.matrix {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: .9375rem;
}

.matrix th,
.matrix td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.matrix thead th {
    font-weight: 600;
    color: var(--muted);
    font-size: .8438rem;
    white-space: nowrap;
    background: var(--bg-soft);
}

.matrix tbody th {
    text-align: start;
    font-weight: 600;
    min-width: 190px;
}

.matrix tr:last-child th,
.matrix tr:last-child td {
    border-bottom: 0;
}

.matrix input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.matrix input:disabled {
    cursor: not-allowed;
}

.matrix .lock {
    display: block;
    margin-top: 2px;
    font-weight: 400;
    font-size: .8125rem;
    color: var(--err);
}

.matrix tr.is-locked {
    background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--err) 7%, transparent) 8px 16px);
}

.matrix-sum {
    margin-top: 16px;
    min-height: 3.2em;
    color: var(--muted);
}

.matrix-sum strong {
    color: var(--ink);
}

/* ----- Compare ----- */
.cmp-wrap {
    margin-top: 36px;
    overflow-x: auto;
}

.cmp {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.cmp th,
.cmp td {
    padding: 14px 16px;
    text-align: start;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.cmp thead th {
    border-bottom: 1.5px solid var(--ink);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-stretch: 88%;
}

.cmp thead th:last-child {
    color: var(--accent);
}

.cmp tbody th {
    font-weight: 600;
    width: 34%;
}

.cmp td {
    color: var(--muted);
}

.cmp td.yes {
    color: var(--ink);
    font-weight: 500;
}

.cmp td.yes::before {
    content: "\2713\00a0";
    color: var(--ok);
    font-weight: 700;
}

.cmp td.no::before {
    content: "\2014\00a0";
    color: var(--muted);
}

/* ----- Install ----- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 40px;
    border-top: 1.5px solid var(--ink);
    counter-reset: s;
}

.steps li {
    padding: 22px 24px 8px 0;
    counter-increment: s;
}

.steps li+li {
    padding-inline-start: 24px;
    border-inline-start: 1px solid var(--line);
}

.steps li::before {
    content: counter(s);
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    font-stretch: 75%;
    color: var(--accent);
    margin-bottom: 10px;
}

.steps h3 {
    font-size: 1.2rem;
    font-weight: 700;
    font-stretch: 90%;
    margin-bottom: 6px;
}

.steps p {
    color: var(--muted);
}

.cli {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 6px 6px 6px 18px;
    border-radius: 10px;
    background: #11151c;
    color: #dbe3ee;
    max-width: 720px;
}

.cli code {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}

.cli code b {
    color: #ffa86b;
    font-weight: 500;
}

.cli button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #36425a;
    border-radius: 7px;
    background: transparent;
    color: #dbe3ee;
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
}

.cli button:hover {
    border-color: #fff;
}

.cli-label {
    margin-top: 28px;
    color: var(--muted);
}

/* ----- FAQ ----- */
.faq {
    margin-top: 36px;
    max-width: 820px;
    border-top: 1.5px solid var(--ink);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 1.25rem;
    font-stretch: 90%;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "";
    width: 12px;
    height: 12px;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
    flex: none;
    margin-inline-end: 4px;
}

.faq details[open] summary::after {
    transform: rotate(-135deg);
}

.faq .ans {
    padding: 0 0 22px;
    max-width: 66ch;
    color: var(--muted);
}

/* ----- More plugins ----- */
.more {
    margin-top: 36px;
    border-top: 1.5px solid var(--ink);
}

.more a {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: padding .2s ease, background .2s ease;
}

.more a:hover {
    background: var(--bg-soft);
    padding-inline: 14px;
}

.more .tile {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
}

.more h3 {
    font-size: 1.25rem;
    font-weight: 700;
    font-stretch: 90%;
}

.more p {
    grid-column: 2;
    color: var(--muted);
    max-width: 64ch;
}

.more .go {
    grid-row: span 2;
    grid-column: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--accent);
}

/* ----- Final CTA, footer ----- */
.final {
    margin-top: clamp(64px, 10vw, 112px);
    padding: clamp(40px, 7vw, 72px) 0;
    background: var(--ink);
    color: var(--bg);
}

.final h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    font-stretch: 78%;
    max-width: 16ch;
}

.final p {
    margin-top: 14px;
    max-width: 54ch;
    color: color-mix(in srgb, var(--bg) 72%, transparent);
}

.final .btn {
    border-color: var(--bg);
    color: var(--bg);
}

.final .btn-primary {
    background: var(--bg);
    color: var(--ink);
}

.foot {
    padding: 32px 0 48px;
    color: var(--muted);
    font-size: .9375rem;
}

.foot-in {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: space-between;
}

.foot ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

/* ----- Reveal (hero rig only; kept to one moment) ----- */
.js .rise {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

.js .rise.is-in {
    opacity: 1;
    transform: none;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .rig-body {
        grid-template-columns: 1fr;
    }

    .rig-side {
        border-inline-start: 0;
        border-top: 1px solid var(--r-line);
        order: 2;
    }

    .rig-tree {
        max-height: 190px;
    }

    .ledger {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .filters {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .chip {
        padding: 8px 12px;
        border-color: var(--line);
        gap: 8px;
    }

    .lab {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .steps li,
    .steps li+li {
        padding: 20px 0 8px;
        border-inline-start: 0;
    }

    .steps li+li {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .menu-btn {
        display: inline-grid;
    }

    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 10px var(--gutter) 18px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 12px 8px;
    }

    .top-actions .btn {
        display: none;
    }

    .brand small {
        display: none;
    }

    .more a {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .more .tile {
        width: 48px;
        height: 48px;
    }

    .more .go {
        grid-column: 2;
        grid-row: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .caret {
        animation: none;
    }

    .js .rise {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn,
    .more a,
    .pipe li::before {
        transition: none;
    }
}