/* ==========================================================================
   Pixel LED Animator 3 — homepage design layer (2026-11-25)
   Scoped to .p3-home and body.is-home. Other pages are untouched.
   Direction: studio instrument. Warm ink, paper type, paper accent, square
   geometry, mono metadata. No gradients, glass, glows, pills or drop shadows.
   ========================================================================== */

.p3-home {
    --p3-ink: #0b0b0c;
    --p3-ink-2: #111110;
    --p3-panel: #161513;
    --p3-line: rgba(245, 242, 234, 0.13);
    --p3-line-strong: rgba(245, 242, 234, 0.3);
    --p3-paper: #f5f2ea;
    --p3-muted: #b0aca2;
    --p3-dim: #8b877d;
    --p3-signal: #f5f2ea;
    --p3-signal-hover: #ffffff;
    --p3-signal-ink: #0b0b0c;
    --p3-buy: #22c55e;
    --p3-buy-hover: #4ade80;
    --p3-buy-ink: #052e14;
    --p3-live: #7de2a0;
    --p3-shell: 1240px;
    --p3-gutter: clamp(20px, 4vw, 48px);
    --p3-sec: clamp(60px, 6.5vw, 100px);
    --p3-r: 2px;
    background: var(--p3-ink);
    color: var(--p3-paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-align: left;
}

body.is-home {
    --p3-ink: #0b0b0c;
    --p3-paper: #f5f2ea;
    --p3-muted: #b0aca2;
    --p3-dim: #8b877d;
    --p3-line: rgba(245, 242, 234, 0.13);
    --p3-line-strong: rgba(245, 242, 234, 0.3);
    --p3-signal: #f5f2ea;
    --p3-signal-hover: #ffffff;
    --p3-signal-ink: #0b0b0c;
    --p3-buy: #22c55e;
    --p3-buy-hover: #4ade80;
    --p3-buy-ink: #052e14;
    --p3-r: 2px;
    --p3-gutter: clamp(20px, 4vw, 48px);
    background: #0b0b0c;
}

.p3-home *,
.p3-home *::before,
.p3-home *::after { box-sizing: border-box; }

.p3-home img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.p3-home a:not(.p3-btn) { color: inherit; text-decoration: none; }
.p3-home a.p3-btn--buy,
.p3-home a.p3-btn--buy:visited { color: var(--p3-buy-ink); }
.p3-home a.p3-btn--ghost,
.p3-home a.p3-btn--ghost:visited { color: var(--p3-paper); }
.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-signal);
    outline-offset: 3px;
    border-radius: 0;
}

/* --- 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);
}

/* --- type ---------------------------------------------------------------- */

.p3-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--p3-signal);
}
.p3-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    flex: 0 0 auto;
}

.p3-h2 {
    font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.9rem, 3.1vw, 2.7rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 500;
    color: var(--p3-paper);
    text-wrap: balance;
}

.p3-h3 {
    font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.2rem, 1.7vw, 1.45rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 500;
    color: var(--p3-paper);
}

.p3-lead {
    max-width: 58ch;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--p3-muted);
}

.p3-sechead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    column-gap: clamp(32px, 6vw, 96px);
    row-gap: 16px;
    align-items: end;
    margin-bottom: clamp(36px, 4.5vw, 58px);
}
.p3-sechead .p3-eyebrow { grid-column: 1 / -1; }
.p3-sechead .p3-h2 { grid-column: 1; max-width: 19ch; }
.p3-sechead .p3-lead { grid-column: 2; max-width: 46ch; padding-bottom: 3px; }

/* --- buttons ------------------------------------------------------------- */

.p3-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.p3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--p3-r);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.p3-btn--buy {
    min-height: 48px;
    border: 1px solid var(--p3-buy);
    border-radius: var(--p3-r);
    background: var(--p3-buy);
    background-image: none;
    color: var(--p3-buy-ink);
    font-weight: 650;
    text-shadow: none;
    box-shadow: none;
    transform: none;
}
.p3-btn--buy:hover {
    background: var(--p3-buy-hover);
    background-image: none;
    border-color: var(--p3-buy-hover);
    color: var(--p3-buy-ink);
    box-shadow: none;
    transform: none;
}
.p3-btn--buy:active {
    transform: translateY(1px);
    box-shadow: none;
}

.p3-home .p3-btn--buy:focus-visible,
body.is-home #site-header .hdr-buy:focus-visible {
    outline-color: var(--p3-paper);
}

.p3-btn--buy .v3-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    stroke-width: 2;
    filter: none;
}

.p3-btn--ghost {
    background: transparent;
    border-color: var(--p3-line-strong);
    color: var(--p3-paper);
}
.p3-btn--ghost:hover {
    border-color: var(--p3-paper);
    background: transparent;
    color: var(--p3-paper);
}

.p3-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--p3-line-strong);
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--p3-paper);
}
.p3-link:hover { color: var(--p3-signal); border-bottom-color: var(--p3-signal); }

.p3-dot {
    width: 6px;
    height: 6px;
    border-radius: 0;
    background: var(--p3-live);
    box-shadow: none;
    flex: 0 0 auto;
}

/* --- shared header on the homepage -------------------------------------- */

body.is-home #site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #0b0b0c !important;
    border-bottom: 1px solid var(--p3-line);
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.is-home #site-header .hdr-nav {
    max-width: 1240px;
    padding: 13px var(--p3-gutter);
}
body.is-home #site-header .hdr-brand {
    font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--p3-paper);
    gap: 9px;
}
body.is-home #site-header .hdr-brand img { height: 28px; max-height: 28px; }
body.is-home #site-header .hdr-desktop-links { gap: 2px; }
body.is-home #site-header .hdr-desktop-links a {
    padding: 8px 11px;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--p3-muted);
    background: transparent;
}
body.is-home #site-header .hdr-desktop-links a:hover {
    color: var(--p3-paper);
    border-bottom-color: var(--p3-signal);
    background: transparent;
}
body.is-home #site-header .hdr-buy {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--p3-buy);
    border-radius: 2px !important;
    background: var(--p3-buy);
    background-image: none;
    color: var(--p3-buy-ink);
    font-size: 0.78rem;
    font-weight: 650;
    box-shadow: none;
    text-shadow: none;
}
body.is-home #site-header .hdr-buy:hover {
    background: var(--p3-buy-hover);
    background-image: none;
    border-color: var(--p3-buy-hover);
    color: var(--p3-buy-ink);
    box-shadow: none;
    transform: none;
}
body.is-home #site-header .hdr-buy:active { transform: translateY(1px); box-shadow: none; }
body.is-home #site-header .hdr-buy .v3-icon { filter: none; }
body.is-home #site-header .hdr-lang-btn {
    border-radius: var(--p3-r);
    border-color: var(--p3-line-strong);
    color: var(--p3-muted);
    font-size: 0.75rem;
}
body.is-home #site-header .hdr-lang-btn:hover { color: var(--p3-paper); border-color: var(--p3-paper); }
body.is-home #site-header .hdr-lang-drop {
    background: #12110f;
    border: 1px solid var(--p3-line-strong);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.is-home #site-header .hdr-lang-drop a { color: var(--p3-muted); }
body.is-home #site-header .hdr-lang-drop a:hover { color: var(--p3-paper); background: rgba(245, 242, 234, 0.05); }
body.is-home #mobile-menu {
    background: #0b0b0c;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.is-home #mobile-menu a { color: var(--p3-paper); border-radius: 0; }
body.is-home #mobile-menu a:hover { color: var(--p3-signal); background: transparent; }
body.is-home #mobile-menu a.mobile-buy {
    border: 1px solid var(--p3-buy);
    border-radius: 2px !important;
    background: var(--p3-buy);
    background-image: none;
    color: var(--p3-buy-ink);
    box-shadow: none;
}
body.is-home #mobile-menu a.mobile-buy:hover {
    background: var(--p3-buy-hover);
    background-image: none;
    color: var(--p3-buy-ink);
    box-shadow: none;
    transform: none;
}
body.is-home #mobile-menu .mobile-lang-grid a svg,
body.is-home #site-header .hdr-lang-drop a svg { color: var(--p3-paper) !important; }
body.is-home #top-link {
    background: var(--p3-ink) !important;
    border: 1px solid var(--p3-line-strong) !important;
    border-radius: 2px !important;
    color: var(--p3-paper) !important;
}
body.is-home #top-link:hover {
    background: #1c1b18 !important;
    border-color: var(--p3-paper) !important;
}

/* --- hero ---------------------------------------------------------------- */

.p3-hero {
    position: relative;
    padding-block: clamp(30px, 4vw, 54px) clamp(36px, 4.5vw, 60px);
    background: var(--p3-ink);
}
.p3-hero::before { content: none; }

.p3-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.p3-hero__copy {
    display: grid;
    justify-items: start;
    gap: 20px;
}

.p3-release-row {
    display: grid;
    gap: 7px;
    width: 100%;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--p3-line);
}
.p3-release {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--p3-paper);
    transition: color 0.15s ease;
}
.p3-release:hover { color: var(--p3-signal); }
.p3-release__dot {
    width: 6px;
    height: 6px;
    border-radius: 0;
    background: var(--p3-signal);
    box-shadow: none;
    flex: 0 0 auto;
}
.p3-release__detail {
    max-width: 48ch;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--p3-dim);
}

.p3-h1 {
    color: var(--p3-paper);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.02;
}
.p3-h1__line {
    max-width: 15ch;
    font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2.35rem, 3.55vw, 3.25rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.02;
    color: var(--p3-paper);
    text-wrap: balance;
}

.p3-hero__lead {
    max-width: 46ch;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--p3-muted);
}

.p3-facts {
    display: grid;
    gap: 6px;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid var(--p3-line);
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.66rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
    color: var(--p3-dim);
}
.p3-facts li { display: block; }
.p3-facts li + li::before { content: none; }

/* hero screenshot: a flat instrument panel, not a fake browser window */

.p3-shot {
    display: grid;
    gap: 0;
    min-width: 0;
    border: 1px solid var(--p3-line-strong);
    background: #000;
}

.p3-shot__frame {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #000;
    box-shadow: none;
    cursor: zoom-in;
}
.p3-shot__frame:hover { border-color: transparent; }
.p3-shot__frame img { width: 100%; height: auto; }

.p3-shot__zoom {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 8px 11px;
    border-top: 1px solid var(--p3-line-strong);
    border-left: 1px solid var(--p3-line-strong);
    border-radius: 0;
    background: rgba(11, 11, 12, 0.92);
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--p3-paper);
    opacity: 0;
    transform: none;
    transition: opacity 0.15s ease;
}
.p3-shot__frame:hover .p3-shot__zoom,
.p3-shot__frame:focus-visible .p3-shot__zoom { opacity: 1; transform: none; }

/* spec strip */

.p3-home .p3-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(36px, 4vw, 56px);
    border-top: 1px solid var(--p3-line);
    border-bottom: 1px solid var(--p3-line);
}
.p3-specs li {
    display: grid;
    gap: 6px;
    padding: 18px 22px 20px;
    border-left: 1px solid var(--p3-line);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--p3-paper);
}
.p3-specs li:first-child { padding-left: 0; border-left: 0; }
.p3-specs li strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--p3-paper);
}

/* --- capabilities -------------------------------------------------------- */

.p3-rows { display: grid; gap: 0; }

.p3-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    padding-block: clamp(34px, 4vw, 58px);
    border-top: 1px solid var(--p3-line);
}
.p3-row:first-child { border-top: 1px solid var(--p3-line-strong); }
.p3-row--flip { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }

.p3-row__copy { display: grid; gap: 14px; align-content: start; }
.p3-row__copy > p {
    max-width: 44ch;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--p3-muted);
}

.p3-fig { display: grid; gap: 9px; min-width: 0; }
.p3-fig > button,
.p3-fig > .p3-fig__plain {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--p3-line);
    border-radius: 0;
    background: #000;
    cursor: zoom-in;
    transition: border-color 0.15s ease;
}
.p3-fig > button:hover { border-color: var(--p3-line-strong); }
.p3-fig img { width: 100%; height: auto; }
.p3-fig figcaption {
    max-width: 60ch;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.62rem;
    line-height: 1.55;
    letter-spacing: 0.03em;
    color: var(--p3-dim) !important;
    text-align: left !important;
}

.p3-mini { display: grid; }
.p3-mini > div {
    padding: 12px 0;
    border-top: 1px solid var(--p3-line);
}
.p3-mini > div:last-child { border-bottom: 1px solid var(--p3-line); }
.p3-mini dt {
    margin-bottom: 3px;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--p3-signal);
}
.p3-mini dd {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--p3-muted);
}

/* --- demo ---------------------------------------------------------------- */

.p3-demo { background: var(--p3-ink-2); }

.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: 48ch;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--p3-dim);
}

.p3-demo__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--p3-line-strong);
    border-radius: 0;
    background: #000;
}
.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: 64px;
    height: 64px;
    border: 1px solid var(--p3-signal);
    border-radius: 0;
    background: var(--p3-signal);
    color: var(--p3-signal-ink);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.p3-demo__play:hover {
    background: var(--p3-signal-hover);
    border-color: var(--p3-signal-hover);
    transform: none;
}
.p3-demo__play[hidden] { display: none; }
.p3-demo__play .v3-icon { width: 21px; height: 21px; }

.p3-demo__badge {
    position: absolute;
    left: 0;
    top: 0;
    padding: 7px 10px;
    border-right: 1px solid var(--p3-line-strong);
    border-bottom: 1px solid var(--p3-line-strong);
    border-radius: 0;
    background: #0b0b0c;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--p3-paper);
}

/* --- output / streaming -------------------------------------------------- */

.p3-output__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
}
.p3-output__copy { display: grid; gap: 18px; justify-items: start; }
.p3-output__copy .p3-lead { max-width: 46ch; }

.p3-output__stream {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 2px solid var(--p3-live);
    border-radius: 0;
    background: none;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--p3-paper);
}

.p3-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin-top: 2px;
}
.p3-chips li {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    color: var(--p3-muted);
}
.p3-chips li + li::before {
    content: "/";
    margin: 0 9px;
    color: var(--p3-dim);
}

/* --- effects gallery ----------------------------------------------------- */

.p3-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 30px 14px;
}

.p3-gallery__item {
    position: relative;
    display: grid;
    grid-template-rows: auto auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    cursor: zoom-in;
    grid-column: span 4;
    text-align: left;
    transition: none;
}
.p3-gallery__item:hover { border-color: transparent; }

.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: static;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--p3-line);
    transition: border-color 0.15s ease, opacity 0.15s ease;
}
.p3-gallery__item:hover img {
    border-color: var(--p3-line-strong);
    transform: none;
    opacity: 1;
}
.p3-gallery__item:focus-visible img { border-color: var(--p3-signal); }

.p3-gallery__meta {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 0 0;
    background: none;
    text-align: left;
}
.p3-gallery__meta strong {
    font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--p3-paper);
}
.p3-gallery__meta small {
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.61rem;
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: var(--p3-dim);
}

/* --- workflow ------------------------------------------------------------ */

.p3-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 3vw, 48px);
}
.p3-steps li {
    display: grid;
    gap: 11px;
    padding-top: 20px;
    border-top: 1px solid var(--p3-line-strong);
}
.p3-steps__n {
    font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--p3-signal);
}
.p3-steps h3 {
    font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--p3-paper);
}
.p3-steps p {
    max-width: 34ch;
    font-size: 0.875rem;
    line-height: 1.68;
    color: var(--p3-muted);
}

/* --- compatibility ------------------------------------------------------- */

.p3-tools__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(32px, 5vw, 80px);
}
.p3-tools__grid .p3-h2 { margin: 14px 0 14px; max-width: 17ch; }
.p3-tools__group + .p3-tools__group { margin-top: 30px; }
.p3-tools__label {
    margin-bottom: 10px;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--p3-dim);
}
.p3-tools__items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 0;
}
.p3-tools__items a,
.p3-tools__items li {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--p3-paper);
}
.p3-tools__items > * + *::before {
    content: "/";
    margin: 0 9px;
    color: var(--p3-dim);
}
.p3-tools__items a:hover { color: var(--p3-signal); border: 0; }
.p3-tools__items--mono li {
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--p3-muted);
}

/* --- pricing ------------------------------------------------------------- */

.p3-plans {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--p3-line-strong);
}

.p3-plan {
    display: grid;
    align-content: start;
    gap: 20px;
    padding: 32px 36px 36px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.p3-plan--current {
    position: relative;
    margin-top: -1px;
    padding-top: 30px;
    border-top: 3px solid var(--p3-signal);
    background: none;
}
.p3-plan--legacy {
    padding: 32px 0 36px 36px;
    border-left: 1px solid var(--p3-line);
}

.p3-plan__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
}
.p3-plan h3 {
    font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--p3-paper);
}
.p3-plan__flag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    padding: 0;
    border-radius: 0;
    background: none;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--p3-signal);
}
.p3-plan__flag::before {
    content: "";
    width: 5px;
    height: 5px;
    background: currentColor;
    flex: 0 0 auto;
}
.p3-plan__flag--muted { background: none; color: var(--p3-dim); }
.p3-plan__desc {
    margin-top: 6px;
    max-width: 40ch;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--p3-muted);
}

.p3-plan__price { text-align: left; }
.p3-plan__price strong {
    display: block;
    font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(2rem, 2.8vw, 2.6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--p3-paper);
}
.p3-plan__price span {
    display: block;
    margin-top: 6px;
    max-width: 26ch;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.6rem;
    line-height: 1.5;
    color: var(--p3-dim);
}

.p3-plan__list {
    display: grid;
    gap: 0;
    padding-top: 0;
    border-top: 1px solid var(--p3-line);
}
.p3-plan__list li {
    position: relative;
    padding: 10px 0 10px 18px;
    border-bottom: 1px solid var(--p3-line);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--p3-muted);
}
.p3-plan__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 6px;
    height: 1px;
    background: var(--p3-signal);
}

.p3-plan__actions { display: grid; gap: 12px; justify-items: start; }
.p3-plan__actions .p3-btn { width: 100%; }
.p3-plan__link {
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--p3-muted);
    border-bottom: 1px solid var(--p3-line-strong);
}
.p3-plan__link:hover { color: var(--p3-paper); border-bottom-color: var(--p3-paper); }
.p3-plan__note {
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.6rem;
    line-height: 1.6;
    color: var(--p3-dim);
}
.p3-plan__note a { color: var(--p3-muted); border-bottom: 1px solid var(--p3-line-strong); }
.p3-plan__note a:hover { color: var(--p3-paper); }

.p3-home .p3-plan--legacy .p3-btn--buy,
.p3-home .p3-plan--legacy .p3-btn--buy:visited {
    border-color: var(--p3-line-strong);
    background: transparent;
    color: var(--p3-paper);
}
.p3-home .p3-plan--legacy .p3-btn--buy:hover {
    border-color: var(--p3-paper);
    background: transparent;
    color: var(--p3-paper);
}

@media (min-width: 1081px) {
    .p3-plan--current {
        grid-template-columns: 200px minmax(0, 1fr);
        column-gap: 28px;
    }
    .p3-plan--current .p3-plan__media {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        margin: 0;
    }
    .p3-plan--current .p3-plan__top {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }
    .p3-plan--current .p3-plan__list,
    .p3-plan--current .p3-plan__actions,
    .p3-plan--current .p3-plan__note { grid-column: 1 / -1; }

    .p3-plan--legacy {
        grid-template-columns: 120px minmax(0, 1fr);
        column-gap: 22px;
    }
    .p3-plan--legacy .p3-plan__media {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 120px;
        align-self: start;
    }
    .p3-plan--legacy > div:not(.p3-plan__actions) {
        grid-column: 2;
        grid-row: 1;
    }
    .p3-plan--legacy .p3-plan__price {
        grid-column: 2;
        grid-row: 2;
    }
    .p3-plan--legacy .p3-plan__list,
    .p3-plan--legacy .p3-plan__actions,
    .p3-plan--legacy .p3-plan__note { grid-column: 1 / -1; }
}

.p3-plan__media {
    width: min(100%, 210px);
    margin: 0 0 2px;
    overflow: hidden;
    border: 1px solid var(--p3-line);
    border-radius: 0;
    background: #f5f2ea;
}
.p3-plan__media img { display: block; width: 100%; height: auto; margin: 0 !important; }
.p3-plan__media--box { background: #f5f2ea; }
.p3-plan__media-visual {
    position: relative;
    aspect-ratio: 1 / 1;
}
.p3-plan__media--box .p3-plan__media-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: contain;
}
.p3-plan__media-cap {
    padding: 7px 9px;
    border-top: 1px solid #d5d0c4;
    background: #f5f2ea;
    color: #4a463d;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.62rem !important;
    line-height: 1.45;
}
.p3-plan__media--box .p3-plan__media-cap {
    border-top-color: #d5d0c4;
    background: #f5f2ea;
    color: #4a463d !important;
}

/* also-available strip */

.p3-also {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--p3-line);
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.62rem;
    line-height: 1.7;
    color: var(--p3-dim);
}
.p3-also p { display: flex; flex-wrap: wrap; gap: 6px; }
.p3-also a { color: var(--p3-muted); border-bottom: 1px solid var(--p3-line-strong); }
.p3-also a:hover { color: var(--p3-paper); }

/* --- tutorials ----------------------------------------------------------- */

.p3-guides__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
}
.p3-guides__head {
    position: sticky;
    top: 96px;
    display: grid;
    justify-items: start;
    gap: 14px;
}

.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: 32px minmax(0, 1fr) 18px;
    align-items: baseline;
    gap: 14px;
    padding: 18px 0;
    transition: color 0.15s ease;
}
.p3-guide__n {
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    color: var(--p3-dim);
}
.p3-guide strong {
    display: block;
    font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--p3-paper);
}
.p3-guide small {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--p3-muted);
}
.p3-guide__arrow { color: var(--p3-dim); font-size: 0.9rem; }
.p3-guide a:hover strong { color: var(--p3-signal); }
.p3-guide a:hover .p3-guide__arrow { color: var(--p3-signal); }

/* --- FAQ ----------------------------------------------------------------- */

.p3-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
}
.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-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--p3-paper);
    cursor: pointer;
    list-style: none;
}
.p3-faq summary::-webkit-details-marker { display: none; }
.p3-faq summary::after {
    content: "+";
    flex: 0 0 auto;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 1rem;
    line-height: 1;
    color: var(--p3-dim);
    transition: color 0.15s ease;
}
.p3-faq details[open] summary::after { content: "\2212"; color: var(--p3-signal); }
.p3-faq summary:hover { color: var(--p3-signal); }
.p3-faq details p {
    max-width: 64ch;
    padding: 0 40px 18px 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--p3-muted);
}

/* --- final CTA: one full-bleed signal field ----------------------------- */

.p3-final {
    padding-block: clamp(52px, 6vw, 84px);
    border-top: 0;
    background: var(--p3-signal);
    color: var(--p3-signal-ink);
}
.p3-final__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px 48px;
}
.p3-final .p3-eyebrow { color: #4a463d; }
.p3-final .p3-eyebrow::before { background: #4a463d; }
.p3-final .p3-h2 {
    margin-top: 12px;
    max-width: 24ch;
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--p3-signal-ink);
}
.p3-final__offer {
    margin-top: 12px;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.68rem;
    line-height: 1.6;
    letter-spacing: 0.03em;
    color: #4a463d;
}
.p3-final__actions { display: grid; gap: 10px; justify-items: end; }
.p3-final__actions .p3-btn {
    min-height: 52px;
    padding-inline: 24px;
    font-size: 0.9375rem;
}
.p3-home .p3-final .p3-btn--buy,
.p3-home .p3-final .p3-btn--buy:visited {
    border-color: var(--p3-buy);
    background: var(--p3-buy);
    color: var(--p3-buy-ink);
}
.p3-home .p3-final .p3-btn--buy:hover {
    border-color: var(--p3-buy-hover);
    background: var(--p3-buy-hover);
    color: var(--p3-buy-ink);
}
.p3-final__note {
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.6rem;
    line-height: 1.5;
    color: #4a463d;
    text-align: right;
}
.p3-final :focus-visible { outline-color: var(--p3-signal-ink); }

/* --- 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: 6px 16px; }
.p3-keywords .v3-tools-chip {
    padding: 0;
    border: 0;
    background: none;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    color: var(--p3-dim);
    text-decoration: none;
}
.p3-keywords .v3-tools-chip:hover {
    color: var(--p3-paper);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.p3-home .v3-lightbox {
    width: min(94vw, 1500px);
    max-height: 92vh;
    padding: 12px;
    border: 1px solid var(--p3-line-strong);
    border-radius: 0;
    background: #0b0b0c;
    box-shadow: none;
}
.p3-home .v3-lightbox::backdrop { background: rgba(0, 0, 0, 0.86); }
.p3-home .v3-lightbox img { max-height: calc(92vh - 92px); margin: 0 auto; }
.p3-home .v3-lightbox p {
    margin-top: 10px;
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.03em;
    color: var(--p3-muted);
    text-align: center;
}
.p3-home .v3-lightbox-close { color: var(--p3-paper); }

/* --- shared footer on the homepage -------------------------------------- */

body.is-home .v3-site-footer {
    padding: 44px 0 32px;
    background: #0b0b0c !important;
    border-top: 1px solid var(--p3-line);
}
body.is-home .v3-footer-inner {
    width: 100%;
    max-width: 1240px;
    padding-inline: var(--p3-gutter);
    gap: 36px;
}
body.is-home .v3-footer-brand strong {
    font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--p3-paper);
}
body.is-home .v3-footer-brand span,
body.is-home .v3-footer-meta {
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.62rem;
    line-height: 1.6;
    color: var(--p3-dim);
}
body.is-home .v3-footer-links strong {
    font-family: "JetBrains Mono", ui-monospace, Menlo, Monaco, monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--p3-signal);
}
body.is-home .v3-site-footer a {
    color: var(--p3-muted) !important;
    font-size: 0.78rem;
}
body.is-home .v3-site-footer a:hover { color: var(--p3-paper) !important; }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1080px) {
    .p3-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .p3-hero__copy { gap: 18px; }
    .p3-h1__line { max-width: 18ch; }
    .p3-shot { order: 2; }

    .p3-plans { grid-template-columns: minmax(0, 1fr); }
    .p3-plan { padding: 30px 0 34px; }
    .p3-plan--current { padding-top: 28px; }
    .p3-plan--legacy { padding: 30px 0 34px; border-left: 0; border-top: 1px solid var(--p3-line); }

    .p3-output__grid,
    .p3-tools__grid,
    .p3-guides__grid,
    .p3-faq__grid { grid-template-columns: minmax(0, 1fr); }
    .p3-guides__head,
    .p3-faq__grid > header { position: static; }
}

@media (max-width: 900px) {
    .p3-sechead { grid-template-columns: minmax(0, 1fr); }
    .p3-sechead .p3-h2,
    .p3-sechead .p3-lead { grid-column: 1; }
    .p3-sechead .p3-lead { padding-bottom: 0; }

    .p3-row,
    .p3-row--flip { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .p3-row--flip .p3-fig { order: -1; }

    .p3-home .p3-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p3-specs li:nth-child(odd) { padding-left: 0; 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: 20px; }

    .p3-final__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .p3-final__actions { justify-items: start; }
    .p3-final__note { text-align: left; }
}

@media (min-width: 380px) {
    body.is-home #site-header .hdr-brand-text {
        display: inline;
        font-size: 0.92rem;
    }
}

@media (max-width: 620px) {
    .p3-home { --p3-sec: 54px; }
    .p3-h1__line { font-size: clamp(2.15rem, 9.5vw, 2.7rem); }
    .p3-hero__lead { font-size: 0.9375rem; }
    .p3-actions { width: 100%; }
    .p3-actions .p3-btn { flex: 1 1 100%; }
    .p3-shot__zoom { display: none; }

    .p3-home .p3-specs { grid-template-columns: minmax(0, 1fr); }
    .p3-specs li,
    .p3-specs li:nth-child(odd) {
        padding: 15px 0 16px;
        border-left: 0;
        border-top: 1px solid var(--p3-line);
    }
    .p3-specs li:first-child { border-top: 0; }

    .p3-gallery { gap: 26px 0; }
    .p3-gallery__item,
    .p3-gallery__item:nth-child(n) { grid-column: span 12; }

    .p3-plan__top { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .p3-plan__price { text-align: left; }
    .p3-plan__media { width: min(100%, 180px); }

    .p3-guide a { grid-template-columns: 24px minmax(0, 1fr) 14px; gap: 10px; }
    .p3-guide strong { font-size: 0.95rem; }

    .p3-demo__play { width: 54px; height: 54px; }
    .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; }
}
