/* ==========================================================================
   Pixel LED Animator 3 — homepage design layer (2026-11-24)
   Scoped to .p3-home so other pages and shared components are untouched.
   ========================================================================== */

.p3-home {
    --p3-bg: #08090c;
    --p3-bg-soft: #0b0d12;
    --p3-panel: #0f1218;
    --p3-panel-2: #12161d;
    --p3-line: rgba(255, 255, 255, 0.08);
    --p3-line-2: rgba(255, 255, 255, 0.16);
    --p3-text: #eef2f6;
    --p3-muted: #97a3b1;
    --p3-dim: #6d7a89;
    --p3-cyan: #22d3ee;
    --p3-cyan-soft: rgba(34, 211, 238, 0.14);
    --p3-blue: #6aa6ff;
    --p3-magenta: #e879f9;
    --p3-shell: 1180px;
    --p3-gutter: clamp(20px, 4vw, 44px);
    --p3-sec: clamp(64px, 7vw, 108px);
    --p3-r: 10px;
    background: var(--p3-bg);
    color: var(--p3-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-align: left;
}

/* tokens are also needed on <body> for the shared header overrides below */
body.is-home {
    --p3-cyan: #22d3ee;
    --p3-muted: #97a3b1;
    --p3-line: rgba(255, 255, 255, 0.08);
    --p3-line-2: rgba(255, 255, 255, 0.16);
}

.p3-home *,
.p3-home *::before,
.p3-home *::after { box-sizing: border-box; }

.p3-home img { display: block; max-width: 100%; height: auto; }
.p3-home a { color: inherit; text-decoration: none; }
.p3-home h1, .p3-home h2, .p3-home h3,
.p3-home p, .p3-home ul, .p3-home ol, .p3-home dl, .p3-home dd, .p3-home figure { margin: 0; }
.p3-home ul, .p3-home ol { padding: 0; list-style: none; }
.p3-home :focus-visible { outline: 2px solid var(--p3-cyan); outline-offset: 3px; border-radius: 2px; }

/* --- shell & rhythm ------------------------------------------------------ */

.p3-shell {
    width: 100%;
    max-width: var(--p3-shell);
    margin-inline: auto;
    padding-inline: var(--p3-gutter);
}

.p3-section { padding-block: var(--p3-sec); border-top: 1px solid var(--p3-line); }

.p3-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--p3-cyan);
}

.p3-h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.45rem);
    line-height: 1.1;
    letter-spacing: -0.028em;
    font-weight: 600;
    color: #fff;
    text-wrap: balance;
}

.p3-h3 {
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    font-weight: 600;
    color: #fff;
}

.p3-lead {
    max-width: 62ch;
    font-size: 1rem;
    line-height: 1.68;
    color: var(--p3-muted);
}

.p3-sechead {
    display: grid;
    gap: 14px;
    max-width: 780px;
    margin-bottom: clamp(32px, 4vw, 52px);
}

.p3-sechead .p3-h2 { max-width: 22ch; }

/* --- buttons ------------------------------------------------------------- */

.p3-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.p3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.p3-btn--primary { background: var(--p3-cyan); color: #05141a; }
.p3-btn--primary:hover { background: #6ee7f5; color: #05141a; transform: translateY(-1px); }
.p3-btn--primary:active { transform: translateY(0); }

.p3-btn--ghost {
    background: transparent;
    border-color: var(--p3-line-2);
    color: var(--p3-text);
}
.p3-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.04); }

.p3-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--p3-cyan);
    border-bottom: 1px solid rgba(34, 211, 238, 0.35);
    padding-bottom: 2px;
}
.p3-link:hover { color: #7deefb; border-bottom-color: currentColor; }

.p3-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--p3-cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
    flex: 0 0 auto;
}

/* --- hero ---------------------------------------------------------------- */

.p3-hero {
    position: relative;
    padding-block: clamp(36px, 4.5vw, 64px) clamp(28px, 3vw, 40px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 38%),
        var(--p3-bg);
}

.p3-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(90deg, var(--p3-line) 0 1px, transparent 1px 128px);
    opacity: 0.5;
    pointer-events: none;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 72%);
}

.p3-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(32px, 4.5vw, 64px);
}

.p3-hero__copy { display: grid; gap: 18px; justify-items: start; }

.p3-release {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px 6px 10px;
    border: 1px solid var(--p3-line-2);
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1.3;
    color: #cfd8e2;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.18s ease, color 0.18s ease;
}
.p3-release:hover { border-color: rgba(34, 211, 238, 0.5); color: #fff; }
.p3-release__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--p3-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
    flex: 0 0 auto;
}

.p3-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--p3-dim);
}

.p3-h1 {
    display: grid;
    gap: 10px;
    color: #fff;
    font-weight: 650;
    letter-spacing: -0.038em;
    line-height: 1.02;
}

.p3-h1__product {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #c7d2dd;
}

.p3-h1__line {
    font-size: clamp(2.35rem, 3.55vw, 3.4rem);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 1.04;
    max-width: 17ch;
    text-wrap: balance;
}

.p3-hero__lead {
    max-width: 44ch;
    font-size: 1.0313rem;
    line-height: 1.68;
    color: var(--p3-muted);
}

.p3-facts {
    padding-top: 6px;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--p3-dim);
}
.p3-facts li { display: inline; }
.p3-facts li + li::before {
    content: "\00b7";
    margin: 0 7px;
    color: #4a5563;
}

/* hero screenshot */

.p3-shot { display: grid; gap: 12px; min-width: 0; }

.p3-shot__frame {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--p3-line-2);
    border-radius: var(--p3-r);
    background: #0a0d12;
    box-shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.9);
    cursor: zoom-in;
    transition: border-color 0.2s ease;
}
.p3-shot__frame:hover { border-color: rgba(255, 255, 255, 0.28); }

.p3-shot__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--p3-line);
    background: #0d1016;
}
.p3-shot__bar i {
    width: 7px; height: 7px; border-radius: 50%;
    background: #2a323c;
}
.p3-shot__bar i:first-child { background: #4b5563; }
.p3-shot__bar b {
    margin-left: 8px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #7b8794;
}

.p3-shot__frame img { width: 100%; height: auto; }

.p3-shot__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(8, 9, 12, 0.86);
    border: 1px solid var(--p3-line-2);
    font-size: 0.72rem;
    font-weight: 500;
    color: #dbe3ec;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.p3-shot__frame:hover .p3-shot__zoom,
.p3-shot__frame:focus-visible .p3-shot__zoom { opacity: 1; transform: translateY(0); }

.p3-shot figcaption {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--p3-dim);
    text-align: left;
}

/* spec strip */

.p3-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(28px, 3.4vw, 44px);
    border-top: 1px solid var(--p3-line);
    border-bottom: 1px solid var(--p3-line);
}
.p3-specs li {
    padding: 16px 18px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--p3-muted);
}
.p3-specs li + li { border-left: 1px solid var(--p3-line); }
.p3-specs li strong {
    display: block;
    color: #e6ecf3;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.p3-promo { padding-block: 26px 8px; }
.p3-promo .xmas-promo { margin: 0; }

/* --- capabilities -------------------------------------------------------- */

.p3-rows { display: grid; gap: clamp(44px, 5vw, 72px); }

.p3-row {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
}

.p3-row--flip { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }

.p3-row__copy { display: grid; gap: 14px; align-content: start; }
.p3-row__copy > p { max-width: 44ch; color: var(--p3-muted); line-height: 1.68; }

.p3-fig { display: grid; gap: 10px; min-width: 0; }

.p3-fig > button,
.p3-fig > .p3-fig__plain {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--p3-line);
    border-radius: 8px;
    overflow: hidden;
    background: #0a0d12;
    cursor: zoom-in;
    transition: border-color 0.2s ease;
}
.p3-fig > button:hover { border-color: rgba(255, 255, 255, 0.26); }
.p3-fig img { width: 100%; height: auto; }

.p3-fig figcaption {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--p3-dim);
    max-width: 62ch;
    text-align: left;
}

/* cropped detail of the editor timeline */
.p3-fig--crop > button { aspect-ratio: 16 / 7; background: #0a0d12; }
.p3-fig--crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 92%;
}

.p3-mini { display: grid; }
.p3-mini > div {
    padding: 13px 0;
    border-top: 1px solid var(--p3-line);
}
.p3-mini > div:last-child { border-bottom: 1px solid var(--p3-line); }
.p3-mini dt {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e8eef5;
    margin-bottom: 3px;
}
.p3-mini dd {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--p3-muted);
}

/* --- demo ---------------------------------------------------------------- */

.p3-demo { background: var(--p3-bg-soft); }

.p3-demo__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 28px;
    margin-bottom: clamp(22px, 3vw, 34px);
}
.p3-demo__head .p3-lead { max-width: 46ch; font-size: 0.9rem; }

.p3-demo__frame {
    position: relative;
    border: 1px solid var(--p3-line-2);
    border-radius: var(--p3-r);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
}
.p3-demo__frame video { width: 100%; height: 100%; object-fit: cover; }

.p3-demo__play {
    position: absolute;
    inset: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(6, 8, 11, 0.62);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.p3-demo__play:hover { background: rgba(6, 8, 11, 0.85); transform: scale(1.04); }
.p3-demo__play[hidden] { display: none; }
.p3-demo__play .v3-icon { width: 22px; height: 22px; }

.p3-demo__badge {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 5px 9px;
    border-radius: 5px;
    background: rgba(6, 8, 11, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #dfe7ef;
}

/* --- output / streaming -------------------------------------------------- */

.p3-output__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
}

.p3-output__copy { display: grid; gap: 16px; justify-items: start; }
.p3-output__copy .p3-lead { max-width: 46ch; }

.p3-output__stream {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--p3-line);
    border-radius: 6px;
    background: var(--p3-panel);
    font-size: 0.8125rem;
    color: #cfd8e2;
}

.p3-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.p3-chips li {
    padding: 5px 9px;
    border: 1px solid var(--p3-line);
    border-radius: 4px;
    font-family: ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: #aab6c2;
    background: rgba(255, 255, 255, 0.02);
}

/* --- effects gallery ----------------------------------------------------- */

.p3-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
}

.p3-gallery__item {
    position: relative;
    display: block;
    padding: 0;
    min-height: clamp(150px, 19vw, 260px);
    overflow: hidden;
    border: 1px solid var(--p3-line);
    border-radius: 8px;
    background: #0a0d12;
    cursor: zoom-in;
    grid-column: span 4;
    transition: border-color 0.2s ease;
}
.p3-gallery__item:hover { border-color: rgba(255, 255, 255, 0.28); }

.p3-gallery__item:nth-child(1) { grid-column: span 7; }
.p3-gallery__item:nth-child(2) { grid-column: span 5; }
.p3-gallery__item:nth-child(3) { grid-column: span 5; }
.p3-gallery__item:nth-child(4) { grid-column: span 7; }
.p3-gallery__item:nth-child(5) { grid-column: span 6; }
.p3-gallery__item:nth-child(6) { grid-column: span 6; }

.p3-gallery__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.p3-gallery__item:hover img { transform: scale(1.035); }

.p3-gallery__meta {
    position: absolute;
    inset: auto 0 0 0;
    display: grid;
    gap: 2px;
    padding: 28px 14px 12px;
    background: linear-gradient(180deg, rgba(8, 9, 12, 0) 0%, rgba(8, 9, 12, 0.82) 62%, rgba(8, 9, 12, 0.94) 100%);
    text-align: left;
}
.p3-gallery__meta strong { font-size: 0.875rem; font-weight: 600; color: #fff; }
.p3-gallery__meta small { font-size: 0.75rem; line-height: 1.45; color: #b3bfcb; }

/* --- workflow ------------------------------------------------------------ */

.p3-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
}
.p3-steps li { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--p3-line-2); }
.p3-steps__n {
    font-family: ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--p3-cyan);
}
.p3-steps h3 { font-size: 1.0625rem; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.p3-steps p { font-size: 0.9rem; line-height: 1.65; color: var(--p3-muted); max-width: 34ch; }

/* --- compatibility ------------------------------------------------------- */

.p3-tools__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}
.p3-tools__grid .p3-h2 { margin: 12px 0 14px; max-width: 18ch; }

.p3-tools__group + .p3-tools__group { margin-top: 30px; }
.p3-tools__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--p3-dim);
    margin-bottom: 10px;
}

.p3-tools__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.p3-tools__items a,
.p3-tools__items li {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--p3-line);
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #cfd8e2;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.18s ease, color 0.18s ease;
}
.p3-tools__items a:hover { border-color: rgba(34, 211, 238, 0.5); color: #fff; }
.p3-tools__items--mono li {
    font-family: ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.75rem;
    color: #a9b6c3;
}

/* --- pricing ------------------------------------------------------------- */

.p3-plans {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.p3-plan {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: clamp(22px, 2.6vw, 32px);
    border: 1px solid var(--p3-line);
    border-radius: var(--p3-r);
    background: var(--p3-panel);
}

.p3-plan--current { border-color: var(--p3-line-2); background: linear-gradient(180deg, #12171f, #0e1218); }

.p3-plan__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
.p3-plan h3 { font-size: 1.25rem; font-weight: 600; color: #fff; letter-spacing: -0.015em; }
.p3-plan__flag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--p3-cyan-soft);
    color: #a5eff9;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.p3-plan__flag--muted { background: rgba(255, 255, 255, 0.06); color: #a6b2bf; }
.p3-plan__desc { margin-top: 6px; font-size: 0.875rem; line-height: 1.6; color: var(--p3-muted); max-width: 40ch; }

.p3-plan__price { text-align: left; }
.p3-plan__price strong {
    display: block;
    font-size: clamp(1.9rem, 2.6vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.1;
}
.p3-plan__price span { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--p3-dim); }

.p3-plan__list {
    display: grid;
    gap: 9px;
    padding-top: 18px;
    border-top: 1px solid var(--p3-line);
}
.p3-plan__list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #c8d2dd;
}
.p3-plan__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 1px;
    background: var(--p3-cyan);
}

.p3-plan__actions { display: grid; gap: 12px; justify-items: start; }
.p3-plan__actions .p3-btn { width: 100%; }
.p3-plan__link { font-size: 0.85rem; color: var(--p3-cyan); border-bottom: 1px solid rgba(34, 211, 238, 0.3); }
.p3-plan__link:hover { color: #7deefb; }
.p3-plan__note { font-size: 0.78rem; line-height: 1.55; color: var(--p3-dim); }
.p3-plan__note a { color: #b9c5d1; border-bottom: 1px solid var(--p3-line-2); }
.p3-plan__note a:hover { color: #fff; }

/* also-available strip (previous sales-steps copy) */

.p3-also {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--p3-line);
    font-size: 0.8125rem;
    color: var(--p3-dim);
}
.p3-also p { display: flex; flex-wrap: wrap; gap: 6px; }
.p3-also a { color: #b9c5d1; border-bottom: 1px solid var(--p3-line-2); }
.p3-also a:hover { color: #fff; }

/* --- tutorials ----------------------------------------------------------- */

.p3-guides__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}
.p3-guides__head { display: grid; gap: 14px; justify-items: start; position: sticky; top: 96px; }

.p3-guides__list { display: grid; }
.p3-guide { border-top: 1px solid var(--p3-line); }
.p3-guide:last-child { border-bottom: 1px solid var(--p3-line); }
.p3-guide a {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: baseline;
    gap: 14px;
    padding: 18px 0;
    transition: color 0.18s ease;
}
.p3-guide a:hover { color: #fff; }
.p3-guide__n {
    font-family: ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.72rem;
    color: var(--p3-dim);
}
.p3-guide strong { display: block; font-size: 1rem; font-weight: 600; color: #e9eff6; letter-spacing: -0.01em; }
.p3-guide small { display: block; margin-top: 4px; font-size: 0.85rem; line-height: 1.55; color: var(--p3-muted); }
.p3-guide__arrow { color: var(--p3-dim); font-size: 0.9rem; }
.p3-guide a:hover .p3-guide__arrow { color: var(--p3-cyan); }

/* --- FAQ ----------------------------------------------------------------- */

.p3-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}
.p3-faq__grid > header { position: sticky; top: 96px; display: grid; gap: 12px; }

.p3-faq__list { border-top: 1px solid var(--p3-line); }
.p3-faq details { border-bottom: 1px solid var(--p3-line); }
.p3-faq summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0;
    font-size: 0.9688rem;
    font-weight: 500;
    color: #e6ecf3;
    cursor: pointer;
    list-style: none;
}
.p3-faq summary::-webkit-details-marker { display: none; }
.p3-faq summary::after {
    content: "+";
    font-family: ui-monospace, Menlo, Monaco, monospace;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--p3-dim);
    transition: transform 0.2s ease, color 0.2s ease;
    flex: 0 0 auto;
}
.p3-faq details[open] summary::after { content: "\2212"; color: var(--p3-cyan); }
.p3-faq summary:hover { color: #fff; }
.p3-faq details p {
    padding: 0 40px 18px 0;
    font-size: 0.9rem;
    line-height: 1.68;
    color: var(--p3-muted);
    max-width: 66ch;
}

/* --- final CTA ----------------------------------------------------------- */

.p3-final {
    padding-block: clamp(56px, 6vw, 88px);
    border-top: 1px solid var(--p3-line);
    background:
        radial-gradient(600px 200px at 15% 0%, rgba(34, 211, 238, 0.07), transparent 70%),
        var(--p3-bg-soft);
}
.p3-final__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
}
.p3-final .p3-h2 { margin-top: 10px; max-width: 27ch; }
.p3-final__offer { margin-top: 10px; font-size: 0.875rem; color: var(--p3-muted); }
.p3-final__actions { display: grid; gap: 10px; justify-items: start; }
.p3-final__actions .p3-btn { min-height: 54px; padding-inline: 28px; font-size: 1rem; }
.p3-final__note { font-size: 0.75rem; color: var(--p3-dim); }

/* --- keyword band + lightbox -------------------------------------------- */

.p3-keywords { padding-block: 26px; border-top: 1px solid var(--p3-line); }
.p3-keywords .v3-actions { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.p3-keywords .v3-tools-chip {
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.8125rem;
    color: var(--p3-dim);
    text-decoration: none;
}
.p3-keywords .v3-tools-chip:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.p3-home .v3-lightbox { border: 1px solid var(--p3-line-2); border-radius: 10px; }

/* --- shared header on the homepage -------------------------------------- */

body.is-home #site-header {
    background: rgba(8, 9, 12, 0.82);
    border-bottom: 1px solid var(--p3-line);
    box-shadow: none;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}
body.is-home #site-header .hdr-nav { padding-block: 10px; }
body.is-home #site-header .hdr-brand { color: #eef2f6; font-size: 1.15rem; letter-spacing: -0.01em; }
body.is-home #site-header .hdr-desktop-links a {
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--p3-muted);
}
body.is-home #site-header .hdr-desktop-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
body.is-home #site-header .hdr-buy {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 7px;
    background: var(--p3-cyan);
    color: #05141a;
    box-shadow: none;
    font-size: 0.8125rem;
    font-weight: 700;
}
body.is-home #site-header .hdr-buy:hover { background: #6ee7f5; color: #05141a; transform: none; box-shadow: none; }
body.is-home #site-header .hdr-lang-btn { padding: 6px 10px; font-size: 0.78rem; color: var(--p3-muted); border-color: var(--p3-line-2); }
body.is-home #site-header .hdr-lang-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
body.is-home #site-header .hdr-lang-drop { background: #10141a; border-color: var(--p3-line-2); }
body.is-home #site-header .hdr-lang-drop a { color: var(--p3-muted); }
body.is-home #site-header .hdr-lang-drop a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1080px) {
    .p3-hero__grid,
    .p3-output__grid,
    .p3-tools__grid,
    .p3-guides__grid,
    .p3-faq__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .p3-hero__grid { gap: 30px; }
    .p3-h1__line { max-width: 18ch; }
    .p3-shot { order: 2; }
    .p3-plans { grid-template-columns: minmax(0, 1fr); }
    .p3-guides__head,
    .p3-faq__grid > header { position: static; }
    .p3-row,
    .p3-row--flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .p3-row--flip .p3-fig { order: -1; }
}

@media (max-width: 820px) {
    .p3-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p3-specs li:nth-child(3) { border-left: 0; }
    .p3-specs li:nth-child(n + 3) { border-top: 1px solid var(--p3-line); }
    .p3-gallery__item,
    .p3-gallery__item:nth-child(n) { grid-column: span 6; }
    .p3-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .p3-steps li { padding-top: 14px; }
    .p3-tools__items { gap: 6px; }
}

@media (max-width: 620px) {
    .p3-home { --p3-sec: 56px; }
    .p3-h1__line { font-size: clamp(2.05rem, 9vw, 2.6rem); }
    .p3-hero__lead { font-size: 0.9688rem; }
    .p3-actions { width: 100%; }
    .p3-actions .p3-btn { flex: 1 1 100%; }
    .p3-shot__zoom { display: none; }
    .p3-specs { grid-template-columns: minmax(0, 1fr); }
    .p3-specs li + li,
    .p3-specs li:nth-child(3) { border-left: 0; border-top: 1px solid var(--p3-line); }
    .p3-gallery__item,
    .p3-gallery__item:nth-child(n) { grid-column: span 12; min-height: 210px; }
    .p3-plan__price { text-align: left; }
    .p3-plan__top { flex-direction: column; }
    .p3-guide a { grid-template-columns: 28px minmax(0, 1fr) 14px; gap: 10px; }
    .p3-demo__play { width: 56px; height: 56px; }
    .p3-final__actions { width: 100%; }
    .p3-final__actions .p3-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .p3-home *,
    .p3-home *::before,
    .p3-home *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .p3-gallery__item:hover img { transform: none; }
}
