/* Theme site styles (extracted from Blade inline CSS) */

/* Hero */
.theme-hero-title {
    font-size: clamp(0.75rem, 2.8vw, 1.875rem);
    line-height: 1.15;
}

html {
    scroll-behavior: smooth;
}

#hero {
    scroll-margin-top: 1rem;
}

/* Floating icons — side bands only, top 75% of page (from top) */
.theme-page-content {
    position: relative;
    z-index: 1;
}

.theme-page-float-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 75%;
    z-index: 15;
    pointer-events: none;
    overflow: visible;
    transition: opacity 0.2s ease-out;
}

.theme-page-float-icons.is-hidden {
    opacity: 0 !important;
    visibility: hidden;
}

.theme-page-float-icons:not(.is-scattered) .theme-page-float-icons__item {
    visibility: hidden;
}

.theme-page-float-icons__item {
    position: absolute;
    display: none;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    will-change: transform;
}

.theme-page-float-icons__bob {
    display: block;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    filter: none;
}

.theme-page-float-icons__item img {
    display: block;
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border-radius: 0;
    /* Contour shadow for SVG (box-shadow is rectangular) */
    filter: drop-shadow(0 8px 14px rgba(6, 15, 22, 0.45))
        drop-shadow(0 2px 4px rgba(6, 15, 22, 0.25));
}

@media (min-width: 768px) {
    .theme-page-float-icons__item--1,
    .theme-page-float-icons__item--2,
    .theme-page-float-icons__item--3,
    .theme-page-float-icons__item--4,
    .theme-page-float-icons__item--5,
    .theme-page-float-icons__item--6,
    .theme-page-float-icons__item--7,
    .theme-page-float-icons__item--8,
    .theme-page-float-icons__item--13,
    .theme-page-float-icons__item--14 {
        display: block;
    }
}

@media (min-width: 1024px) {
    .theme-page-float-icons__item--9,
    .theme-page-float-icons__item--10,
    .theme-page-float-icons__item--11,
    .theme-page-float-icons__item--12,
    .theme-page-float-icons__item--15,
    .theme-page-float-icons__item--16,
    .theme-page-float-icons__item--17 {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-page-float-icons__item {
        will-change: auto;
    }

    .theme-page-float-icons {
        transition: none;
    }
}

/* Demo section background (url via --theme-demo-bg) */
.theme-demo-bg {
    background-image: var(--theme-demo-bg);
    background-position: center;
    background-size: auto 100%;
    background-repeat: repeat-x;
}

/* Brand logos fade edges */
.brand-logos-fade {
    background: linear-gradient(to top right, #9dc3e5 18%, transparent);
}

.brand-logos-fade--end {
    background: linear-gradient(to left, #9dc3e5 18%, transparent);
}

/* About prose */
.theme-about-prose {
    max-width: 48rem;
    line-height: 1.75;
}

/* Testimonial company logo */
.testimonial-company-logo {
    object-fit: contain;
    background: #f8fafc;
}

/* Job card badge */
.job-card-type-badge {
    margin-left: auto;
}

/* Free Check direct download */
.theme-free-check-direct {
    position: relative;
}

/* Free Check thank-you modal */
.job-modal-panel.theme-free-check-thanks-panel {
    position: relative;
    width: min(100%, 36rem);
    max-height: none;
    overflow: hidden;
    padding: 2.75rem 2.5rem 2.85rem;
    border: 1px solid rgb(186 230 253 / 0.7);
    background-color: #eef7ff;
    background-image:
        radial-gradient(ellipse 55% 40% at 18% 22%, rgb(255 255 255 / 0.95), transparent 70%),
        radial-gradient(ellipse 50% 38% at 84% 18%, rgb(255 255 255 / 0.9), transparent 68%),
        radial-gradient(ellipse 70% 45% at 50% 100%, rgb(255 255 255 / 0.75), transparent 70%),
        radial-gradient(circle at 50% 28%, rgb(134 239 172 / 0.18), transparent 42%),
        linear-gradient(180deg, #f4faff 0%, #e8f4ff 48%, #dff0ff 100%);
    box-shadow:
        0 25px 50px -12px rgb(14 165 233 / 0.18),
        0 8px 24px -8px rgb(15 23 42 / 0.08);
}

.theme-free-check-thanks__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    background: rgb(255 255 255 / 0.78);
    backdrop-filter: blur(4px);
}

.theme-free-check-thanks {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
}

.theme-free-check-thanks__visual-wrap {
    display: grid;
    place-items: center;
    width: 12.5rem;
    height: 10rem;
    margin-bottom: 0.35rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.theme-free-check-thanks__visual {
    width: 12.5rem;
    height: 10rem;
    object-fit: contain;
    filter: none;
}

.theme-free-check-thanks__title {
    margin: 0;
    max-width: 20rem;
    font-size: 1.65rem;
    line-height: 1.25;
    font-weight: 700;
    color: #0f2744;
}

.theme-free-check-thanks__text {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.5;
    color: #5b6b7c;
}

.theme-free-check-thanks__twitter {
    margin-top: 0.85rem;
    min-width: 15.5rem;
    background: linear-gradient(180deg, #3aa0f5 0%, #1d8aef 55%, #157bdb 100%) !important;
    color: #ffffff !important;
    border: 1px solid #1474d1;
    box-shadow:
        0 10px 22px -8px rgb(21 123 219 / 0.55),
        inset 0 1px 0 rgb(255 255 255 / 0.28);
}

.theme-free-check-thanks__twitter:hover {
    background: linear-gradient(180deg, #2f96f0 0%, #157bdb 55%, #0f6dc7 100%) !important;
    color: #ffffff !important;
}

.theme-free-check-thanks__twitter .theme-twitter-btn__icon {
    color: #ffffff;
}

/* Twitter button — black stays; bird logo shimmers blue */
.theme-twitter-btn__icon {
    color: #ffffff;
    animation: theme-twitter-shimmer 2.4s ease-in-out infinite;
}

@keyframes theme-twitter-shimmer {
    0%,
    100% {
        color: #ffffff;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95))
            drop-shadow(0 0 8px rgba(56, 189, 248, 0.55));
    }

    40% {
        color: #e0f2fe;
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 1))
            drop-shadow(0 0 12px rgba(125, 211, 252, 0.95))
            drop-shadow(0 0 20px rgba(56, 189, 248, 0.8));
    }

    70% {
        color: #38bdf8;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.85))
            drop-shadow(0 0 10px rgba(56, 189, 248, 1))
            drop-shadow(0 0 18px rgba(14, 165, 233, 0.75));
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-twitter-btn__icon {
        animation: none;
        color: #ffffff;
        filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
    }
}

.theme-free-check-btn.is-loading {
    pointer-events: none;
    opacity: 0.9;
}

.theme-free-check-btn__spinner {
    display: none;
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 9999px;
    animation: theme-free-check-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.theme-free-check-btn.is-loading .theme-free-check-btn__icon {
    display: none;
}

.theme-free-check-btn.is-loading .theme-free-check-btn__spinner {
    display: inline-block;
}

.theme-free-check-btn__error {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: auto;
    min-width: 14rem;
    max-width: min(20rem, 70vw);
    margin: 0;
    padding: 0.5rem 0.7rem;
    border-radius: 0.75rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.75rem;
    line-height: 1.35;
    text-align: left;
    z-index: 30;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

@keyframes theme-free-check-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Newsletter above footer */
.theme-newsletter {
    padding-block: 0.5rem 2rem;
}

.theme-newsletter__inner {
    width: 50%;
    max-width: 50%;
    margin-inline: auto;
}

@media (max-width: 640px) {
    .theme-newsletter__inner {
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    .theme-newsletter {
        padding-block: 0.25rem 1rem;
    }
}

#newsletter-form {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

#newsletter-form input[type='email'] {
    height: 3.125rem;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

#newsletter-form button[type='submit'] {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    #newsletter-form {
        flex-direction: column;
    }

    #newsletter-form button[type='submit'] {
        width: 100%;
    }
}

/* Pricing period toggle */
.pricing-period-toggle label:has(input:checked) {
    background-color: var(--color-default-900, #0f172a);
    color: #fff;
}

.pricing-period-toggle label:not(:has(input:checked)) {
    background-color: #fff;
    color: inherit;
}

/* Careers marquee */
@keyframes careers-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.careers-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.careers-marquee-row {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

.careers-marquee {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 1.875rem;
    padding-inline-end: 1.875rem;
    will-change: transform;
    animation: careers-marquee 50s linear infinite;
}

.careers-viewport:hover .careers-marquee {
    animation-play-state: paused;
}

.testimonials-viewport:hover .testimonials-marquee {
    animation-play-state: paused;
}

.careers-slide {
    flex: 0 0 min(100vw - 3rem, 32rem);
    width: min(100vw - 3rem, 32rem);
}

@media (min-width: 768px) {
    .careers-slide {
        flex: 0 0 min(42vw, 34rem);
        width: min(42vw, 34rem);
    }
}

/* Testimonials marquee */
@keyframes testimonials-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.testimonials-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    --testimonials-gap: 1.25rem;
}

@media (min-width: 1024px) {
    .testimonials-viewport {
        --testimonials-gap: 1.875rem;
    }
}

.testimonials-marquee-row {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

.testimonials-marquee {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--testimonials-gap);
    padding-inline-end: var(--testimonials-gap);
    will-change: transform;
    animation: testimonials-marquee 100s linear infinite;
}

.testimonials-fade {
    pointer-events: none;
    position: absolute;
    inset-block: 0;
    z-index: 10;
    width: 7rem;
}

@media (min-width: 1024px) {
    .testimonials-fade {
        width: 10rem;
    }
}

.testimonials-fade--start {
    inset-inline-start: 0;
    background: linear-gradient(
        to right,
        #fff 0%,
        #fff 30%,
        rgb(255 255 255 / 0.85) 50%,
        rgb(255 255 255 / 0.45) 72%,
        transparent 100%
    );
}

.testimonials-fade--end {
    inset-inline-end: 0;
    background: linear-gradient(
        to left,
        #fff 0%,
        #fff 30%,
        rgb(255 255 255 / 0.85) 50%,
        rgb(255 255 255 / 0.45) 72%,
        transparent 100%
    );
}

.testimonials-slide {
    flex: 0 0 min(100vw - 3rem, 32rem);
    width: min(100vw - 3rem, 32rem);
}

@media (min-width: 640px) {
    .testimonials-slide {
        flex: 0 0 calc((100vw - 3rem - var(--testimonials-gap)) / 2);
        width: calc((100vw - 3rem - var(--testimonials-gap)) / 2);
    }
}

@media (min-width: 1024px) {
    .testimonials-slide {
        flex: 0 0 calc((100vw - 3rem - (2 * var(--testimonials-gap))) / 3);
        width: calc((100vw - 3rem - (2 * var(--testimonials-gap))) / 3);
    }
}

/* Job modal */
.job-modal {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 1rem;
    border: none;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    background: transparent;
}

.job-modal:not([open]) {
    display: none;
}

.job-modal[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-modal::backdrop {
    background: rgb(15 23 42 / 0.5);
}

.job-modal-panel {
    display: flex;
    flex-direction: column;
    width: min(100%, 72rem);
    max-height: min(90vh, 900px);
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--color-default-200, #e2e8f0);
    background: #fff;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.job-modal-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
}

.job-modal-header {
    width: 100%;
}

.job-modal-header-main {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.job-modal-title-row {
    width: 100%;
    justify-content: space-between;
}

.job-modal-title {
    margin: 0;
}

.job-modal-close {
    flex-shrink: 0;
}

.job-modal-meta-row {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.job-modal-meta-text {
    white-space: nowrap;
    min-width: 0;
}

.job-modal-type-badge {
    flex-shrink: 0;
    margin-left: auto;
}

.theme-hero-visual {
    position: relative;
    width: 80%;
    margin-inline: auto;
    isolation: isolate;
}

.theme-hero-dashboards {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
}

.theme-hero-dashboards__base {
    display: none;
    width: 100%;
    height: auto;
}

.theme-hero-dashboards__layer {
    position: absolute;
    display: none;
}

.theme-hero-dashboards__layer--2 {
    position: relative;
    width: 100%;
    top: auto;
    inset-inline-start: auto;
    z-index: 2;
}

.theme-hero-dashboards__panel-img {
    display: none;
    width: 100%;
    height: auto;
}

.theme-hero-dashboards__layer--3 {
    width: calc(var(--spacing, 0.25rem) * 92.5);
    height: calc(var(--spacing, 0.25rem) * 70);
    top: 19%;
    inset-inline-start: 29.5%;
    z-index: 30;
    object-fit: fill;
}

.theme-hero-dashboards__layer--4 {
    width: calc(var(--spacing, 0.25rem) * 92.5);
    height: calc(var(--spacing, 0.25rem) * 70);
    top: 13%;
    inset-inline-end: 20.5%;
    z-index: 30;
    object-fit: fill;
}

.theme-safety-overlay {
    position: relative;
    z-index: 21;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
}

.theme-safety-overlay__card {
    width: 100%;
    margin-inline: auto;
    padding: 1.875rem;
    border-radius: 1rem;
    border: 1px solid var(--color-default-200, #e2e8f0);
    background: linear-gradient(to bottom, var(--color-default-100, #f1f5f9), transparent);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

.theme-safety-overlay__inner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .theme-hero-dashboards {
        display: flex;
        align-items: center;
    }

    .theme-hero-dashboards__base {
        display: inline-block;
    }

    .theme-hero-dashboards__layer {
        display: block;
        position: absolute;
    }

    .theme-hero-dashboards__layer--2 {
        position: absolute;
        width: 80%;
        top: 8%;
        inset-inline-start: 17%;
        z-index: 2;
    }

    .theme-hero-dashboards__panel-img {
        display: block;
    }

    .theme-hero-dashboards__layer--3,
    .theme-hero-dashboards__layer--4 {
        display: block;
        position: absolute;
        z-index: 30;
    }

    /* Centered over dashboard-2, full container width of the visual */
    .theme-safety-overlay {
        position: absolute;
        left: 0;
        right: 0;
        top: 0px;
        bottom: auto;
        margin-top: 0;
        padding: 0;
        z-index: 21;
        pointer-events: none;
        align-items: flex-end;
    }

    .theme-safety-overlay__card {
        pointer-events: auto;
        width: 100%;
        max-width: none;
    }
}

/* Demo collage floating layers */
.theme-demo-visual {
    position: relative;
}

.theme-demo-visual__layer {
    display: none;
}

@media (min-width: 1024px) {
    .theme-demo-visual__layer {
        display: block;
        position: absolute;
        border-radius: 0.5rem;
        box-shadow: 20px 20px 80px #00000026;
    }

    .theme-demo-visual__layer--6 {
        width: calc(var(--spacing, 0.25rem) * 50);
        height: calc(var(--spacing, 0.25rem) * 31.5);
        top: 32%;
        inset-inline-start: 21%;
    }

    .theme-demo-visual__layer--7 {
        width: calc(var(--spacing, 0.25rem) * 50);
        height: calc(var(--spacing, 0.25rem) * 31.5);
        top: 49.5%;
        inset-inline-start: 41%;
    }

    .theme-demo-visual__layer--8 {
        width: calc(var(--spacing, 0.25rem) * 50);
        height: calc(var(--spacing, 0.25rem) * 47.5);
        top: 32%;
        inset-inline-end: 23%;
    }
}

/* Brand / press logos — max 32px tall */
.theme-logo-strip img {
    height: 32px;
    max-height: 32px;
    width: auto;
    object-fit: contain;
}

.theme-logo-strip__item {
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-brand__name {
    color: #123558;
}

.theme-feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    padding: 0.75rem 1rem;
    background: #fff;
}

.theme-feature-visual img {
    width: 100%;
    max-height: 16rem;
    object-fit: contain;
}

@media (min-width: 768px) {
    .theme-feature-visual img {
        max-height: 18rem;
    }
}

.theme-insider-logos__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 2rem;
    row-gap: 1.5rem;
    width: 100%;
}

.theme-insider-logos__item {
    height: 32px;
    max-height: 32px;
    display: inline-flex;
    justify-content: center;
    flex: 0 0 auto;
}

.theme-insider-logos__item img {
    height: auto;
    max-height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Cookie / terms consent bar */
.theme-cookie-consent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 200;
    padding: 1rem;
    pointer-events: none;
}

.theme-cookie-consent[hidden] {
    display: none !important;
}

.theme-cookie-consent__inner {
    pointer-events: auto;
    max-width: 72rem;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--color-default-200, #e2e8f0) 80%, transparent);
    background: linear-gradient(#fff9, #fff9), linear-gradient(to bottom, var(--color-default-100, #f1f5f9), transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
}

.theme-cookie-consent__text {
    margin: 0;
    color: var(--color-default-700, #334155);
    font-size: 0.95rem;
    line-height: 1.5;
}

.theme-cookie-consent__text a {
    color: var(--color-default-950, #0f172a);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.theme-cookie-consent__text a:hover {
    color: var(--color-primary, #2563eb);
}

.theme-cookie-consent__accept {
    flex-shrink: 0;
    min-width: 6.5rem;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    line-height: 1.25;
}

/* Free Check methods reveal */
.theme-free-check-methods {
    opacity: 0;
    transform: translateY(-0.85rem);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.theme-free-check-methods.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.theme-free-check-methods[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .theme-cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .theme-cookie-consent__accept {
        width: 100%;
    }
}
