/* Styles for the standalone pages (/book-a-demo/ and /software/).
   They load landingPageStyle.css first for the navbar, footer, product-tour
   frames, steps and stats band; this file only adds what's new. */

.page-main {
    --ink: #10241a;
    --muted: #4f5f56;
    --line: rgba(16, 60, 24, 0.1);
    padding-top: 80px; /* clears the fixed navbar */
}

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: rgba(20, 164, 25, 0.08);
    border: 1px solid rgba(20, 164, 25, 0.18);
    color: #0f7a13;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-title {
    margin: 1rem 0;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
}

.page-title-accent {
    background: linear-gradient(90deg, #14a419 0%, #5cbf1f 55%, #98e02a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-lead {
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--muted);
}

.page-section {
    padding: 5rem 2rem;
}

.page-section.is-white {
    background: white;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-section-head {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.page-section-head h2 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--ink);
}

.page-section-head p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-primary {
    background: #0d7f12;
    color: white;
    border: none;
    box-shadow: 0 8px 20px -8px rgba(13, 127, 18, 0.6);
    cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-2px);
    background: #14a419;
}

.btn-secondary {
    background: white;
    color: #0d7f12;
    border: 1px solid rgba(20, 164, 25, 0.35);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -10px rgba(16, 60, 24, 0.35);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* ========================================
   Book a demo
   ======================================== */
.demo {
    padding: 4rem 2rem 5rem;
    background:
        radial-gradient(50% 60% at 85% 10%, rgba(152, 224, 42, 0.18), transparent 70%),
        radial-gradient(40% 50% at 0% 100%, rgba(20, 164, 25, 0.1), transparent 70%),
        var(--background);
}

.demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3.5rem;
    align-items: start;
    max-width: 1150px;
    margin: 0 auto;
}

.demo-intro {
    padding-top: 1rem;
}

.demo-next {
    margin: 2rem 0;
    padding: 0;
    list-style: none;
    counter-reset: demo-step;
}

.demo-next li {
    position: relative;
    padding: 0 0 1.4rem 3.2rem;
    counter-increment: demo-step;
}

.demo-next li::before {
    content: counter(demo-step);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
}

/* Dashed line joining the numbered steps */
.demo-next li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.07rem;
    top: 2.4rem;
    bottom: 0.2rem;
    border-left: 2px dashed rgba(20, 164, 25, 0.3);
}

.demo-next strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--ink);
    font-size: 1.02rem;
}

.demo-next span {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.demo-direct {
    padding: 1.2rem 1.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}

.demo-direct p {
    margin-bottom: 0.8rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.demo-direct-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
}

.demo-direct-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0d7f12;
    font-weight: 600;
    text-decoration: none;
}

.demo-direct-links a:hover {
    text-decoration: underline;
}

.demo-card {
    padding: 2.2rem;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -35px rgba(16, 60, 24, 0.45);
}

.demo-card h2 {
    margin-bottom: 0.4rem;
    font-size: 1.5rem;
    color: var(--ink);
}

.demo-card-sub {
    margin-bottom: 1.6rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.form-field {
    margin-bottom: 1.15rem;
}

.form-field label,
.form-legend {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
}

.form-field .optional {
    font-weight: 400;
    color: #6b7a71;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(16, 60, 24, 0.2);
    border-radius: 10px;
    background: #fbfdfb;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
    min-height: 96px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 164, 25, 0.15);
}

.form-field.has-error input {
    border-color: #d93025;
}

.form-error {
    display: none;
    margin-top: 0.35rem;
    color: #c5221f;
    font-size: 0.85rem;
}

.form-field.has-error .form-error {
    display: block;
}

.form-hint {
    margin-top: 0.35rem;
    color: #6b7a71;
    font-size: 0.82rem;
}

/* "What do you need help with?" option pills */
.form-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    border: none;
}

.form-option {
    position: relative;
}

/* The real checkbox stays in the page for keyboard and screen-reader users,
   but tiny and invisible (it must not inherit the text-field width) */
.form-option input,
.form-field .form-option input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.form-option span {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 60, 24, 0.2);
    background: #fbfdfb;
    font-size: 0.88rem;
    color: #2c3a31;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.form-option input:checked + span {
    background: #0d7f12;
    border-color: #0d7f12;
    color: white;
}

.form-option input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hidden from people; bots tend to fill it in */
.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-submit {
    width: 100%;
    margin-top: 0.4rem;
    padding: 1rem;
    font-size: 1.05rem;
}

.form-submit[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.form-privacy {
    margin-top: 1rem;
    color: #6b7a71;
    font-size: 0.82rem;
    line-height: 1.55;
}

.form-privacy a {
    color: #0d7f12;
}

.form-alert {
    display: none;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: #fdecea;
    color: #8c1d18;
    font-size: 0.92rem;
    line-height: 1.55;
}

.form-alert.is-visible {
    display: block;
}

.form-alert a {
    color: inherit;
    font-weight: 600;
}

.demo-success {
    text-align: center;
    padding: 1.5rem 0.5rem;
}

.demo-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.6rem;
}

.demo-success h2 {
    margin-bottom: 0.6rem;
}

.demo-success p {
    margin-bottom: 1.4rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ========================================
   Software page
   ======================================== */
.sw-hero {
    padding: 4rem 2rem 5rem;
    background:
        radial-gradient(50% 60% at 85% 0%, rgba(152, 224, 42, 0.2), transparent 70%),
        radial-gradient(40% 50% at 0% 100%, rgba(20, 164, 25, 0.1), transparent 70%),
        var(--background);
    overflow: hidden;
}

.sw-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
}

.sw-hero .btn-row {
    margin-top: 2rem;
}

.sw-hero-note {
    margin-top: 1rem;
    color: #6b7a71;
    font-size: 0.88rem;
}

/* Screenshot composition: browser window + optional phone */
.sw-shot {
    position: relative;
    padding: 0 6% 9% 0;
}

.sw-shot .tour-window {
    box-shadow: 0 50px 90px -40px rgba(16, 60, 24, 0.5), 0 0 0 6px rgba(255, 255, 255, 0.55);
}

.sw-shot .tour-phone {
    right: 0;
    bottom: 0;
    width: 24%;
    transform: none;
}

/* Standards covered */
.sw-standards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.sw-standard {
    padding: 1.6rem 1.5rem;
    border-radius: 18px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px -28px rgba(16, 60, 24, 0.4);
}

.sw-standard h3 {
    font-size: 1.2rem;
    color: var(--ink);
}

.sw-standard-figures {
    display: flex;
    gap: 1.5rem;
    margin: 0.9rem 0;
}

.sw-standard-figures strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1.1;
    color: #0d7f12;
}

.sw-standard-figures span {
    font-size: 0.82rem;
    color: #6b7a71;
}

.sw-standard p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Short subtitle on cards that don't show category/requirement counts */
.sw-standard .sw-standard-tag {
    margin: 0.35rem 0 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0d7f12;
}

.sw-footnote {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7a71;
}

/* Alternating feature rows */
.sw-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 6rem;
}

.sw-feature:last-child {
    margin-bottom: 0;
}

.sw-feature.is-flipped .sw-feature-text {
    order: 2;
}

.sw-feature-text h3 {
    margin: 0.9rem 0 0.8rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.sw-feature-text > p {
    margin-bottom: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
}

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

.sw-points li {
    position: relative;
    padding-left: 1.6rem;
    line-height: 1.55;
    color: #2c3a31;
    font-size: 0.95rem;
}

.sw-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-mask: radial-gradient(circle, transparent 0 0.18rem, black 0.2rem);
    mask: radial-gradient(circle, transparent 0 0.18rem, black 0.2rem);
}

.sw-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-style: italic;
    color: #6b7a71;
}

/* Small feature cards (no screenshot) */
.sw-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.sw-card {
    padding: 1.6rem 1.5rem;
    border-radius: 18px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 16px 36px -28px rgba(16, 60, 24, 0.4);
}

.sw-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.1rem;
}

.sw-card h3 {
    margin-bottom: 0.45rem;
    font-size: 1.08rem;
    color: var(--ink);
}

.sw-card p {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--muted);
}

/* People + software band */
.sw-people {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 24px;
    background:
        radial-gradient(60% 120% at 0% 0%, rgba(152, 224, 42, 0.22), transparent 60%),
        linear-gradient(135deg, #0e2a14 0%, #13511b 100%);
    color: white;
}

.sw-people h2 {
    margin: 1rem 0 0.8rem;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    line-height: 1.2;
    color: white;
}

.sw-people p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.sw-people .page-eyebrow {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #c9f27c;
}

.sw-people-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sw-people-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
    font-size: 0.95rem;
}

.sw-people-list i {
    margin-top: 0.2rem;
    color: #c9f27c;
}

/* Pricing summary */
.sw-pricing {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.4rem;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -40px rgba(16, 60, 24, 0.45);
}

.sw-pricing h2 {
    margin: 0.9rem 0 0.6rem;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    color: var(--ink);
}

.sw-pricing p {
    line-height: 1.7;
    color: var(--muted);
}

.sw-price {
    text-align: center;
    padding: 1.6rem;
    border-radius: 16px;
    background: rgba(20, 164, 25, 0.06);
}

.sw-price small {
    display: block;
    color: #6b7a71;
}

.sw-price strong {
    display: block;
    margin: 0.2rem 0;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0d7f12;
}

.sw-price .btn-primary {
    margin-top: 1rem;
}

/* FAQ (re-uses the homepage .faq-item look) */
.page-faq {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Closing call to action */
.page-cta {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    background:
        radial-gradient(60% 100% at 50% 0%, rgba(152, 224, 42, 0.2), transparent 70%),
        white;
    border: 1px solid var(--line);
}

.page-cta h2 {
    margin-bottom: 0.7rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--ink);
}

.page-cta p {
    max-width: 600px;
    margin: 0 auto 1.6rem;
    color: var(--muted);
    line-height: 1.7;
}

.page-cta .btn-row {
    justify-content: center;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1000px) {
    .demo-grid,
    .sw-hero-grid,
    .sw-feature,
    .sw-people,
    .sw-pricing {
        grid-template-columns: 1fr;
    }

    .sw-hero-grid {
        gap: 2.5rem;
    }

    .sw-feature {
        gap: 2rem;
        margin-bottom: 4.5rem;
    }

    /* Text first on small screens, whichever side it sits on wider ones */
    .sw-feature.is-flipped .sw-feature-text {
        order: 0;
    }

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

    .sw-people {
        padding: 2.2rem 1.6rem;
    }
}

@media (max-width: 640px) {
    .page-main {
        padding-top: 64px;
    }

    .page-section,
    .demo,
    .sw-hero {
        padding: 3rem 1rem;
    }

    .demo-card {
        padding: 1.5rem 1.2rem;
    }

    .sw-standards,
    .sw-cards {
        grid-template-columns: 1fr;
    }

    .sw-pricing {
        padding: 1.6rem 1.2rem;
    }

    .btn-row .btn-primary,
    .btn-row .btn-secondary {
        flex: 1 1 100%;
    }
}
