/* app-home.css
   Homepage-specific sections for the redesigned SecureCare homepage
   (ported from SecureCare_Website_V3). Depends on app-layout.css for
   shared tokens/buttons. */

/* ---------- Hero ---------- */
.app-hero {
    position: relative;
    height: 545px;
    overflow: hidden;
    background: #f8fbfe;
    border-bottom: 1px solid #edf2f6;
}

.app-hero-photo {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    bottom: 0;
    width: 59%;
    background-image: url("/public/images/v3/images/mission-hero-v11.jpg");
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: right center;
    -webkit-mask-image: linear-gradient(to right,transparent 0%,rgba(0,0,0,.06) 8%,rgba(0,0,0,.18) 16%,rgba(0,0,0,.38) 26%,rgba(0,0,0,.64) 38%,rgba(0,0,0,.84) 50%,#000 62%,#000 100%);
    mask-image: linear-gradient(to right,transparent 0%,rgba(0,0,0,.06) 8%,rgba(0,0,0,.18) 16%,rgba(0,0,0,.38) 26%,rgba(0,0,0,.64) 38%,rgba(0,0,0,.84) 50%,#000 62%,#000 100%);
}

.app-hero-fade {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 31%;
    width: 38%;
    background: linear-gradient(90deg,#f8fbfe 0%,rgba(248,251,254,.99) 12%,rgba(248,251,254,.94) 24%,rgba(248,251,254,.80) 38%,rgba(248,251,254,.58) 53%,rgba(248,251,254,.34) 67%,rgba(248,251,254,.14) 81%,rgba(248,251,254,.03) 92%,rgba(248,251,254,0) 100%);
    filter: blur(10px);
    transform: scaleX(1.05);
    pointer-events: none;
}

.app-hero-swoop {
    position: absolute;
    z-index: 3;
    left: -255px;
    bottom: -250px;
    width: 1020px;
    height: 345px;
    background: #fff;
    border-radius: 50%;
    transform: rotate(-4deg);
    pointer-events: none;
}

.app-hero-wrap {
    width: min(1480px,calc(100% - 56px));
    margin: 0 auto;
    height: 100%;
    position: relative;
    z-index: 5;
}

.app-hero-copy {
    position: relative;
    z-index: 6;
    width: 46%;
    max-width: 620px;
    padding-top: 38px;
}

.app-hero-eyebrow {
    margin-bottom: 13px;
    font-size: .72rem;
    letter-spacing: .22em;
}

.app-hero-title {
    display: flex;
    flex-direction: column;
    margin: 0 0 18px;
    font-size: clamp(2.75rem,3.5vw,3.7rem);
    line-height: 1.02;
    letter-spacing: -.05em;
    font-weight: 500;
    color: #0b3568;
}

    .app-hero-title .app-orange {
        color: var(--sc-orange);
    }

.app-hero-tagline {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #082f5f;
}

.app-hero-body {
    max-width: 590px;
    margin: 0 0 18px;
    color: #506b86;
    font-size: .96rem;
    line-height: 1.52;
    font-weight: 500;
}

.app-hero-actions {
    gap: 10px;
}

    .app-hero-actions .app-btn {
        min-height: 46px;
        padding-inline: 18px;
    }

        .app-hero-actions .app-btn span {
            margin-left: 8px;
        }

.app-hero-mobile-image {
    display: none;
}

.app-hero-values {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 610px;
    max-width: 100%;
    gap: 20px;
    margin-top: 22px;
}

.app-hero-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
    color: #0b3568;
}

    .app-hero-value strong {
        font-size: .73rem;
        line-height: 1.14;
    }

.app-hero-svg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
}

    .app-hero-svg img {
        width: 23px;
        height: 23px;
        filter: brightness(0) invert(1);
    }

    .app-hero-svg.purple {
        background: #7a56d6;
    }

    .app-hero-svg.green {
        background: #22a66e;
    }

    .app-hero-svg.blue {
        background: #2a8ee0;
    }

    .app-hero-svg.blue2 {
        background: #2d79c8;
    }

@media(max-width:1100px) {
    .app-hero {
        height: 600px;
    }

    .app-hero-copy {
        width: 50%;
    }

    .app-hero-photo {
        width: 58%;
    }
}

@media(max-width:760px) {
    .app-hero {
        height: auto;
        min-height: 0;
        padding: 0;
        overflow: visible;
        background: #f8fbfe;
    }

    .app-hero-wrap {
        width: 100%;
        height: auto;
        margin: 0;
    }

    .app-hero-copy {
        width: 100%;
        max-width: none;
        padding: 28px 20px 0;
    }

    .app-hero-title {
        font-size: clamp(2.25rem,10.2vw,3rem);
    }

    .app-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
        margin: 0 0 20px;
    }

        .app-hero-actions .app-btn {
            width: 100%;
            min-height: 48px;
        }

    .app-hero-photo, .app-hero-fade, .app-hero-swoop {
        display: none;
    }

    .app-hero-mobile-image {
        display: block;
        width: calc(100% + 40px);
        height: 300px;
        margin: 0 -20px 22px;
        background-image: url("/public/images/v3/images/mission-hero-v11.jpg");
        background-size: cover;
        background-position: center center;
    }

    .app-hero-values {
        grid-template-columns: repeat(2,1fr);
        width: 100%;
    }
}

/* ---------- Who We Serve ---------- */
.app-who {
    padding: 28px 0 40px;
    background: #fff;
}

.app-who-wrap {
    width: min(1500px,calc(100% - 56px));
    margin: 0 auto;
}

.app-who-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 14px;
}

    .app-who-head .app-who-kicker {
        margin: 0 0 3px;
        color: #0b3568;
        font-size: .70rem;
        font-weight: 800;
        letter-spacing: .20em;
    }

    .app-who-head h2 {
        margin: 0;
        color: #0b3568;
        font-size: clamp(1.8rem,2.2vw,2.3rem);
        line-height: 1.02;
        font-weight: 500;
        letter-spacing: -.035em;
    }

    .app-who-head a {
        color: var(--sc-blue);
        font-weight: 700;
        font-size: .84rem;
        padding-bottom: 4px;
    }

.app-who-grid {
    display: grid;
    grid-template-columns: repeat(8,minmax(0,1fr));
    gap: 10px;
}

    .app-who-grid article {
        position: relative;
        aspect-ratio: 1.48 / 1;
        border-radius: 12px;
        overflow: hidden;
        background: #0a345f;
    }

.app-who-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.03);
}

.app-who-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,rgba(8,43,82,0) 26%,rgba(8,43,82,.10) 42%,rgba(8,43,82,.70) 68%,rgba(8,43,82,.97) 100%);
}

.app-who-icon {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
}

.app-who-grid strong {
    position: absolute;
    z-index: 2;
    left: 8px;
    right: 8px;
    bottom: 11px;
    text-align: center;
    color: #fff;
    font-size: .77rem;
    line-height: 1.05;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

@media(max-width:980px) {
    .app-who-grid {
        grid-template-columns: repeat(4,1fr);
    }
}

@media(max-width:560px) {
    .app-who-wrap {
        width: min(100% - 28px,1500px);
    }

    .app-who-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .app-who-head {
        display: block;
    }

        .app-who-head a {
            display: inline-block;
            margin-top: 8px;
        }
}

/* ---------- Platform (tabbed pillars) ---------- */
.app-platform {
    background: linear-gradient(180deg,#eef8ff,#fff);
}

.app-pillar-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin: 28px 0;
}

.app-pillar {
    border: 1px solid var(--sc-line);
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    color: var(--sc-ink);
    box-shadow: 0 6px 22px rgba(30,62,95,.06);
    min-height: 64px;
}

    .app-pillar b {
        display: block;
        font-size: 1.05rem;
        color: var(--sc-navy);
        margin-bottom: 7px;
    }

    .app-pillar span {
        color: var(--sc-muted);
        font-size: .9rem;
    }

    .app-pillar.active, .app-pillar[aria-selected="true"] {
        border-color: var(--sc-orange);
        box-shadow: 0 12px 30px rgba(244,119,33,.12);
    }

.app-product-showcase {
    display: grid;
    grid-template-columns: .42fr .58fr;
    gap: 34px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--sc-shadow);
}

.app-product-eyebrow {
    color: var(--sc-orange);
}

.app-screen-frame {
    background: #fff;
    border: 1px solid #d5e0e8;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 20px 45px rgba(18,53,87,.13);
    overflow: hidden;
}

    .app-screen-frame img {
        width: 100%;
        border-radius: 8px;
        display: block;
    }

@media(max-width:850px) {
    .app-pillar-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .app-product-showcase {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

/* ---------- Every Dollar Has a Story ---------- */
.app-dollar-story {
    background: #fff;
}

.app-money-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: start;
    margin: 36px 0 52px;
}

.app-money-step {
    text-align: center;
}

.app-money-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    color: #fff;
}

    .app-money-icon img {
        width: 37px;
        height: 37px;
        filter: brightness(0) invert(1);
    }

    .app-money-icon.orange {
        background: var(--sc-orange);
    }

    .app-money-icon.blue {
        background: var(--sc-blue);
    }

    .app-money-icon.green {
        background: var(--sc-green);
    }

    .app-money-icon.purple {
        background: var(--sc-purple);
    }

    .app-money-icon.blue2 {
        background: #2f7cc8;
    }

.app-money-step b {
    display: block;
    color: #0b315e;
    font-size: .98rem;
}

.app-money-step small {
    display: block;
    color: #60758d;
    font-size: .78rem;
    line-height: 1.35;
    margin-top: 5px;
}

.app-money-arrow {
    align-self: center;
    color: #7da1c7;
    font-size: 1.35rem;
    margin-top: 12px;
}

.app-accountability-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: center;
}

.app-accountability-card {
    padding: 18px 20px;
    border: 1px solid var(--sc-line);
    border-radius: 14px;
    margin-top: 12px;
}

    .app-accountability-card strong, .app-accountability-card span {
        display: block;
    }

    .app-accountability-card span {
        color: var(--sc-muted);
        font-size: .92rem;
        margin-top: 4px;
    }

@media(max-width:1050px) {
    .app-money-flow {
        grid-template-columns: repeat(3,1fr);
    }

    .app-money-arrow {
        display: none;
    }
}

@media(max-width:760px) {
    .app-accountability-grid {
        grid-template-columns: 1fr;
    }

    .app-money-flow {
        grid-template-columns: repeat(2,1fr);
    }
}

/* ---------- Impact ---------- */
.app-impact {
    background: #f5faff;
}

.app-impact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    align-items: center;
}

.app-impact-features {
    display: grid;
    gap: 10px;
    color: var(--sc-ink);
    font-weight: 700;
}

.app-screen-stack {
    position: relative;
    padding: 20px 0 42px;
}

.app-stack-main {
    width: 88%;
    margin-left: auto;
    border-radius: 13px;
    border: 1px solid var(--sc-line);
    box-shadow: var(--sc-shadow);
    display: block;
}

.app-stack-small {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58%;
    border-radius: 12px;
    border: 6px solid white;
    box-shadow: 0 16px 38px rgba(16,55,90,.16);
}

@media(max-width:760px) {
    .app-impact-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Build Your SecureCare ---------- */
.app-build-securecare {
    background: linear-gradient(180deg,#f7fbff 0%,#fff 100%);
    border-top: 1px solid #e4edf4;
}

.app-build-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

    .app-build-heading > p:last-child {
        color: #5c7188;
        font-size: 1.04rem;
    }

@media(max-width:760px) {
    .app-build-securecare {
        padding: 52px 0;
    }
}

/* ---------- Pricing / Build Your SecureCare grid (contact form + generator) ---------- */
.app-pricing-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(280px,.72fr) minmax(480px,1.28fr);
    gap: 54px;
    align-items: start;
}

.app-pricing-contact {
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 12px 35px rgba(24,55,88,.07);
}

.app-pricing-generator {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    display: grid;
    gap: 12px;
}

@media(max-width:900px) {
    .app-pricing-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ---------- Contact form (replaces contact-us.css for this page, matches V3 build-contact) ---------- */
#pricing #divContactForm {
    text-align: left;
}

    #pricing #divContactForm label.contact-label {
        display: block;
        width: 100%;
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--sc-navy);
        text-align: left;
        margin: 0 0 14px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--sc-line);
    }

    #pricing #divContactForm label.contact-label:not(:first-child) {
        margin-top: 26px;
    }

#pricing .app-field-label {
    display: block;
    width: 100%;
    margin: 14px 0 0;
    font-size: .82rem;
    font-weight: 700;
    color: var(--sc-navy);
    text-align: left;
}

#pricing label.app-field-label:first-of-type {
    margin-top: 14px;
}

#pricing .contact-ctrl {
    width: 100%;
    margin-top: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd8e2;
    border-radius: 7px;
    background: #fff;
    color: var(--sc-ink);
}

#pricing textarea.contact-ctrl {
    resize: vertical;
    min-height: 120px;
}

#pricing #divContactForm select.contact-ctrl,
#pricing #divContactForm select.width-100pct {
    width: 100%;
    margin-top: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd8e2;
    border-radius: 7px;
    background: #fff;
    color: var(--sc-ink);
}

#pricing .contact-btn {
    width: 100%;
    margin-top: 22px;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    background: var(--sc-orange);
    color: #fff !important;
    font-weight: 800;
    cursor: pointer;
}

    #pricing .contact-btn:hover {
        background: #dd6812;
        color: #fff !important;
    }

#divContactFormSent {
    padding: 33px;
    border: dashed;
}

/* ---------- Subscription generator (matches V3 build-config / estimate-card / build-slider) ---------- */
#pricing .sc-sub-inner {
    width: 100%;
}

#pricing #divSubscriptionTotals {
    position: static;
    padding-bottom: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    #pricing #divSubscriptionTotals.row {
        margin: 0;
    }

    #pricing #divSubscriptionTotals .sub-gen-col {
        width: 100%;
        max-width: none;
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: #fff;
        border: 1px solid var(--sc-line);
        border-radius: 18px;
        padding: 22px;
        margin: 0;
    }

#pricing .sc-under-title-text {
    color: var(--sc-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

#pricing .sc-sub-gen-money {
    color: var(--sc-green);
    font-size: 2.75rem;
    line-height: 1.05;
    margin: 5px 0;
}

#pricing .sc-sub-gen-caption {
    color: var(--sc-muted);
    font-size: .82rem;
}

#pricing .sc-sub-item {
    width: 100%;
    max-width: none;
    flex: none;
}

/* ---------- Bot-defense validation result (Cloudflare-style verified pill) ---------- */
#pricing #divValidationResult {
    margin: 14px 0 0;
}

    #pricing #divValidationResult[data-state] {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid var(--sc-bd-line);
        background: var(--sc-bd-panel);
    }

    #pricing #divValidationResult[data-state]::before {
        content: none;
    }

    #pricing #divValidationResult[data-state="verified"] {
        border-color: var(--sc-bd-ok);
        background: var(--sc-bd-ok-soft);
    }

        #pricing #divValidationResult[data-state="verified"]::before {
            content: '';
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            margin-right: 0;
            border-radius: 50%;
            background: var(--sc-bd-ok);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 11px 11px;
            flex: 0 0 auto;
        }

    #pricing #divValidationResult[data-state="challenge"],
    #pricing #divValidationResult[data-state="failed"] {
        border-color: var(--sc-bd-warn);
        background: var(--sc-bd-warn-soft);
    }

    #pricing #divValidationResult[data-state="blocked"] {
        border-color: var(--sc-bd-bad);
        background: var(--sc-bd-bad-soft);
    }

    #pricing #divValidationResult[data-state] {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        border-radius: 999px;
        border: 1px solid var(--sc-bd-line);
        background: var(--sc-bd-panel);
    }

    #pricing #divValidationResult[data-state]::before {
        content: none;
    }

    #pricing #divValidationResult[data-state="verified"] {
        border-color: var(--sc-bd-ok);
        background: var(--sc-bd-ok-soft);
    }

        #pricing #divValidationResult[data-state="verified"]::before {
            content: '';
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            margin-right: 0;
            border-radius: 50%;
            background: var(--sc-bd-ok);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 11px 11px;
            flex: 0 0 auto;
        }

    #pricing #divValidationResult[data-state="challenge"],
    #pricing #divValidationResult[data-state="failed"] {
        border-color: var(--sc-bd-warn);
        background: var(--sc-bd-warn-soft);
    }

    #pricing #divValidationResult[data-state="blocked"] {
        border-color: var(--sc-bd-bad);
        background: var(--sc-bd-bad-soft);
    }
