/* .sp-container defined once in main.css */

/* --sp-promo-offset: height of a sticky promo bar, set by resources/js/promo-bar.js. */

/* Ported from Laravel resources/css/app.css — public shell + home/hero */
.sp-public-header {
    position: sticky;
    top: var(--sp-promo-offset, 0px);
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-neutral) 94%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sp-public-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    height: 4rem;
    column-gap: 1rem;
}

.sp-public-header__brand {
    min-width: 0;
    max-width: calc(100% - 3.75rem);
    overflow: hidden;
}

.sp-public-header__nav,
.sp-public-header__cta {
    display: none;
}

.sp-public-header__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-self: end;
    gap: 0.5rem;
}

.sp-public-header__menu {
    display: flex;
    align-items: center;
}

.sp-public-header__toggle {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-sans);
}

.sp-public-header__toggle:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

@media (min-width: 64rem) {
    .sp-public-header__menu,
    .sp-public-header__toggle,
    .sp-mobile-nav-toggle {
        display: none !important;
    }
}

.sp-brand-tagline {
    margin-top: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--color-secondary);
}

.sp-brand-logo {
    display: block;
    width: auto;
    height: 2rem;
    max-width: 11rem;
    object-fit: contain;
    object-position: right center;
}

@media (min-width: 64rem) {
    .sp-brand-logo {
        height: 2.25rem;
    }
}

@media (min-width: 64rem) {
    .sp-public-header__bar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .sp-public-header__brand {
        max-width: none;
    }

    .sp-public-header__nav {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
    }

    .sp-public-header__cta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .sp-public-header__menu {
        display: none;
    }
}

.sp-public-footer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sp-trust-badges__list {
    min-height: 5.5rem;
}

.sp-trust-badge {
    box-sizing: border-box;
    display: inline-flex;
    width: 5.5rem;
    height: 5.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background: var(--color-neutral);
}

.sp-trust-badge__link {
    display: inline-flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
}

.sp-trust-badge__img,
.sp-trust-badge img {
    display: block;
    width: 88px;
    height: 88px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sp-trust-badge.is-broken .sp-trust-badge__img,
.sp-trust-badge.is-broken img {
    visibility: hidden;
}

.sp-trust-badge--preview {
    pointer-events: none;
}

.sp-has-bottom-nav {
    --sp-bottom-nav-height: calc(3.75rem + 1px);
    --sp-dock-offset: 0px;
    /* Reserve exactly the bar height so the footer sits flush against it. */
    padding-bottom: calc(var(--sp-bottom-nav-height) + var(--sp-dock-offset) + env(safe-area-inset-bottom, 0px));
}

.sp-has-bottom-nav.sp-has-dock {
    --sp-dock-offset: 4.5rem;
}

.sp-has-bottom-nav .sp-public-footer {
    /* Keep content clear of the bar without opening a gap below the footer. */
    padding-bottom: 0.75rem;
}

.sp-bottom-nav {
    position: fixed;
    z-index: 45;
    inset-inline: 0;
    bottom: 0;
    overflow: hidden;
    border-top: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-neutral) 94%, transparent);
    box-shadow: 0 -1px 3px rgb(23 19 21 / 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sp-bottom-nav__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    height: 3.75rem;
    padding-inline: 0.25rem;
}

.sp-bottom-nav[data-count='5'] .sp-bottom-nav__inner {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sp-bottom-nav__item {
    display: flex;
    width: 100%;
    min-width: 44px;
    min-height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin: 0;
    border: 0;
    border-radius: var(--radius-md);
    padding: 0.25rem 0.15rem;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: var(--color-secondary);
    font: inherit;
    font-family: inherit;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.sp-bottom-nav__icon {
    display: block;
    line-height: 0;
}

.sp-bottom-nav__icon .sp-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.sp-bottom-nav__label {
    overflow: hidden;
    max-width: 100%;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-bottom-nav__item.is-active {
    background: color-mix(in srgb, var(--color-accent) 8%, transparent);
    color: var(--color-accent);
    font-weight: 600;
}

.sp-bottom-nav__item:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sp-feedback-host {
    position: fixed;
    z-index: 60;
    inset-inline: 0;
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding-inline: 1rem;
}

.sp-feedback-host__stack {
    display: flex;
    width: min(100%, 22.5rem);
    max-height: min(50vh, 22rem);
    flex-direction: column;
    gap: 0.5rem;
    overflow: auto;
    pointer-events: none;
}

.sp-feedback-toast {
    --sp-feedback-accent: var(--color-secondary);
    position: relative;
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.625rem;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in srgb, var(--color-border) 85%, var(--sp-feedback-accent));
    border-inline-start: 3px solid var(--sp-feedback-accent);
    background: color-mix(in srgb, var(--color-surface) 94%, var(--sp-feedback-accent));
    padding: 0.75rem 0.75rem 0.875rem;
    box-shadow:
        0 1px 2px rgb(23 19 21 / 0.04),
        0 10px 28px rgb(23 19 21 / 0.1);
    color: var(--color-primary);
}

.sp-feedback-toast--success {
    --sp-feedback-accent: var(--color-success);
}

.sp-feedback-toast--warning {
    --sp-feedback-accent: var(--color-warning);
}

.sp-feedback-toast--error {
    --sp-feedback-accent: var(--color-error);
}

.sp-feedback-toast--info {
    --sp-feedback-accent: var(--color-secondary);
}

.sp-feedback-toast__icon {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--sp-feedback-accent) 14%, transparent);
    color: var(--sp-feedback-accent);
}

.sp-feedback-toast__message {
    margin: 0;
    padding-block: 0.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.sp-feedback-toast__dismiss {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-secondary);
    cursor: pointer;
    transition:
        background-color 150ms ease,
        color 150ms ease;
}

.sp-feedback-toast__dismiss:hover {
    background: color-mix(in srgb, var(--color-primary) 6%, transparent);
    color: var(--color-primary);
}

.sp-feedback-toast__dismiss:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sp-feedback-toast__progress {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    transform-origin: right center;
    background: color-mix(in srgb, var(--sp-feedback-accent) 55%, transparent);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .sp-feedback-toast {
        animation: sp-feedback-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .sp-feedback-toast__progress {
        animation: sp-feedback-progress var(--sp-feedback-duration, 4500ms) linear forwards;
    }
}

@keyframes sp-feedback-in {
    from {
        opacity: 0;
        transform: translateY(-0.625rem) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes sp-feedback-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.sp-has-bottom-nav .sp-feedback-host {
    top: auto;
    bottom: calc(var(--sp-bottom-nav-height, 3.75rem) + env(safe-area-inset-bottom, 0px) + 0.75rem);
}

.sp-has-bottom-nav .sp-feedback-host__stack {
    flex-direction: column-reverse;
}

@media (min-width: 768px) {
    .sp-has-bottom-nav .sp-feedback-host {
        top: calc(0.75rem + env(safe-area-inset-top, 0px));
        bottom: auto;
    }

    .sp-has-bottom-nav .sp-feedback-host__stack {
        flex-direction: column;
    }
}

.sp-dock {
    position: fixed;
    z-index: 40;
    inset-inline: 0;
    bottom: 0;
    border-top: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-surface) 90%, transparent);
    padding-block: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sp-has-bottom-nav .sp-dock {
    bottom: calc(var(--sp-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: 0.75rem;
}

/* Pages with a [data-dock-trigger] (e.g. the service hero price) keep the dock
   tucked behind the bottom nav until contextual-dock.js reveals it on scroll. */
.sp-dock {
    transition:
        transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 220ms ease,
        visibility 0s linear 0s;
}

body:has([data-dock-trigger]) .sp-dock:not(.is-revealed) {
    transform: translateY(calc(100% + 0.5rem));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sp-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sp-hero-main,
.sp-hero-copy,
.sp-hero-visual,
.sp-hero-actions {
    min-width: 0;
    text-align: start;
}

.sp-hero-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sp-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

@media (max-width: 39.99rem) {
    .sp-hero-actions .inline-flex,
    .sp-hero-actions .sp-btn-row,
    .sp-hero-actions .sp-hero-cta-row {
        width: 100%;
    }

    .sp-hero-actions .inline-flex > *,
    .sp-hero-actions .sp-btn-row > .sp-btn,
    .sp-hero-actions .sp-hero-cta-row > .sp-btn {
        flex: 1 1 calc(50% - 0.375rem);
        min-height: 2.75rem;
        white-space: nowrap;
    }

    .sp-home-proof {
        gap: 0.45rem 0.85rem;
    }
}

.sp-hero-kicker {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    gap: 0.5rem;
    margin: 0;
    border: 1px solid color-mix(in srgb, var(--color-accent) 22%, var(--color-border));
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--color-accent) 8%, var(--color-neutral));
    padding: 0.3125rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-accent);
}

.sp-hero-kicker__dot {
    position: relative;
    width: 0.375rem;
    height: 0.375rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: var(--color-accent);
}

.sp-hero-kicker__dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--color-accent);
    animation: sp-ping 1.25s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.sp-hero-title {
    width: 100%;
    max-width: none;
    font-size: clamp(1.85rem, 7.2vw, 3.15rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    text-wrap: wrap;
    overflow-wrap: anywhere;
}

@media (min-width: 64rem) {
    .sp-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        align-items: start;
        column-gap: 1rem;
        row-gap: 0;
    }

    .sp-hero-main {
        gap: 1.25rem;
    }

    .sp-hero--check {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        column-gap: 0.75rem;
    }
}

.sp-home-hero {
    overflow-x: clip;
}

.sp-hero-orbit {
    --sp-orbit-x: 0;
    --sp-orbit-y: 0;
    --sp-orbit-band: 2.5rem;
    --sp-orbit-stage: 26.5rem;
    --sp-orbit-editor-offset: -0.75rem;
    position: relative;
    isolation: isolate;
    padding-top: var(--sp-orbit-band);
}

.sp-hero-orbit > :not(.sp-hero-orbit__layer) {
    position: relative;
    z-index: 1;
}

.sp-hero-orbit__layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sp-hero-orbit__layer--back {
    z-index: 0;
}

.sp-hero-orbit__layer--front {
    z-index: 2;
}

.sp-orbit-editor,
.sp-orbit-logo,
.sp-orbit-chip {
    position: absolute;
    translate:
        calc(var(--sp-orbit-x) * var(--sp-orbit-depth, 1) * 1px)
        calc(var(--sp-orbit-y) * var(--sp-orbit-depth, 1) * 1px);
    transition: translate 450ms cubic-bezier(0.22, 1, 0.36, 1);
    animation:
        sp-orbit-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both,
        sp-orbit-float 6.5s ease-in-out 700ms infinite;
}

.sp-orbit-editor {
    display: none;
    top: 0;
    inset-inline-end: var(--sp-orbit-editor-offset);
    width: 15.5rem;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: var(--radius-lg);
    background: #231d20;
    box-shadow: 0 22px 44px -18px rgb(23 19 21 / 0.45);
    rotate: -4deg;
    animation-name: sp-orbit-in, sp-orbit-drift;
    animation-duration: 800ms, 9s;
    animation-delay: 150ms, 950ms;
}

.sp-orbit-editor__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
    background: rgb(255 255 255 / 0.03);
}

.sp-orbit-editor__dots {
    display: inline-flex;
    gap: 0.25rem;
}

.sp-orbit-editor__dots i {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.18);
}

.sp-orbit-editor__dots i:first-child {
    background: #e0566f;
}

.sp-orbit-editor__file {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.625rem;
    color: rgb(255 255 255 / 0.5);
}

.sp-orbit-editor__code {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.7rem 0.7rem;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.6875rem;
    line-height: 1.5rem;
    color: rgb(255 255 255 / 0.72);
    text-align: left;
    white-space: nowrap;
}

.sp-orbit-editor__code::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0.5rem;
    height: 1.5rem;
    background: rgb(159 38 61 / 0.22);
    border-inline-start: 2px solid #e0566f;
    animation: sp-orbit-scanline 5.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.sp-orbit-editor__line {
    position: relative;
}

.sp-orbit-editor__line b {
    font-weight: 500;
}

.sp-orbit-editor__line .is-tag {
    color: #b4b8e6;
    font-weight: 700;
}

.sp-orbit-editor__line .is-fn {
    color: #f2c77a;
}

.sp-orbit-editor__line .is-str {
    color: #9fd8a8;
}

.sp-orbit-editor__line .is-var {
    color: #f09aab;
}

.sp-orbit-editor__line .is-kw {
    color: #8ec5ff;
}

.sp-orbit-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sp-orbit-logo--wp {
    --sp-orbit-size: 2.75rem;
    top: 0;
    inset-inline-start: 0.75rem;
    width: var(--sp-orbit-size);
    height: var(--sp-orbit-size);
    padding: 0.4rem;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    background: var(--color-surface);
    color: #21759b;
    box-shadow: 0 10px 24px -10px rgb(33 117 155 / 0.55);
    animation-delay: 250ms, 950ms;
}

.sp-orbit-logo--wp::after {
    content: '';
    position: absolute;
    inset: -0.4rem;
    border: 1px dashed rgb(33 117 155 / 0.35);
    border-radius: inherit;
    animation: sp-orbit-spin 18s linear infinite;
}

.sp-orbit-logo--wp svg {
    width: 100%;
    height: 100%;
}

.sp-orbit-logo__ok {
    position: absolute;
    inset-inline-end: -0.15rem;
    bottom: -0.15rem;
    width: 0.8rem;
    height: 0.8rem;
    border: 2px solid var(--color-surface);
    border-radius: 9999px;
    background: var(--color-success);
    scale: 0;
    transition: scale 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sp-orbit-logo--php {
    top: 0.2rem;
    inset-inline-end: 0.5rem;
    width: 4.25rem;
    filter: drop-shadow(0 10px 16px rgb(119 123 180 / 0.45));
    animation-duration: 700ms, 7.5s;
    animation-delay: 400ms, 1.1s;
}

.sp-orbit-logo--php svg {
    width: 100%;
    height: auto;
}

.sp-orbit-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.75rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    background: var(--color-surface);
    box-shadow: 0 8px 20px -12px rgb(23 19 21 / 0.35);
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.sp-orbit-chip--version {
    top: 0.45rem;
    inset-inline-start: 4.25rem;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.625rem;
    animation-duration: 700ms, 8s;
    animation-delay: 500ms, 1.2s;
}

.sp-orbit-chip__sep {
    width: 1px;
    height: 0.7rem;
    background: var(--color-border);
}

.sp-orbit-chip--status {
    display: none;
    top: calc(var(--sp-orbit-band) + var(--sp-orbit-stage) - 0.9rem);
    inset-inline-start: 1.25rem;
    animation-duration: 700ms, 7s;
    animation-delay: 650ms, 1.35s;
}

.sp-orbit-chip__pulse {
    position: relative;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    background: var(--color-accent);
    transition: background-color 300ms ease;
}

.sp-orbit-chip__pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: sp-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.sp-orbit-chip__text--done {
    display: none;
    color: var(--color-success);
}

.sp-hero-orbit:has(.sp-hero-diag.is-complete) .sp-orbit-logo__ok {
    scale: 1;
}

.sp-hero-orbit:has(.sp-hero-diag.is-complete) .sp-orbit-chip__pulse {
    background: var(--color-success);
}

.sp-hero-orbit:has(.sp-hero-diag.is-complete) .sp-orbit-chip__pulse::after {
    animation: none;
}

.sp-hero-orbit:has(.sp-hero-diag.is-complete) .sp-orbit-chip__text--scan {
    display: none;
}

.sp-hero-orbit:has(.sp-hero-diag.is-complete) .sp-orbit-chip__text--done {
    display: inline;
}

.sp-hero-orbit:has(.sp-hero-diag.is-complete) .sp-orbit-editor__code::before {
    background: rgb(36 122 77 / 0.24);
    border-inline-start-color: #5cc48a;
}

@media (min-width: 40rem) {
    .sp-hero-orbit {
        --sp-orbit-band: 3rem;
    }

    .sp-orbit-editor {
        display: block;
    }

    .sp-orbit-logo--php {
        top: -0.35rem;
        inset-inline-end: calc(var(--sp-orbit-editor-offset) + 13rem);
    }

    .sp-orbit-chip--status {
        display: inline-flex;
    }
}

@media (min-width: 64rem) {
    .sp-hero-orbit {
        --sp-orbit-band: 3.25rem;
        --sp-orbit-editor-offset: -1rem;
    }

    .sp-orbit-logo--wp {
        --sp-orbit-size: 3.25rem;
        inset-inline-start: 1rem;
    }

    .sp-orbit-chip--version {
        top: 0.65rem;
        inset-inline-start: 5.25rem;
    }
}

@media (min-width: 80rem) {
    .sp-hero-orbit {
        --sp-orbit-editor-offset: -3rem;
    }
}

.sp-hero-diag-shell {
    width: 100%;
}

.sp-hero-diag-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 1.75rem;
}

.sp-hero-diag {
    --sp-hero-diag-height: 26.5rem;
    --sp-diag-tone-security: #f08a9a;
    --sp-diag-tone-perf: #e0b04a;
    --sp-diag-tone-health: #5ecf8a;
    --sp-diag-live: var(--color-accent);
    --sp-diag-ok: #5ecf8a;
    position: relative;
    display: flex;
    flex-direction: column;
    height: var(--sp-hero-diag-height);
    min-height: var(--sp-hero-diag-height);
    max-height: var(--sp-hero-diag-height);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-accent) 28%, rgb(255 255 255 / 0.08));
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 90% 55% at 100% -10%, color-mix(in srgb, var(--color-accent) 34%, transparent), transparent 58%),
        radial-gradient(ellipse 70% 45% at -5% 110%, color-mix(in srgb, var(--color-success) 22%, transparent), transparent 55%),
        linear-gradient(165deg, #221c1e 0%, var(--color-primary) 48%, #100d0e 100%);
    color: #fff;
    padding: 1.25rem 1.25rem 1.625rem;
    box-sizing: border-box;
    box-shadow:
        inset 0 1px 0 rgb(255 255 255 / 0.06),
        0 28px 56px -24px rgb(23 19 21 / 0.58),
        0 0 48px -18px color-mix(in srgb, var(--color-accent) 42%, transparent);
}

.sp-hero-diag::before {
    content: '';
    position: absolute;
    z-index: 3;
    inset-inline: 12%;
    top: 0;
    height: 2px;
    border-radius: 9999px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--color-accent) 75%, #fff),
        var(--color-accent),
        color-mix(in srgb, var(--color-accent) 75%, #fff),
        transparent
    );
    opacity: 0.9;
}

.sp-hero-diag__glow {
    position: absolute;
    inset: auto -20% -35% -20%;
    height: 55%;
    pointer-events: none;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--color-accent) 18%, transparent), transparent 70%);
    opacity: 0.7;
    transition: opacity 0.8s ease;
}

.sp-hero-diag.is-complete .sp-hero-diag__glow {
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--color-success) 20%, transparent), transparent 70%);
    opacity: 0.85;
}

.sp-hero-diag__texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgb(255 255 255 / 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.028) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.7), transparent 92%);
}

.sp-hero-diag__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    flex-direction: column;
}

.sp-hero-diag__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    height: 1.5rem;
    min-height: 1.5rem;
    margin-bottom: 0.8125rem;
    flex-shrink: 0;
    overflow: hidden;
}

.sp-hero-diag__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--color-accent) 55%, #fff);
}

.sp-hero-diag__kicker-mark {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--color-accent), color-mix(in srgb, var(--color-accent) 45%, #fff));
    box-shadow: 0 0 10px color-mix(in srgb, var(--color-accent) 55%, transparent);
}

.sp-hero-diag__flags {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 5.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.sp-hero-diag__live {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    display: none;
    align-items: center;
    gap: 0.375rem;
    border: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
    border-radius: 9999px;
    background: color-mix(in srgb, var(--color-accent) 14%, transparent);
    padding: 0.15rem 0.55rem 0.15rem 0.45rem;
    font-size: 0.625rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--color-accent) 35%, #fff);
    white-space: nowrap;
    transform: translateY(-50%);
}

.sp-hero-diag.is-scanning .sp-hero-diag__live {
    display: inline-flex;
}

.sp-hero-diag__pulse {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: var(--sp-diag-live);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 55%, transparent);
    animation: sp-pulse-dot 1.2s ease-in-out infinite;
}

.sp-hero-diag__complete {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    display: none;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.625rem;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--color-success) 35%, transparent);
    border-radius: 9999px;
    background: color-mix(in srgb, var(--color-success) 18%, transparent);
    color: var(--sp-diag-ok);
    padding: 0.15rem 0.55rem;
    white-space: nowrap;
    transform: translateY(-50%);
}

.sp-hero-diag__complete-mark {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: var(--sp-diag-ok);
    box-shadow: 0 0 8px color-mix(in srgb, var(--color-success) 55%, transparent);
}

.sp-hero-diag.is-complete .sp-hero-diag__complete {
    display: inline-flex;
}

.sp-hero-diag__domain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    line-height: 1.2;
    color: rgb(255 255 255 / 0.42);
    flex-shrink: 0;
    min-height: 0.825rem;
}

.sp-hero-diag__domain-host {
    color: color-mix(in srgb, var(--color-accent) 25%, #fff);
}

.sp-hero-diag__file {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    opacity: 0.72;
}

.sp-hero-diag__title {
    margin: 0 0 0.8125rem;
    height: 1.3em;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: rgb(255 255 255 / 0.62);
    transition: color 0.6s ease;
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sp-hero-diag.is-complete .sp-hero-diag__title {
    color: #fff;
}

.sp-hero-diag__stage {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
}

.sp-hero-diag__scan,
.sp-hero-diag__result {
    grid-area: 1 / 1;
    display: flex;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    overflow: hidden;
}

.sp-hero-diag__scan {
    opacity: 1;
    transition: opacity 0.55s ease;
}

.sp-hero-diag.is-scored .sp-hero-diag__scan {
    opacity: 0;
    pointer-events: none;
}

.sp-hero-diag__result {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
    justify-content: flex-end;
}

.sp-hero-diag.is-scored .sp-hero-diag__result {
    opacity: 1;
    pointer-events: auto;
}

.sp-hero-diag__console {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 5.25rem;
    flex-shrink: 0;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(180deg, rgb(0 0 0 / 0.22), transparent 40%),
        rgb(0 0 0 / 0.38);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    line-height: 1.55;
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

.sp-hero-diag__console::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: -40%;
    height: 40%;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent,
        color-mix(in srgb, var(--color-accent) 18%, transparent),
        transparent
    );
    opacity: 0;
}

.sp-hero-diag.is-scanning .sp-hero-diag__console::after {
    opacity: 1;
    animation: sp-diag-scan 2.8s ease-in-out infinite;
}

.sp-hero-diag__console-bar {
    display: flex;
    align-items: center;
    gap: 0.28rem;
    flex-shrink: 0;
    height: 1.15rem;
    padding: 0 0.65rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
    background: rgb(255 255 255 / 0.03);
}

.sp-hero-diag__console-bar span {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.16);
}

.sp-hero-diag__console-bar span:first-child {
    background: color-mix(in srgb, var(--color-accent) 70%, #fff);
}

.sp-hero-diag__console-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0.35rem 0.75rem 0.45rem;
}

.sp-hero-diag__console [data-hero-lines] div {
    overflow: hidden;
    color: rgb(255 255 255 / 0.72);
    margin-bottom: 1px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-hero-diag__typing {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    color: var(--sp-diag-ok);
    font-weight: 500;
}

.sp-hero-diag__typing [data-hero-typing-text] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-hero-diag__cursor {
    display: inline-block;
    width: 5px;
    height: 12px;
    margin-inline-start: 1px;
    flex-shrink: 0;
    background: var(--sp-diag-ok);
    box-shadow: 0 0 8px color-mix(in srgb, var(--color-success) 45%, transparent);
    animation: sp-cursor-blink 1.04s step-end infinite;
}

.sp-hero-diag__groups {
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
    border: 1px solid rgb(255 255 255 / 0.06);
    border-radius: var(--radius-sm);
    background: rgb(255 255 255 / 0.025);
    overflow: hidden;
}

.sp-hero-diag__group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.375rem;
    min-width: 0;
    min-height: 2.375rem;
    max-height: 2.375rem;
    padding-block: 0;
    padding-inline: 0.65rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
    transition: background 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
}



.sp-hero-diag__group:last-child {
    border-bottom: 0;
}

.sp-hero-diag__group-pip {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.18);
    flex-shrink: 0;
    transition: background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.sp-hero-diag__group[data-state='checking'] {
    background: color-mix(in srgb, var(--color-accent) 12%, transparent);
    box-shadow: inset 3px 0 0 var(--color-accent);
}

.sp-hero-diag__group[data-state='checking'] .sp-hero-diag__group-pip {
    background: var(--color-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 22%, transparent);
    animation: sp-pulse-dot 1.2s ease-in-out infinite;
}

.sp-hero-diag__group[data-state='success'] .sp-hero-diag__group-pip {
    background: var(--sp-diag-ok);
    box-shadow: 0 0 8px color-mix(in srgb, var(--color-success) 40%, transparent);
}

.sp-hero-diag__group-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8125rem;
    color: rgb(255 255 255 / 0.32);
    transition: color 0.45s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-hero-diag__group[data-state='checking'] .sp-hero-diag__group-label {
    font-weight: 600;
    color: rgb(255 255 255 / 0.78);
}

.sp-hero-diag__group[data-state='success'] .sp-hero-diag__group-label {
    font-weight: 600;
    color: rgb(255 255 255 / 0.88);
}

/* All status labels are Persian (Ø¯Ø± Ø§Ù†ØªØ¸Ø§Ø± / Ø¯Ø± Ø­Ø§Ù„ Ø¨Ø±Ø±Ø³ÛŒ... / âœ“ Ø¨Ø±Ø±Ø³ÛŒ Ø´Ø¯), so the Persian
   sans stack applies in every state. `--font-mono` has no Persian face and rendered the
   pending label in a fallback font. */
.sp-hero-diag__group-status {
    min-width: 0;
    max-width: 6.5rem;
    overflow: hidden;
    font-family: var(--font-sans);
    font-size: 0.625rem;
    color: rgb(255 255 255 / 0.22);
    text-overflow: ellipsis;
    transition: color 0.45s ease;
    white-space: nowrap;
    flex-shrink: 1;
}

.sp-hero-diag__group[data-state='checking'] .sp-hero-diag__group-status {
    font-size: 0.625rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--color-accent) 40%, #fff);
}

.sp-hero-diag__group[data-state='success'] .sp-hero-diag__group-status {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--sp-diag-ok);
}

.sp-hero-diag__scores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    align-content: stretch;
    opacity: 1;
    pointer-events: auto;
    transition: none;
}

.sp-hero-diag.is-scored .sp-hero-diag__scores {
    opacity: 1;
    pointer-events: auto;
}

.sp-hero-diag__score {
    --sp-score-tone: var(--sp-diag-tone-health);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--sp-score-tone) 28%, rgb(255 255 255 / 0.08));
    border-radius: var(--radius-sm);
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--sp-score-tone) 16%, transparent), transparent 65%),
        rgb(255 255 255 / 0.04);
    padding: 0.85rem 0.5rem;
    text-align: center;
    min-height: 0;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}

.sp-hero-diag__score[data-key='security'] {
    --sp-score-tone: var(--sp-diag-tone-security);
}

.sp-hero-diag__score[data-key='perf'] {
    --sp-score-tone: var(--sp-diag-tone-perf);
}

.sp-hero-diag__score[data-key='health'] {
    --sp-score-tone: var(--sp-diag-tone-health);
}

.sp-hero-diag__score-value {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 18px color-mix(in srgb, currentColor 35%, transparent);
}

.sp-hero-diag__score-label {
    margin: 0.45rem 0 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgb(255 255 255 / 0.52);
}

.sp-hero-diag__badge {
    position: absolute;
    z-index: 2;
    inset-inline-end: 1.25rem;
    bottom: -14px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--color-success) 22%, var(--color-border));
    border-radius: var(--radius-md);
    background: var(--color-surface);
    padding: 0.5625rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow:
        0 4px 16px rgb(23 19 21 / 0.08),
        0 0 0 1px color-mix(in srgb, var(--color-success) 8%, transparent);
}

.sp-hero-diag__badge-dot {
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 9999px;
    background: var(--color-success);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-success) 18%, transparent);
}

.sp-hero-diag__findings {
    display: flex;
    flex-direction: column;
    height: 7.125rem;
    min-height: 7.125rem;
    max-height: 7.125rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.65s ease;
    pointer-events: none;
}

.sp-hero-diag.is-scored .sp-hero-diag__findings {
    opacity: 1;
    pointer-events: auto;
}

.sp-hero-diag__finding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.375rem;
    min-height: 2.375rem;
    max-height: 2.375rem;
    overflow: hidden;
    border-bottom: 1px solid rgb(255 255 255 / 0.06);
}

.sp-hero-diag__finding:last-child {
    border-bottom: 0;
}

.sp-hero-diag__sev {
    flex-shrink: 0;
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.4;
}

.sp-hero-diag__sev--critical {
    background: rgb(180 35 24 / 0.18);
    color: #ff8f86;
}

.sp-hero-diag__sev--warning {
    background: rgb(166 106 0 / 0.18);
    color: #e0b04a;
}

.sp-hero-diag__sev--medium {
    background: color-mix(in srgb, var(--color-accent) 18%, transparent);
    color: #f08a9a;
}

.sp-hero-diag__finding-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.6875rem;
    line-height: 1.4;
    color: rgb(255 255 255 / 0.58);
}

.sp-hero-diag--paper {
    --sp-diag-tone-security: var(--color-accent);
    --sp-diag-tone-perf: var(--color-warning);
    --sp-diag-tone-health: var(--color-success);
    --sp-diag-live: var(--color-accent);
    --sp-diag-ok: var(--color-success);
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 55%),
        var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm), 0 18px 40px -28px color-mix(in srgb, var(--color-accent) 35%, transparent);
}

.sp-hero-diag--paper::before {
    opacity: 1;
}

.sp-hero-diag--paper .sp-hero-diag__glow {
    opacity: 0.35;
}

.sp-hero-diag--paper .sp-hero-diag__texture {
    background-image:
        linear-gradient(rgb(23 19 21 / 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgb(23 19 21 / 0.035) 1px, transparent 1px);
    mask-image: none;
}

.sp-hero-diag--paper .sp-hero-diag__kicker {
    color: var(--color-accent);
}

.sp-hero-diag--paper .sp-hero-diag__domain,
.sp-hero-diag--paper .sp-hero-diag__file {
    color: rgb(23 19 21 / 0.42);
}

.sp-hero-diag--paper .sp-hero-diag__domain-host {
    color: var(--color-primary);
    font-weight: 600;
}

.sp-hero-diag--paper .sp-hero-diag__live {
    color: var(--color-accent);
    border-color: color-mix(in srgb, var(--color-accent) 25%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
}

.sp-hero-diag--paper .sp-hero-diag__complete {
    background: color-mix(in srgb, var(--color-success) 10%, var(--color-surface));
    border-color: color-mix(in srgb, var(--color-success) 25%, var(--color-border));
    color: var(--color-success);
}

.sp-hero-diag--paper .sp-hero-diag__title {
    color: rgb(23 19 21 / 0.55);
}

.sp-hero-diag--paper.is-complete .sp-hero-diag__title {
    color: var(--color-primary);
}

.sp-hero-diag--paper .sp-hero-diag__stage {
    display: grid;
}

.sp-hero-diag--paper .sp-hero-diag__result {
    justify-content: stretch;
}

.sp-hero-diag--paper .sp-hero-diag__scan {
    opacity: 1;
    transition: opacity 0.45s ease;
}

.sp-hero-diag--paper.is-scored .sp-hero-diag__scan {
    opacity: 0;
    pointer-events: none;
}

.sp-hero-diag--paper .sp-hero-diag__result {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.sp-hero-diag--paper.is-scored .sp-hero-diag__result {
    opacity: 1;
    pointer-events: auto;
}

.sp-hero-diag--paper .sp-hero-diag__console {
    flex: 1 1 auto;
    height: auto;
    min-height: 5.25rem;
    border-color: color-mix(in srgb, var(--color-primary) 80%, var(--color-border));
    background:
        radial-gradient(ellipse 70% 50% at 100% 0%, color-mix(in srgb, var(--color-accent) 22%, transparent), transparent 55%),
        var(--color-primary);
    font-size: 0.75rem;
    line-height: 1.6;
}

.sp-hero-diag--paper .sp-hero-diag__console [data-hero-lines] div {
    color: rgb(255 255 255 / 0.82);
}

.sp-hero-diag--paper .sp-hero-diag__typing {
    color: #5ecf8a;
}

.sp-hero-diag--paper .sp-hero-diag__cursor {
    background: #5ecf8a;
    box-shadow: 0 0 8px color-mix(in srgb, #5ecf8a 55%, transparent);
}

.sp-hero-diag--paper .sp-hero-diag__groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
    height: 4.75rem;
    min-height: 4.75rem;
    max-height: 4.75rem;
    margin-bottom: 0;
    border-color: var(--color-border);
    background: color-mix(in srgb, var(--color-neutral) 70%, var(--color-surface));
}

.sp-hero-diag--paper .sp-hero-diag__group {
    border-bottom-color: var(--color-border);
    box-shadow: none;
}

.sp-hero-diag--paper .sp-hero-diag__group:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.sp-hero-diag--paper .sp-hero-diag__group[data-state='checking'] {
    background: color-mix(in srgb, var(--color-accent) 8%, transparent);
    box-shadow: inset 3px 0 0 var(--color-accent);
}

.sp-hero-diag--paper .sp-hero-diag__group-label {
    color: rgb(23 19 21 / 0.38);
}

.sp-hero-diag--paper .sp-hero-diag__group[data-state='checking'] .sp-hero-diag__group-label {
    color: rgb(23 19 21 / 0.78);
}

.sp-hero-diag--paper .sp-hero-diag__group[data-state='success'] .sp-hero-diag__group-label {
    color: var(--color-primary);
}

.sp-hero-diag--paper .sp-hero-diag__group-status {
    color: rgb(23 19 21 / 0.28);
}


.sp-feedback-toast {
    --sp-feedback-accent: var(--color-secondary);
    position: relative;
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.625rem;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid color-mix(in srgb, var(--color-border) 85%, var(--sp-feedback-accent));
    border-inline-start: 3px solid var(--sp-feedback-accent);
    background: color-mix(in srgb, var(--color-surface) 94%, var(--sp-feedback-accent));
    padding: 0.75rem 0.75rem 0.875rem;
    box-shadow:
        0 1px 2px rgb(23 19 21 / 0.04),
        0 10px 28px rgb(23 19 21 / 0.1);
    color: var(--color-primary);
}

.sp-feedback-toast--success {
    --sp-feedback-accent: var(--color-success);
}

.sp-feedback-toast--warning {
    --sp-feedback-accent: var(--color-warning);
}

.sp-feedback-toast--error {
    --sp-feedback-accent: var(--color-error);
}

.sp-feedback-toast--info {
    --sp-feedback-accent: var(--color-secondary);
}

.sp-feedback-toast__icon {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--sp-feedback-accent) 14%, transparent);
    color: var(--sp-feedback-accent);
}

.sp-feedback-toast__message {
    margin: 0;
    padding-block: 0.2rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.sp-feedback-toast__dismiss {
    display: inline-flex;
    width: 1.75rem;
    height: 1.75rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-secondary);
    cursor: pointer;
    transition:
        background-color 150ms ease,
        color 150ms ease;
}

.sp-feedback-toast__dismiss:hover {
    background: color-mix(in srgb, var(--color-primary) 6%, transparent);
    color: var(--color-primary);
}

.sp-feedback-toast__dismiss:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sp-feedback-toast__progress {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    transform-origin: right center;
    background: color-mix(in srgb, var(--sp-feedback-accent) 55%, transparent);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .sp-feedback-toast {
        animation: sp-feedback-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .sp-feedback-toast__progress {
        animation: sp-feedback-progress var(--sp-feedback-duration, 4500ms) linear forwards;
    }
}

@keyframes sp-feedback-in {
    from {
        opacity: 0;
        transform: translateY(-0.625rem) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes sp-feedback-progress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.sp-service-card {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    transition:
        border-color 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

.sp-service-card::before {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        115deg,
        transparent 35%,
        color-mix(in srgb, #fff 38%, transparent) 50%,
        transparent 65%
    );
    transform: translateX(120%);
    opacity: 0;
}

.sp-service-card:has(.sp-service-card__link:focus-visible) {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sp-service-card__meta {
    display: flex;
    min-height: 1.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sp-service-card__category {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-secondary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-service-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-primary);
}

.sp-service-card__link {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.sp-service-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.sp-service-card__summary {
    display: -webkit-box;
    margin: 0.5rem 0 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-secondary);
}

.sp-service-card__scope {
    margin-top: 1rem;
}

.sp-service-card__scope-label {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--color-primary);
}

.sp-service-card__scope-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sp-service-card__scope-list li {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--color-on-surface);
}

.sp-service-card__scope-list li > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-service-card__scope-icon {
    flex-shrink: 0;
    margin-top: 0.2rem;
    color: var(--color-success);
}

.sp-service-card__scope-more {
    margin: 0.375rem 0 0;
    padding-inline-start: 1.375rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-secondary);
}

.sp-service-card__footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 1.25rem;
}

.sp-service-card__specs {
    margin: 0;
}

.sp-service-card__specs > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--color-border);
    padding-block: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.sp-service-card__specs dt {
    color: var(--color-secondary);
}

.sp-service-card__specs dd {
    margin: 0;
    font-weight: 600;
    color: var(--color-primary);
    text-align: end;
}

.sp-service-card__purchase {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.sp-service-card__price {
    min-width: 0;
    transform-origin: right center;
    transition: transform 220ms ease, color 220ms ease;
}

.sp-service-card__action {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-neutral);
    padding-inline: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
    transition:
        border-color 220ms ease,
        background-color 220ms ease,
        color 220ms ease;
}

.sp-service-card__action-icon {
    transition: transform 160ms ease;
}

.sp-service-card:focus-within .sp-service-card__action {
    border-color: var(--color-primary);
    background: var(--color-surface);
}

@media (any-hover: hover) {
    .sp-service-card:hover {
        border-color: color-mix(in srgb, var(--color-accent) 48%, var(--color-border));
        box-shadow:
            0 14px 32px color-mix(in srgb, var(--color-accent) 16%, transparent),
            var(--shadow-md);
    }

    .sp-service-card:hover .sp-service-card__price {
        color: var(--color-accent);
    }

    .sp-service-card:hover .sp-service-card__action {
        border-color: var(--color-accent);
        background: var(--color-accent);
        color: var(--color-surface);
    }
}

@media (any-hover: hover) and (prefers-reduced-motion: no-preference) {
    .sp-service-card:hover {
        transform: translateY(-4px);
    }

    .sp-service-card:hover .sp-service-card__price {
        transform: scale(1.06);
    }

    .sp-service-card:hover .sp-service-card__action-icon {
        transform: translateX(-3px);
    }

    .sp-service-card:hover::before {
        animation: sp-service-shine 720ms ease;
    }
}

@keyframes sp-service-shine {
    from {
        opacity: 0;
        transform: translateX(120%);
    }
    30% {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(-120%);
    }
}

@media (max-width: 39.99rem) {
    .sp-service-card {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-service-card,
    .sp-service-card__action,
    .sp-service-card__action-icon,
    .sp-service-card__price,
    .sp-service-card::before {
        transition: none;
        animation: none;
        transform: none;
    }
}

.sp-testimonials-bleed {
    border-block: 1px solid var(--color-border);
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, color-mix(in srgb, var(--color-accent) 10%, transparent), transparent 55%),
        radial-gradient(ellipse 50% 60% at 0% 100%, color-mix(in srgb, var(--color-primary) 6%, transparent), transparent 50%),
        var(--color-surface);
}

.sp-home-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.85rem;
    color: var(--color-secondary);
    font-size: 0.8125rem;
    list-style: none;
    padding: 0;
}

.sp-home-proof li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}


.sp-lift {
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .sp-lift:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md, 0 8px 24px rgb(23 19 21 / 0.08));
        border-color: color-mix(in srgb, var(--color-accent) 28%, var(--color-border));
    }

    .sp-lift:hover .sp-media-img,
    .sp-lift:hover img {
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-lift,
    .sp-lift:hover,
    .sp-lift .sp-media-img,
    .sp-lift img {
        transition: none;
        transform: none;
    }
}

.sp-case-card .sp-media,
.sp-case-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 0;
}

.sp-case-card__media .sp-media {
    height: 100%;
    aspect-ratio: 16 / 10;
}

.sp-case-card .sp-media-img,
.sp-case-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.sp-case-card--featured {
    display: grid;
    gap: 0;
}

@media (min-width: 48rem) {
    .sp-case-card--featured {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .sp-case-card--featured .sp-case-card__media {
        aspect-ratio: auto;
        min-height: 14rem;
        height: 100%;
    }
}

.sp-case-archive__featured {
    margin-bottom: 1rem;
}

.sp-case-grid--after-feature {
    margin-top: 0.25rem;
}

@media (min-width: 48rem) {
    .sp-snap-row.sp-case-grid {
        display: grid;
        margin-inline: 0;
        padding-inline: 0;
        overflow: visible;
    }
}

.sp-lift::after {
    content: '';
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55);
    opacity: 0;
    transition: opacity 180ms ease;
}

@media (max-width: 47.99rem) {
    .sp-snap-row {
        display: flex;
        gap: 0.75rem;
        margin-inline: -16px;
        padding-inline: 16px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 16px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .sp-snap-row::-webkit-scrollbar {
        display: none;
    }

    .sp-snap-row > * {
        flex: 0 0 min(85%, 20rem);
        scroll-snap-align: start;
    }
}

/* Hero grid lines (service / marketing heroes) */
.sp-hero-grid {
    --sp-grid-x: 72%;
    --sp-grid-y: 28%;
    --sp-grid-shift-x: 0px;
    --sp-grid-shift-y: 0px;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sp-hero-grid__lines {
    position: absolute;
    inset: -8%;
    opacity: 0.55;
    background-image:
        linear-gradient(to left, color-mix(in srgb, var(--color-border) 70%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--color-border) 55%, transparent) 1px, transparent 1px);
    background-size: 3.25rem 3.25rem;
    transform: translate3d(var(--sp-grid-shift-x), var(--sp-grid-shift-y), 0);
    transition: transform 180ms ease-out;
    mask-image: radial-gradient(
        ellipse 75% 70% at var(--sp-grid-x) var(--sp-grid-y),
        #000 18%,
        transparent 78%
    );
}

.sp-hero-grid__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle 18rem at var(--sp-grid-x) var(--sp-grid-y),
            color-mix(in srgb, var(--color-accent) 16%, transparent),
            transparent 62%
        );
    transition: background-position 180ms ease-out;
}

.sp-hero-grid__fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 55%, var(--color-neutral) 100%),
        linear-gradient(to left, transparent 70%, color-mix(in srgb, var(--color-neutral) 70%, transparent) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .sp-hero-grid__lines {
        transition: none;
        transform: none;
    }
}

/* Coming-soon nav badge */
.sp-nav-soon-badge {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
    border-radius: var(--radius-full);
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: nowrap;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-accent) 14%, var(--color-surface)), color-mix(in srgb, var(--color-warning) 12%, var(--color-surface)));
    color: var(--color-accent);
    box-shadow: 0 1px 6px color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.sp-nav-soon-badge__dot {
    position: relative;
    width: 0.4rem;
    height: 0.4rem;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--color-accent);
}

.sp-nav-soon-badge__dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--color-accent);
    animation: sp-soon-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.sp-nav-soon {
    position: relative;
    gap: 0.5rem;
    flex-wrap: wrap;
    border: 1px dashed color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 5%, transparent);
}

.sp-nav-soon__label {
    flex-shrink: 0;
}

.sp-nav-soon svg {
    color: var(--color-accent);
}

@keyframes sp-soon-ping {
    75%,
    100% {
        opacity: 0;
        transform: scale(2.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sp-nav-soon-badge__dot::after {
        animation: none;
        opacity: 0;
    }
}


/* Fullscreen mobile nav (Laravel dialog parity) */
.sp-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 80;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    color: var(--color-on-surface, var(--color-primary));
}

.sp-mobile-nav:not([open]) {
    display: none;
    pointer-events: none;
}

.sp-mobile-nav[open] {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
}

.sp-mobile-nav[open] .sp-mobile-nav__panel {
    animation: sp-nav-in 220ms ease;
}

.sp-mobile-nav::backdrop {
    background: color-mix(in srgb, var(--color-primary) 55%, transparent);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.sp-mobile-nav__panel {
    display: flex;
    width: 100%;
    max-width: none;
    height: 100%;
    flex: 1 1 auto;
    flex-direction: column;
    background:
        radial-gradient(ellipse 90% 40% at 100% 0%, color-mix(in srgb, var(--color-accent) 8%, transparent), transparent 70%),
        var(--color-neutral);
}

.sp-mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 1rem;
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
    background: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

.sp-mobile-nav__brand {
    flex: 1;
    min-width: 0;
}

.sp-mobile-nav .sp-public-header__brand {
    max-width: none;
    overflow: visible;
}

.sp-mobile-nav .sp-brand-tagline {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.sp-mobile-nav__intro {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1rem 0.5rem;
}

.sp-mobile-nav__intro-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.sp-mobile-nav__intro-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-primary);
}

.sp-mobile-nav__links {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.375rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.5rem 0.75rem 1rem;
}

.sp-mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    background: var(--color-surface);
    box-shadow: var(--shadow-xs);
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.sp-mobile-nav__link-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-neutral);
    color: var(--color-primary);
}

.sp-mobile-nav__link-body {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.125rem;
}

.sp-mobile-nav__link-label {
    line-height: 1.4;
}

.sp-mobile-nav__link-hint {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-secondary);
}

.sp-mobile-nav__link-chevron {
    flex-shrink: 0;
    color: color-mix(in srgb, var(--color-secondary) 70%, transparent);
    transition: transform 140ms ease, color 140ms ease;
}

.sp-mobile-nav__link.is-active {
    border-color: color-mix(in srgb, var(--color-accent) 28%, var(--color-border));
    background: color-mix(in srgb, var(--color-accent) 6%, var(--color-surface));
    color: var(--color-accent);
    box-shadow: none;
}

.sp-mobile-nav__link.is-active .sp-mobile-nav__link-icon {
    background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
    color: var(--color-accent);
}

.sp-mobile-nav__link.is-soon {
    position: relative;
    overflow: hidden;
    cursor: default;
    gap: 0.85rem;
    border-style: dashed;
    border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
    background:
        radial-gradient(ellipse 80% 120% at 100% 0%, color-mix(in srgb, var(--color-accent) 12%, transparent), transparent 70%),
        color-mix(in srgb, var(--color-accent) 4%, var(--color-surface));
    box-shadow: 0 4px 16px color-mix(in srgb, var(--color-accent) 10%, transparent);
    color: var(--color-primary);
}

.sp-mobile-nav__link.is-soon .sp-nav-soon-badge {
    margin-inline-start: auto;
}

.sp-mobile-nav__link.is-soon .sp-mobile-nav__link-icon {
    background: linear-gradient(135deg, var(--color-accent), color-mix(in srgb, var(--color-accent) 70%, var(--color-warning, #f59e0b)));
    color: var(--color-surface);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--color-accent) 30%, transparent);
}

.sp-mobile-nav__link.is-soon .sp-mobile-nav__link-body {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.sp-mobile-nav__link.is-soon .sp-mobile-nav__link-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-mobile-nav__link.is-soon .sp-mobile-nav__link-hint {
    display: none;
}

a.sp-mobile-nav__link:hover {
    border-color: color-mix(in srgb, var(--color-primary) 16%, var(--color-border));
    box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 6%, transparent);
}

a.sp-mobile-nav__link:hover .sp-mobile-nav__link-chevron {
    color: var(--color-primary);
    transform: translateX(-2px);
}

.sp-mobile-nav__link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.sp-mobile-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--color-border);
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--color-surface) 92%, transparent);
}

.sp-mobile-nav__actions > * {
    width: 100%;
    justify-content: center;
}

@keyframes sp-nav-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

html.sp-scroll-lock,
html.sp-scroll-lock body {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .sp-mobile-nav[open] .sp-mobile-nav__panel,
    .sp-mobile-nav__link,
    .sp-mobile-nav__link-chevron {
        animation: none;
        transition: none;
    }

    a.sp-mobile-nav__link:hover .sp-mobile-nav__link-chevron {
        transform: none;
    }
}
