/* Pressley landing — shared base styles (app-aligned dark/cyan theme) */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable; /* prevents fixed nav from jumping when scrollbar appears/disappears */
    overflow-y: scroll;       /* fallback for browsers without scrollbar-gutter */
}

/* Critical theme colors — data-dark-mode true/false (not OS preference) */
html[data-dark-mode='false'] {
    color-scheme: light;
}

html[data-dark-mode='true'] {
    color-scheme: dark;
}

html[data-dark-mode='false'] body.pressley-site {
    background-color: rgb(248 250 252);
    color: rgb(15 23 42);
}

html[data-dark-mode='true'] body.pressley-site {
    background-color: rgb(2 6 23);
    color: rgb(248 250 252);
}

html[data-dark-mode='false'] .pressley-site-nav {
    background-color: rgb(255 255 255 / 0.9);
    border-bottom-color: rgb(226 232 240);
}

html[data-dark-mode='true'] .pressley-site-nav {
    background-color: rgb(15 23 42 / 0.9);
    border-bottom-color: rgb(30 41 59);
}

/* Section shells when Tailwind dark: follows OS instead of .dark class */
html[data-dark-mode='false'] .pressley-site section.bg-slate-50 {
    background-color: rgb(248 250 252);
}

html[data-dark-mode='false'] .pressley-site section.bg-white {
    background-color: rgb(255 255 255);
}

html[data-dark-mode='true'] .pressley-site section.bg-slate-50 {
    background-color: rgb(2 6 23);
}

html[data-dark-mode='true'] .pressley-site section.bg-white {
    background-color: rgb(15 23 42);
}

html[data-dark-mode='false'] .pressley-site section.bg-slate-100 {
    background-color: rgb(241 245 249);
}

html[data-dark-mode='true'] .pressley-site section.bg-slate-100 {
    background-color: rgb(15 23 42);
}

html[data-dark-mode='false'] .pressley-site section[class*='bg-slate-950'],
html[data-dark-mode='false'] .pressley-site section.bg-slate-950 {
    background-color: rgb(248 250 252);
}

html[data-dark-mode='true'] .pressley-site section[class*='bg-slate-50']:not(.bg-white),
html[data-dark-mode='true'] .pressley-site section.bg-slate-50 {
    background-color: rgb(2 6 23);
}

/* Saved light mode must stay light even when OS is dark (broken Tailwind dark: variant) */
@media (prefers-color-scheme: dark) {
    html[data-dark-mode='false'] body.pressley-site {
        background-color: rgb(248 250 252) !important;
        color: rgb(15 23 42) !important;
    }

    html[data-dark-mode='false'] .pressley-site-nav {
        background-color: rgb(255 255 255 / 0.9) !important;
        border-bottom-color: rgb(226 232 240) !important;
    }

    html[data-dark-mode='false'] .pressley-site section.bg-slate-50,
    html[data-dark-mode='false'] .pressley-site section.bg-slate-950,
    html[data-dark-mode='false'] .pressley-site section.bg-slate-100,
    html[data-dark-mode='false'] .pressley-site section.bg-white {
        background-color: rgb(248 250 252) !important;
    }
}

@media (prefers-color-scheme: light) {
    html[data-dark-mode='true'] body.pressley-site {
        background-color: rgb(2 6 23) !important;
        color: rgb(248 250 252) !important;
    }

    html[data-dark-mode='true'] .pressley-site-nav {
        background-color: rgb(15 23 42 / 0.9) !important;
        border-bottom-color: rgb(30 41 59) !important;
    }

    html[data-dark-mode='true'] .pressley-site section.bg-slate-50,
    html[data-dark-mode='true'] .pressley-site section.bg-slate-950,
    html[data-dark-mode='true'] .pressley-site section.bg-slate-100,
    html[data-dark-mode='true'] .pressley-site section.bg-white {
        background-color: rgb(2 6 23) !important;
    }
}

/* Tailwind dark: on divs/cards — Solutions & other pages with nested dark: utilities */
@media (prefers-color-scheme: dark) {
    html[data-dark-mode='false'] .pressley-site [class*='dark:bg-slate-950'] {
        background-color: rgb(248 250 252) !important;
    }

    html[data-dark-mode='false'] .pressley-site [class*='dark:bg-slate-900'] {
        background-color: rgb(255 255 255) !important;
    }

    html[data-dark-mode='false'] .pressley-site [class*='dark:bg-slate-100'] {
        background-color: rgb(241 245 249) !important;
    }

    html[data-dark-mode='false'] .pressley-site [class*='dark:border-slate'] {
        border-color: rgb(226 232 240) !important;
    }
}

@media (prefers-color-scheme: light) {
    html[data-dark-mode='true'] .pressley-site [class*='dark:bg-slate-950'] {
        background-color: rgb(2 6 23) !important;
    }

    html[data-dark-mode='true'] .pressley-site [class*='dark:bg-slate-900'] {
        background-color: rgb(15 23 42) !important;
    }

    html[data-dark-mode='true'] .pressley-site [class*='dark:bg-slate-900/'] {
        background-color: rgb(15 23 42 / 0.95) !important;
    }

    html[data-dark-mode='true'] .pressley-site [class*='dark:bg-slate-100'] {
        background-color: rgb(15 23 42) !important;
    }

    html[data-dark-mode='true'] .pressley-site [class*='dark:border-slate'] {
        border-color: rgb(30 41 59) !important;
    }

    html[data-dark-mode='true'] .pressley-site [class*='dark:text-slate-300'],
    html[data-dark-mode='true'] .pressley-site [class*='dark:text-slate-400'] {
        color: rgb(203 213 225) !important;
    }
}

:root {
    --pressley-nav-height: calc(3.25rem + env(safe-area-inset-top, 0px));
}

@media (min-width: 768px) {
    :root {
        --pressley-nav-height: calc(3.75rem + env(safe-area-inset-top, 0px));
    }
}

body.pressley-site {
    min-height: 100vh;
    min-height: 100dvh;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow-x: clip;
}

body.pressley-site.pressley-theme-ready {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Placeholder — makes the nav div look like the bar before site-nav.js injects HTML */
#pressley-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--pressley-nav-height);
    background-color: rgb(255 255 255 / 0.9);
    border-bottom: 1px solid rgb(226 232 240);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
html[data-dark-mode='true'] #pressley-nav {
    background-color: rgb(15 23 42 / 0.9);
    border-bottom-color: rgb(30 41 59);
}

/* Site header — fixed sizes (not Tailwind CDN) so every page matches */
.pressley-site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    padding-top: env(safe-area-inset-top, 0px);
    background-color: rgb(255 255 255 / 0.9);
    border-bottom: 1px solid rgb(226 232 240);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
}

html[data-dark-mode='true'] .pressley-site-nav {
    background-color: rgb(15 23 42 / 0.9);
    border-bottom-color: rgb(30 41 59);
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
}

.pressley-nav__bar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    max-width: 80rem;
    margin: 0 auto;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
}

@media (min-width: 768px) {
    .pressley-nav__bar {
        min-height: 3.75rem;
        padding: 0.875rem 3rem;
    }
}

.pressley-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.pressley-nav__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background-color: rgb(37 99 235);
    color: rgb(255 255 255);
    box-shadow: 0 10px 15px -3px rgb(34 211 238 / 0.2);
    transition: transform 0.2s ease;
}

.pressley-nav__brand:hover .pressley-nav__logo {
    transform: rotate(6deg);
}

.pressley-nav__logo svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 768px) {
    .pressley-nav__logo {
        width: 2.5rem;
        height: 2.5rem;
    }

    .pressley-nav__logo svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.pressley-nav__title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .pressley-nav__title {
        font-size: 1.25rem;
    }
}

.pressley-nav__title-accent {
    color: rgb(8 145 178);
}

html[data-dark-mode='true'] .pressley-nav__title-accent {
    color: rgb(34 211 238);
}

.pressley-nav__links {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 0;
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pressley-nav__links {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .pressley-nav__links {
        gap: 1rem;
    }
}

@media (min-width: 1280px) {
    .pressley-nav__links {
        gap: 1.5rem;
    }
}

.pressley-nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
    color: rgb(71 85 105);
    transition: color 0.15s ease;
}

.pressley-nav__link:hover {
    color: rgb(8 145 178);
}

.pressley-nav__link.is-active {
    font-weight: 600;
    color: rgb(8 145 178);
}

html[data-dark-mode='true'] .pressley-nav__link {
    color: rgb(203 213 225);
}

html[data-dark-mode='true'] .pressley-nav__link:hover,
html[data-dark-mode='true'] .pressley-nav__link.is-active {
    color: rgb(34 211 238);
}

.pressley-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.pressley-nav__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background-color: rgb(241 245 249);
    color: rgb(71 85 105);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pressley-nav__icon-btn:hover {
    background-color: rgb(226 232 240);
}

html[data-dark-mode='true'] .pressley-nav__icon-btn {
    background-color: rgb(30 41 59);
    color: rgb(148 163 184);
}

html[data-dark-mode='true'] .pressley-nav__icon-btn:hover {
    background-color: rgb(51 65 85);
}

.pressley-nav__icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

html[data-dark-mode='false'] .pressley-nav__icon-btn [data-theme-icon='sun'] {
    display: none;
}

html[data-dark-mode='true'] .pressley-nav__icon-btn [data-theme-icon='moon'] {
    display: none;
}

.pressley-nav__menu-btn {
    display: flex;
}

@media (min-width: 768px) {
    .pressley-nav__menu-btn {
        display: none;
    }
}

.pressley-nav__demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    color: rgb(2 6 23);
    background-color: rgb(6 182 212);
    box-shadow:
        0 10px 15px -3px rgb(6 182 212 / 0.3),
        0 0 0 2px rgb(6 182 212 / 0.2);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.pressley-nav__demo:hover {
    background-color: rgb(34 211 238);
}

.pressley-nav__demo:active {
    transform: scale(0.95);
}

@media (min-width: 640px) {
    .pressley-nav__demo {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
}

.pressley-nav__demo-short {
    display: inline;
}

.pressley-nav__demo-full {
    display: none;
}

@media (min-width: 640px) {
    .pressley-nav__demo-short {
        display: none;
    }

    .pressley-nav__demo-full {
        display: inline;
    }
}

.pressley-nav__mobile {
    border-top: 1px solid rgb(226 232 240);
    background-color: rgb(255 255 255 / 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-height: 70vh;
    overflow-y: auto;
}

.pressley-nav__mobile.is-collapsed {
    display: none;
}

html[data-dark-mode='true'] .pressley-nav__mobile {
    border-top-color: rgb(30 41 59);
    background-color: rgb(15 23 42 / 0.98);
}

@media (min-width: 768px) {
    .pressley-nav__mobile {
        display: none !important;
    }
}

.pressley-nav__mobile-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1rem 1.25rem;
}

.pressley-nav__mobile-link {
    display: block;
    padding: 0.625rem 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    color: rgb(51 65 85);
}

.pressley-nav__mobile-link.is-active,
.pressley-nav__mobile-link:hover {
    color: rgb(8 145 178);
}

html[data-dark-mode='true'] .pressley-nav__mobile-link {
    color: rgb(203 213 225);
}

html[data-dark-mode='true'] .pressley-nav__mobile-link.is-active,
html[data-dark-mode='true'] .pressley-nav__mobile-link:hover {
    color: rgb(34 211 238);
}

.pressley-nav__mobile-group {
    padding: 0.25rem 0;
}

.pressley-nav__mobile-label {
    padding: 0.5rem 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(100 116 139);
}

.pressley-nav__mobile-group .pressley-nav__mobile-link {
    padding: 0.5rem 0 0.5rem 0.75rem;
    border-left: 2px solid transparent;
}

.pressley-nav__mobile-group .pressley-nav__mobile-link.is-active {
    border-left-color: rgb(6 182 212);
}

.pressley-nav__mobile-demo {
    display: block;
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: rgb(2 6 23);
    background-color: rgb(6 182 212);
    box-shadow: 0 10px 15px -3px rgb(6 182 212 / 0.25);
}

.pressley-nav__mobile-demo:hover {
    background-color: rgb(34 211 238);
}

body.pressley-site [id] {
    scroll-margin-top: calc(var(--pressley-nav-height) + 0.75rem);
}

/* Offset for fixed header */
.pressley-main {
    flex: 1;
}

details[name="pressley-faq"] summary::-webkit-details-marker {
    display: none;
}

details[name="pressley-faq"][open] summary {
    color: rgb(34 211 238);
}

/* Primary CTA — consistent cyan */
.pressley-btn-demo {
    display: inline-block;
    background-color: rgb(6 182 212);
    color: rgb(2 6 23);
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    transition: transform 0.15s, background-color 0.15s;
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.25);
}

.pressley-btn-demo:hover {
    background-color: rgb(34 211 238);
    transform: scale(1.02);
}

.pressley-btn-demo:active {
    transform: scale(0.98);
}

/* App screenshot frames (Demo mode captures in assets/solutions/) */
.pressley-screenshot-frame {
    overflow: hidden;
    background: rgb(241 245 249);
    border: 1px solid rgb(226 232 240);
}

.dark .pressley-screenshot-frame {
    background: rgb(15 23 42);
    border-color: rgb(51 65 85);
}

.pressley-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.pressley-screenshot--expandable {
    cursor: zoom-in;
}

/* Proof version pages — frame hugs landscape screenshot (no tall 3:4 box) */
.pressley-proof-page-frame {
    aspect-ratio: unset;
    height: auto;
    border: none;
    background: transparent;
}

.pressley-proof-page-frame .pressley-screenshot--natural {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    vertical-align: middle;
}

.pressley-screenshot--expandable:focus-visible {
    outline: 2px solid rgb(34 211 238);
    outline-offset: 2px;
}

/* Full-size screenshot lightbox — never upscales beyond native pixels */
.pressley-lightbox {
    margin: 0;
    padding: 0;
    border: none;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

.pressley-lightbox::backdrop {
    background: rgb(2 6 23 / 0.92);
    backdrop-filter: blur(4px);
}

.pressley-lightbox__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.pressley-lightbox__panel {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 1.5rem;
    pointer-events: none;
}

.pressley-lightbox__theme {
    pointer-events: auto;
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.75rem;
    padding: 0 0.85rem 0 0.65rem;
    border-radius: 9999px;
    border: 1px solid rgb(51 65 85);
    background: rgb(15 23 42 / 0.95);
    color: rgb(226 232 240);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
}

.pressley-lightbox__theme:hover {
    background: rgb(30 41 59);
    color: white;
    border-color: rgb(34 211 238 / 0.5);
}

.pressley-lightbox__theme svg {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

html[data-dark-mode='false'] .pressley-lightbox__theme [data-theme-icon='sun'] {
    display: none;
}

html[data-dark-mode='true'] .pressley-lightbox__theme [data-theme-icon='moon'] {
    display: none;
}

.pressley-lightbox__theme-label {
    line-height: 1;
}

.pressley-lightbox__close {
    pointer-events: auto;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1px solid rgb(51 65 85);
    background: rgb(15 23 42 / 0.95);
    color: rgb(226 232 240);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.pressley-lightbox__close:hover {
    background: rgb(30 41 59);
    color: white;
}

.pressley-lightbox__nav {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid rgb(51 65 85);
    background: rgb(15 23 42 / 0.95);
    color: rgb(226 232 240);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0.15rem;
}

.pressley-lightbox__nav:hover {
    background: rgb(30 41 59);
    color: white;
    border-color: rgb(34 211 238 / 0.5);
}

.pressley-lightbox__nav--prev {
    left: max(0.5rem, env(safe-area-inset-left));
}

.pressley-lightbox__nav--next {
    right: max(0.5rem, env(safe-area-inset-right));
}

.pressley-lightbox__nav[hidden] {
    display: none;
}

.pressley-lightbox__img {
    pointer-events: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: min(95vw, 100%);
    max-height: calc(100vh - 5rem);
    object-fit: contain;
    border-radius: 0.75rem;
    border: 1px solid rgb(51 65 85);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.pressley-lightbox__caption {
    pointer-events: none;
    margin-top: 0.75rem;
    max-width: 48rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgb(148 163 184);
}

.pressley-lightbox__counter {
    pointer-events: none;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgb(100 116 139);
}

.pressley-lightbox__counter[hidden] {
    display: none;
}

/* Homepage — How Simple Is It? media block */
.how-simple-media {
    max-width: 42rem;
}

.how-simple-gif-badge {
    display: block;
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(8 145 178);
    background: rgb(236 254 255 / 0.95);
    border: 1px dashed rgb(6 182 212 / 0.5);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    pointer-events: none;
}

.dark .how-simple-gif-badge {
    color: rgb(34 211 238);
    background: rgb(15 23 42 / 0.9);
    border-color: rgb(6 182 212 / 0.4);
}

.how-simple-gif-badge.hidden {
    display: none;
}

.how-simple-gif {
    display: block;
    width: 100%;
    height: auto;
    max-height: 28rem;
    object-fit: contain;
    border-radius: 0.75rem;
    border: 1px solid rgb(226 232 240);
}

.dark .how-simple-gif {
    border-color: rgb(51 65 85);
}

.how-simple-gif-replay {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgb(248 250 252);
    background: rgb(15 23 42 / 0.82);
    border: 1px solid rgb(6 182 212 / 0.45);
    border-radius: 9999px;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.25);
}

.how-simple-gif-replay:hover {
    background: rgb(15 23 42 / 0.95);
    border-color: rgb(34 211 238);
}

.how-simple-gif-replay:active {
    transform: scale(0.97);
}

.how-simple-gif-replay.hidden {
    display: none;
}

.how-simple-gif-replay:focus-visible {
    outline: 2px solid rgb(34 211 238);
    outline-offset: 2px;
}

/* File Folders page — directory tree example */
.pressley-directory-tree {
    margin: 0;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgb(51 65 85);
    background: rgb(248 250 252);
    border: 1px solid rgb(226 232 240);
    border-radius: 1rem;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6);
}

.pressley-directory-tree code {
    font-family: inherit;
    white-space: pre;
}

.dark .pressley-directory-tree {
    color: rgb(226 232 240);
    background: rgb(15 23 42);
    border-color: rgb(51 65 85);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}

/* Screenshot placeholder (pending assets) */
.pressley-screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: rgb(248 250 252);
    border: 2px dashed rgb(203 213 225);
}

.dark .pressley-screenshot-placeholder {
    background: rgb(15 23 42);
    border-color: rgb(51 65 85);
}

/* Nav — Features dropdown */
.pressley-nav-dropdown {
    position: relative;
}

/* Invisible bridge so hover is not lost in the gap above the panel */
.pressley-nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.5rem;
    z-index: 59;
}

.pressley-nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 11rem;
    padding: 0.35rem;
    background: rgb(255 255 255 / 0.98);
    border: 1px solid rgb(226 232 240);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px -10px rgb(15 23 42 / 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 60;
}

.dark .pressley-nav-dropdown__panel {
    background: rgb(15 23 42 / 0.98);
    border-color: rgb(51 65 85);
    box-shadow: 0 10px 40px -10px rgb(0 0 0 / 0.5);
}

.pressley-nav-dropdown:hover .pressley-nav-dropdown__panel,
.pressley-nav-dropdown:focus-within .pressley-nav-dropdown__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pressley-nav-dropdown__link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(71 85 105);
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}

.dark .pressley-nav-dropdown__link {
    color: rgb(203 213 225);
}

.pressley-nav-dropdown__link:hover {
    background: rgb(236 254 255);
    color: rgb(8 145 178);
}

.dark .pressley-nav-dropdown__link:hover {
    background: rgb(6 182 212 / 0.12);
    color: rgb(34 211 238);
}

.pressley-nav-dropdown__link.is-active {
    color: rgb(8 145 178);
    font-weight: 600;
}

.dark .pressley-nav-dropdown__link.is-active {
    color: rgb(34 211 238);
}

.pressley-nav-dropdown__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.pressley-nav-dropdown__trigger svg {
    width: 0.875rem;
    height: 0.875rem;
    opacity: 0.6;
}

/* First-visit theme guide */
.pressley-theme-guide {
    position: fixed;
    z-index: 100;
    max-width: min(22rem, calc(100vw - 2rem));
    animation: themeGuideIn 0.35s ease;
}

.pressley-theme-guide--centered {
    width: min(22rem, calc(100vw - 2rem));
}

.pressley-theme-guide__panel {
    position: relative;
    padding: 1.25rem 1.35rem;
    background: rgb(255 255 255);
    border: 2px solid rgb(6 182 212 / 0.45);
    border-radius: 1rem;
    box-shadow:
        0 20px 50px -15px rgb(15 23 42 / 0.35),
        0 0 0 1px rgb(6 182 212 / 0.15);
}

.dark .pressley-theme-guide__panel {
    background: rgb(15 23 42);
    border-color: rgb(6 182 212 / 0.55);
    box-shadow:
        0 20px 50px -15px rgb(0 0 0 / 0.6),
        0 0 0 1px rgb(6 182 212 / 0.25);
}

.pressley-theme-guide__arrow {
    position: absolute;
    top: -7px;
    width: 12px;
    height: 12px;
    background: rgb(255 255 255);
    border-top: 2px solid rgb(6 182 212 / 0.45);
    border-left: 2px solid rgb(6 182 212 / 0.45);
    transform: rotate(45deg);
}

.dark .pressley-theme-guide__arrow {
    background: rgb(15 23 42);
    border-color: rgb(6 182 212 / 0.55);
}

.pressley-theme-guide--centered .pressley-theme-guide__arrow {
    top: -7px;
    left: 50%;
}

.pressley-theme-guide__eyebrow {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgb(8 145 178);
    margin-bottom: 0.35rem;
}

.dark .pressley-theme-guide__eyebrow {
    color: rgb(34 211 238);
}

.pressley-theme-guide__title {
    font-size: 1.125rem;
    font-weight: 800;
    color: rgb(15 23 42);
    margin-bottom: 0.5rem;
}

.dark .pressley-theme-guide__title {
    color: rgb(248 250 252);
}

.pressley-theme-guide__body {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgb(71 85 105);
    margin-bottom: 0.75rem;
}

.dark .pressley-theme-guide__body {
    color: rgb(203 213 225);
}

.pressley-theme-guide__body strong {
    color: rgb(15 23 42);
    font-weight: 700;
}

.dark .pressley-theme-guide__body strong {
    color: rgb(248 250 252);
}

.pressley-theme-guide__icon-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    vertical-align: middle;
    color: rgb(8 145 178);
}

.dark .pressley-theme-guide__icon-hint {
    color: rgb(34 211 238);
}

.pressley-theme-guide__dismiss {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(2 6 23);
    background: rgb(6 182 212);
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.15s;
}

.pressley-theme-guide__dismiss:hover {
    background: rgb(34 211 238);
}

.pressley-theme-guide__dismiss:active {
    transform: scale(0.98);
}

@keyframes themeGuideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pressley-theme-guide--centered {
    animation-name: themeGuideInCentered;
}

@keyframes themeGuideInCentered {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Solutions plans — OS vs saved darkMode (site-wide, not solutions-only) */
@media (prefers-color-scheme: light) {
    html[data-dark-mode='true'] .pressley-site .server-type-card[class*='dark:bg-slate-950'] {
        background-color: rgb(2 6 23) !important;
    }

    html[data-dark-mode='true'] .pressley-site #enfocus-hardware {
        background: linear-gradient(to bottom, rgb(2 6 23), rgb(15 23 42)) !important;
        border-color: rgb(30 41 59) !important;
    }

    html[data-dark-mode='true'] .pressley-site #server-plans {
        background-color: rgb(2 6 23) !important;
        color: rgb(248 250 252) !important;
    }

    html[data-dark-mode='true'] .pressley-site .enfocus-stack__item,
    html[data-dark-mode='true'] .pressley-site .enfocus-product-card {
        background-color: rgb(15 23 42) !important;
        border-color: rgb(30 41 59) !important;
    }
}

@media (prefers-color-scheme: dark) {
    html[data-dark-mode='false'] .pressley-site .server-type-card[class*='dark:bg-slate-950'] {
        background-color: rgb(248 250 252) !important;
    }

    html[data-dark-mode='false'] .pressley-site #enfocus-hardware {
        background: linear-gradient(to bottom, rgb(241 245 249), rgb(255 255 255)) !important;
        border-color: rgb(226 232 240) !important;
    }

    html[data-dark-mode='false'] .pressley-site #server-plans {
        background-color: rgb(248 250 252) !important;
        color: rgb(15 23 42) !important;
    }

    html[data-dark-mode='false'] .pressley-site .enfocus-stack__item,
    html[data-dark-mode='false'] .pressley-site .enfocus-product-card {
        background-color: rgb(248 250 252) !important;
        border-color: rgb(226 232 240) !important;
    }
}

/* Home hero — keep headline on two lines across browsers (Firefox grid/font metrics differ from Chrome) */
#hero .pressley-hero-copy {
    min-width: 0;
}

@media (min-width: 768px) {
    #hero .pressley-hero-copy {
        max-width: none;
    }

    #hero .pressley-hero-title-sub {
        white-space: nowrap;
    }
}

/* PDF-first workflow callout (home + feature pages) */
.pressley-pdf-callout {
    border-radius: 1rem;
    border: 2px solid rgb(34 211 238 / 0.35);
    background: rgb(34 211 238 / 0.06);
    padding: 1.5rem 1.75rem;
}

html[data-dark-mode='true'] .pressley-pdf-callout {
    background: rgb(34 211 238 / 0.08);
    border-color: rgb(34 211 238 / 0.4);
}

/* Server configurator — not a purchase (golden notice) */
.pressley-agreement-notice {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    text-align: left;
    box-sizing: border-box;
    border-radius: 0.875rem;
    border: 1px solid rgb(234 179 8 / 0.55);
    background: linear-gradient(135deg, rgb(254 249 195 / 0.95) 0%, rgb(253 230 138 / 0.35) 100%);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset;
}

html[data-dark-mode='true'] .pressley-agreement-notice {
    border-color: rgb(250 204 21 / 0.45);
    background: linear-gradient(135deg, rgb(69 26 3 / 0.55) 0%, rgb(120 53 15 / 0.35) 100%);
    box-shadow: 0 0 0 1px rgb(250 204 21 / 0.12);
}

.pressley-agreement-notice__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.pressley-agreement-notice__toggle:focus-visible {
    outline: 2px solid rgb(202 138 4);
    outline-offset: 3px;
    border-radius: 0.375rem;
}

.pressley-agreement-notice__lead {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
    margin: 0;
    font-weight: 800;
    line-height: 1.25;
    color: rgb(146 64 14);
}

.pressley-agreement-notice__headline {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(0.8125rem, 0.35vw + 0.78rem, 1.05rem);
}

.pressley-agreement-notice__chevron {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-top: 0;
    color: rgb(202 138 4);
    transition: transform 0.2s ease;
}

html[data-dark-mode='true'] .pressley-agreement-notice__chevron {
    color: rgb(250 204 21);
}

.pressley-agreement-notice.is-expanded .pressley-agreement-notice__chevron {
    transform: rotate(180deg);
}

.pressley-agreement-notice__panel {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    border-top: 1px solid rgb(234 179 8 / 0.35);
}

html[data-dark-mode='true'] .pressley-agreement-notice__panel {
    border-top-color: rgb(250 204 21 / 0.25);
}

.pressley-agreement-notice:not(.is-expanded) .pressley-agreement-notice__panel {
    display: none;
}

html[data-dark-mode='true'] .pressley-agreement-notice__lead {
    color: rgb(253 224 71);
}

.pressley-agreement-notice__lead svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: rgb(202 138 4);
}

html[data-dark-mode='true'] .pressley-agreement-notice__lead svg {
    color: rgb(250 204 21);
}

.pressley-agreement-notice__body {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgb(120 53 15);
    overflow-wrap: break-word;
}

.pressley-agreement-notice__body--secondary {
    margin-top: 0.625rem;
    font-size: 0.875rem;
    opacity: 0.95;
}

html[data-dark-mode='true'] .pressley-agreement-notice__body {
    color: rgb(254 240 138);
}

.pressley-agreement-notice__body strong {
    color: rgb(113 63 18);
    font-weight: 700;
}

html[data-dark-mode='true'] .pressley-agreement-notice__body strong {
    color: rgb(253 230 138);
}

/* Shared compact demo CTA (inner pages) */
.pressley-page-cta {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 2px solid rgb(34 211 238 / 0.2);
    background-color: rgb(241 245 249);
}

html[data-dark-mode='true'] .pressley-page-cta {
    background-color: rgb(15 23 42);
    border-top-color: rgb(34 211 238 / 0.3);
}

.pressley-page-cta__btn {
    display: inline-block;
    background-color: rgb(34 211 238);
    color: rgb(2 6 23);
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    transition: transform 0.15s ease, background-color 0.15s ease;
    box-shadow: 0 20px 25px -5px rgb(34 211 238 / 0.25);
}

.pressley-page-cta__btn:hover {
    background-color: rgb(103 232 249);
    transform: scale(1.03);
}

.pressley-page-cta__btn:active {
    transform: scale(0.97);
}
