/* ========================================
   /software/ page
   Calm, product-first presentation in the site's own look: white and
   light sections, the site's green headings and fonts, and large device
   renders as the hero of every section. No glows, badges or tickers.
   Loaded after landingPageStyle.css and pages.css.
   ======================================== */
.sx {
    --sx-muted: #5f6b64;
    --sx-tint: #eef3f6; /* a lighter step of the site background */
    --sx-line: rgba(0, 0, 0, 0.07);
    background: white;
}

.sx-section {
    padding: 7rem 2rem;
}

.sx-section.is-tint {
    background: var(--sx-tint);
}

.sx-wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.sx-kicker {
    display: block;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.sx-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--primary);
    text-wrap: balance;
}

.sx-intro {
    max-width: 640px;
    margin: 1.1rem auto 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--sx-muted);
}

.sx-center {
    text-align: center;
}

.sx-head {
    max-width: 780px;
    margin: 0 auto 4rem;
    text-align: center;
}

/* Device renders: transparent laptop + phone images */
.sx-device {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Hero ---------- */
.sx-hero {
    padding: 9rem 2rem 6rem;
    text-align: center;
    background: linear-gradient(180deg, var(--sx-tint) 0%, white 70%);
    /* the device grows slightly on scroll; clip (not hidden) so nothing
       becomes a scroll container and the sticky showcase keeps working */
    overflow-x: clip;
}

.sx-hero h1 {
    max-width: 920px;
    margin: 0 auto;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.1;
    color: var(--primary);
    text-wrap: balance;
}

.sx-hero .hero-actions {
    justify-content: center;
    margin-top: 2.2rem;
}

.sx-hero-device {
    max-width: 1100px;
    margin: 4.5rem auto 0;
    transform: scale(var(--sx-grow, 1));
    transform-origin: 50% 30%;
    transition: transform 0.25s ease-out;
}

.sx-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 900px;
    margin: 4.5rem auto 0;
}

.sx-stat strong {
    display: block;
    font-size: 2.6rem;
    line-height: 1.1;
    color: var(--primary);
}

.sx-stat span {
    font-size: 0.95rem;
    color: var(--sx-muted);
}

/* ---------- Sticky device showcase ----------
   Desktop: texts scroll on the left; the device on the right stays put and
   cross-fades to the matching screen (software.js sets .is-active).
   Phones: every text block shows its own device image underneath. */
.sx-scrolly {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 4rem;
    align-items: start;
}

.sx-step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 78vh;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.sx-step.is-active {
    opacity: 1;
}

.sx-step h3 {
    margin-bottom: 1rem;
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    line-height: 1.2;
    color: var(--primary);
}

.sx-step > p {
    margin-bottom: 1.4rem;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--sx-muted);
}

.sx-points {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sx-points li {
    position: relative;
    padding-left: 1.4rem;
    line-height: 1.55;
}

.sx-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}

.sx-step-media {
    display: none;
}

/* The sticky column must span the whole section, or the device has no room to stick */
.sx-sticky-col {
    align-self: stretch;
}

.sx-sticky {
    position: sticky;
    top: calc(50vh - 13.5vw); /* roughly centres the device in the window */
}

.sx-stack {
    position: relative;
    aspect-ratio: 2000 / 1007;
}

.sx-stack img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-stack img.is-active {
    opacity: 1;
    transform: none;
}

.sx-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.6rem;
}

.sx-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(20, 164, 25, 0.2);
    transition: width 0.4s ease, background 0.4s ease;
}

.sx-dots span.is-active {
    width: 28px;
    background: var(--primary);
}

/* ---------- Phones row ---------- */
.sx-phones {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    max-width: 980px;
    margin: 0 auto;
}

.sx-phone figure,
.sx-phone {
    margin: 0;
    text-align: center;
}

/* Slim realistic phone frame (same look as the homepage tour) */
.sx-phone-frame {
    max-width: 250px;
    margin: 0 auto;
    padding: 5px;
    border-radius: 38px;
    background: linear-gradient(145deg, #3a4440, #0b100d);
    box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.sx-phone-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 33px;
}

.sx-phone figcaption {
    margin-top: 1.8rem;
}

.sx-phone figcaption strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
    color: var(--primary);
}

.sx-phone figcaption span {
    display: block;
    max-width: 260px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--sx-muted);
}

/* ---------- Field Records ---------- */
.sx-wide {
    max-width: 1100px;
    margin: 0 auto;
}

.sx-wide .tour-window {
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.sx-wide-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3.5rem auto 0;
    text-align: center;
}

.sx-wide-points strong {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.sx-wide-points span {
    line-height: 1.6;
    color: var(--sx-muted);
}

.sx-note {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--sx-muted);
}

/* ---------- Standards ---------- */
.sx-standards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--sx-line);
    border-left: 1px solid var(--sx-line);
}

.sx-standard {
    padding: 2rem 1.6rem;
    border-right: 1px solid var(--sx-line);
    border-bottom: 1px solid var(--sx-line);
    background: white;
}

.sx-standard h3 {
    margin-bottom: 0.3rem;
    font-size: 1.35rem;
    color: var(--primary);
}

.sx-standard small {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--sx-muted);
}

.sx-standard p {
    font-size: 0.93rem;
    line-height: 1.6;
}

.sx-standard.is-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--sx-tint);
}

.sx-standard.is-cta a {
    margin-top: 0.6rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.sx-standard.is-cta a:hover {
    text-decoration: underline;
}

/* ---------- Details ---------- */
.sx-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.5rem 3rem;
}

.sx-detail i {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: var(--primary);
}

.sx-detail h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: #333;
}

.sx-detail p {
    line-height: 1.65;
    color: var(--sx-muted);
}

/* ---------- How it works ---------- */
.sx-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: sx-step;
}

.sx-steps li {
    counter-increment: sx-step;
    padding-top: 1.4rem;
    border-top: 2px solid var(--primary);
}

.sx-steps li::before {
    content: counter(sx-step);
    display: block;
    margin-bottom: 0.8rem;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}

.sx-steps h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: #333;
}

.sx-steps p {
    line-height: 1.65;
    color: var(--sx-muted);
}

/* ---------- People + pricing ---------- */
.sx-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.sx-panel {
    padding: 2.8rem 2.5rem;
    border-radius: 24px;
    background: white;
}

.sx-panel h2 {
    margin-bottom: 1rem;
    font-size: 1.9rem;
    line-height: 1.25;
    color: var(--primary);
}

.sx-panel > p {
    margin-bottom: 1.4rem;
    line-height: 1.7;
    color: var(--sx-muted);
}

.sx-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.sx-price strong {
    font-size: 3.2rem;
    line-height: 1;
    color: var(--primary);
}

.sx-price span {
    color: var(--sx-muted);
}

.sx-panel .hero-btn {
    margin-top: 1.6rem;
}

/* ---------- Closing call to action ---------- */
.sx-final {
    padding: 7rem 2rem;
    text-align: center;
    background: var(--sx-tint);
}

.sx-final .hero-actions {
    justify-content: center;
    margin-top: 2.2rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .sx-section,
    .sx-final {
        padding: 5rem 1.5rem;
    }

    .sx-hero {
        padding: 7.5rem 1.5rem 4.5rem;
    }

    .sx-scrolly,
    .sx-split {
        grid-template-columns: 1fr;
    }

    .sx-scrolly {
        gap: 0;
    }

    .sx-sticky-col {
        display: none;
    }

    .sx-step {
        min-height: 0;
        padding: 2.5rem 0;
        opacity: 1;
    }

    .sx-step-media {
        display: block;
        margin-top: 2rem;
    }

    .sx-standards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sx-details,
    .sx-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sx-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 2rem;
    }
}

@media (max-width: 700px) {
    .sx-section,
    .sx-final {
        padding: 4rem 1.25rem;
    }

    .sx-hero {
        padding: 6.5rem 1.25rem 4rem;
    }

    .sx-hero-device {
        margin: 3rem -1.25rem 0;
    }

    .sx-phones {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .sx-wide-points,
    .sx-standards,
    .sx-details,
    .sx-steps {
        grid-template-columns: 1fr;
    }

    .sx-details,
    .sx-steps {
        gap: 2.5rem;
    }

    .sx-panel {
        padding: 2rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sx-hero-device,
    .sx-step,
    .sx-stack img {
        transition: none;
    }
}
