/* Newsletter section (includes/newsletter.php): shared by the home page and
   every internal page except About and the service pages. Moved out of
   home.css on 2026-11-14. */

/* ==========================================================================
   Newsletter (client, 2026-11-14, after the Reliant Surveyors newsletter
   strip): white band with a hairline on top. Three columns: a drawn laptop
   + phone sitting on the band's foot (left), kicker + heading + one line of
   text (middle), the sign-up form (right). Below 1100px the devices sit
   beside copy and form; on phones they stack above them.

   The devices (.dv*) are drawn in markup so they stay sharp, and every size
   is in em: one font-size on .dv scales the whole scene. One 12-second loop
   (keyframes vx-dv-*): on the laptop the monthly email lands at the top of
   the inbox and opens (banner = the home hero video, list = the services,
   the Forward button lights up); on the phone a notification arrives on the
   lock screen, an envelope sealed with the Valunxt mark opens and the email
   shows, its photo changing between three services. home.js [data-dv] runs
   the loop only while the scene is on screen and plays / pauses the video.
   Devices keep small rounded corners (they are drawings of real devices).
   ========================================================================== */
.signup {
    overflow: hidden;
    padding: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
}

/* Sizes match the Reliant Surveyors newsletter strip (measured at 1440 and
   1920px, 2026-11-14): 1296px content, columns 360 / 1fr / 390, devices
   340 x 224, 40px above and below the text: a 251px band. */
.signup__grid {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr) minmax(0, 390px);
    align-items: center;
    gap: clamp(28px, 3.4vw, 56px);
}

.signup__media {
    display: flex;
    align-self: end;
    justify-content: center;
    align-items: flex-end;
    padding-top: 26px;
}

.signup__copy,
.signup__form {
    min-width: 0;
    padding: 40px 0;
}

.signup__label {
    font-size: var(--fs-caption);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}

.signup__title {
    margin-top: 10px;
    font-size: clamp(20px, 1.6vw, 24px);   /* Reliant's strip title: 23px at 1440, 24px at 1920 */
    font-weight: var(--fw-heading);
    line-height: 1.25;
    letter-spacing: -.015em;
    color: var(--ink);
}

.signup__text {
    max-width: 32em;
    margin-top: 10px;
    font-size: var(--fs-xs);
    line-height: 1.5;
    color: var(--ink-70);
}

.signup__field-label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--fs-tag);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-55);
}

.signup__row {
    display: flex;
    align-items: stretch;
}

.signup__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    border: 1px solid #cfd6e4;
    border-right: 0;
    border-radius: var(--radius);
    background: #f7f9fd;
    font-size: var(--fs-small);
    color: var(--ink);
    outline: none;
    transition: border-color .25s var(--ease), background-color .25s var(--ease);
}

.signup__input::placeholder {
    color: var(--ink-40);
}

.signup__input:focus {
    border-color: var(--blue);
    background: var(--white);
}

.signup__input[aria-invalid="true"] {
    border-color: #c62828;
}

.signup__btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 50px;
    padding: 0 24px;
    border: 1px solid var(--blue);
    border-radius: var(--radius);
    background: var(--blue);
    color: var(--white);
    font-size: var(--fs-btn);
    font-weight: 500;
    cursor: pointer;
    transition: background-color .25s var(--ease), border-color .25s var(--ease);
}

.signup__btn svg {
    display: block;
    width: 22px;
    height: auto;
    transition: transform .25s;
}

.signup__btn:hover,
.signup__btn:focus-visible {
    border-color: var(--blue-deep);
    background: var(--blue-deep);
}

.signup__btn:hover svg,
.signup__btn:focus-visible svg {
    transform: translateX(4px);
}

.signup__form.is-sending .signup__btn {
    opacity: .7;
    pointer-events: none;
}

.signup__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.signup__msg {
    margin-top: 10px;
    font-size: var(--fs-xs);
    line-height: 1.4;
    color: var(--ink-70);
}

.signup__msg:empty {
    display: none;
}

.signup__msg.is-error {
    color: #c62828;
}

.signup__msg.is-ok {
    color: var(--blue);
}

.signup__note {
    margin-top: 10px;
    font-size: var(--fs-xs);
    color: var(--ink-55);
}

/* ---- The devices --------------------------------------------------------- */
.dv {
    position: relative;
    flex: none;
    width: 34em;
    height: 22.4em;
    font-size: 10px;            /* scales the whole drawing: 340 x 224px, as on Reliant */
    line-height: 1.3;
    color: var(--ink);
}

.dv img {
    display: block;
}

.dv__laptop {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30em;
}

.dv__screen {
    height: 19.6em;
    padding: .7em .7em 0;
    overflow: hidden;
    border-radius: 1em 1em 0 0;
    background: #0d1426;
    box-shadow: inset 0 0 0 1px #2b3554;
}

.dv__bar {
    display: flex;
    align-items: center;
    gap: .4em;
    height: 1.8em;
    padding: 0 .8em;
    background: #eef1f6;
    font-size: 1em;
    color: #6b7690;
}

.dv__bar i {
    width: .5em;
    height: .5em;
    border-radius: 50%;
    background: #cfd6e4;
}

.dv__bar span {
    margin-left: .8em;
    font-size: .75em;
}

.dv__stage {
    position: relative;
    height: calc(100% - 1.8em);
    overflow: hidden;
    background: var(--white);
}

.dv__inbox,
.dv__mail {
    position: absolute;
    inset: 0;
}

.dv__inbox {
    animation: vx-dv-inbox 12s ease-in-out infinite both;
}

.dv__row {
    display: flex;
    align-items: center;
    gap: .7em;
    height: 2.6em;
    padding: 0 1em;
    border-bottom: 1px solid #eef1f6;
}

.dv__row i {
    display: block;
    height: .5em;
    background: #e3e8f2;
}

.dv__row i:nth-child(1) {
    flex: none;
    width: 1.1em;
    height: 1.1em;
}

.dv__row i:nth-child(2) {
    flex: none;
    width: 5.6em;
}

.dv__row i:nth-child(3) {
    flex: 1 1 auto;
    background: #eef1f6;
}

.dv__row--new {
    position: relative;
    max-height: 2.6em;
    overflow: hidden;
    background: #eef2ff;
    white-space: nowrap;
    animation: vx-dv-arrive 12s ease-in-out infinite both;
}

.dv__row--new::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--blue);
}

.dv__row--new img {
    flex: none;
    width: 1.1em;
    height: 1.1em;
    object-fit: contain;
}

.dv__row--new b,
.dv__row--new span,
.dv__row--new em {
    font-size: .8em;
}

.dv__row--new b {
    flex: none;
    font-weight: 700;
}

.dv__row--new span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4a5568;
}

.dv__row--new em {
    font-style: normal;
    font-weight: 600;
    color: var(--blue);
}

.dv__mail {
    padding: .5em 1em 0;
    overflow: hidden;
    animation: vx-dv-open 12s ease-in-out infinite both;
}

.dv__from {
    display: flex;
    align-items: center;
    gap: .6em;
    padding-bottom: .5em;
    border-bottom: 1px solid #eef1f6;
}

.dv__from img {
    flex: none;
    width: auto;
    height: 1.2em;
}

.dv__who {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.dv__who b {
    font-size: .75em;
}

.dv__who small {
    font-size: .65em;
    color: #6b7690;
}

.dv__tools {
    display: flex;
    align-items: center;
    gap: .4em;
    margin-left: auto;
}

.dv__tools i {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    height: 1.3em;
    padding: 0 .4em;
    border: 1px solid #e1e6f0;
    border-radius: .2em;
    font-size: .65em;
    font-style: normal;
    font-weight: 600;
    color: #5b6782;
}

.dv__tools svg {
    width: 1.1em;
    height: 1.1em;
}

.dv__fwd {
    animation: vx-dv-fwd 12s ease-in-out infinite both;
}

/* the email banner: the home hero video under a Valunxt-blue fade */
.dv__hero {
    position: relative;
    height: 4.8em;
    margin-top: .5em;
    overflow: hidden;
    background: var(--blue-deep);
}

.dv__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
}

.dv__htxt {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .1em;
    padding: 0 .9em;
    background: linear-gradient(90deg, rgba(11, 45, 190, .94) 0%, rgba(11, 45, 190, .6) 50%, rgba(11, 45, 190, 0) 82%);
    color: var(--white);
}

.dv__htxt small {
    font-size: .6em;
    letter-spacing: .06em;
    opacity: .88;
}

.dv__htxt b {
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.dv__list {
    margin: .3em 0 0;
    padding: 0;
    list-style: none;
}

.dv__list li {
    display: flex;
    align-items: center;
    gap: .6em;
    height: 1.75em;
    border-bottom: 1px solid #eef1f6;
    white-space: nowrap;
    animation: vx-dv-li 12s ease-out infinite both;
}

.dv__list li img {
    flex: none;
    width: 1.9em;
    height: 1.25em;
    object-fit: cover;
}

.dv__list li span {
    overflow: hidden;
    font-size: .75em;
    text-overflow: ellipsis;
}

.dv__list li:nth-child(2) {
    animation-delay: .35s;
}

.dv__list li:nth-child(3) {
    animation-delay: .7s;
}

.dv__list li:nth-child(4) {
    animation-delay: 1.05s;
}

.dv__btn {
    display: inline-block;
    margin-top: .55em;
    padding: .3em .9em;
    background: var(--blue);
    font-size: .75em;
    font-weight: 600;
    color: var(--white);
}

.dv__base {
    position: relative;
    width: 34em;
    height: 1.2em;
    margin-left: -2em;
    border-radius: 0 0 1em 1em;
    background: linear-gradient(180deg, #d9dee8 0%, #b9c1d0 100%);
    box-shadow: 0 16px 24px -14px rgba(10, 18, 48, .45);
}

.dv__base::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 5.6em;
    height: .5em;
    border-radius: 0 0 .4em .4em;
    background: #a9b2c4;
    transform: translateX(-50%);
}

/* phone */
.dv__phone {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 9.2em;
    height: 18.6em;
    padding: .5em;
    border-radius: 1.8em;
    background: #0d1426;
    box-shadow: 0 20px 34px -16px rgba(10, 18, 48, .55), inset 0 0 0 1px #2b3554;
    animation: vx-dv-float 6s ease-in-out infinite;
}

.dv__pscreen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 1.4em;
    background: var(--white);
}

.dv__island {
    position: absolute;
    top: .5em;
    left: 50%;
    z-index: 6;
    width: 2.8em;
    height: .7em;
    border-radius: .6em;
    background: #0d1426;
    transform: translateX(-50%);
}

.dv__lock {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2.2em;
    background: linear-gradient(170deg, #c9d5ff 0%, #e8edfb 55%, #f6f8fd 100%);
    animation: vx-dv-lock 12s ease-in-out infinite both;
}

.dv__time {
    font-size: 2.1em;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    color: #0a1230;
}

.dv__date {
    margin-top: .3em;
    font-size: .6em;
    color: #4a5568;
}

.dv__notif {
    display: flex;
    align-items: center;
    gap: .5em;
    width: calc(100% - 1em);
    margin-top: 1.4em;
    padding: .5em;
    border-radius: .7em;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 6px 14px -8px rgba(10, 18, 48, .4);
    animation: vx-dv-notif 12s ease-in-out infinite both;
}

.dv__notif img {
    flex: none;
    width: 1.6em;
    height: 1.6em;
    border-radius: .35em;
}

.dv__notif span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.dv__notif b {
    font-size: .6em;
}

.dv__notif small {
    overflow: hidden;
    font-size: .52em;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #4a5568;
}

/* envelope */
.dv__env {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6.6em;
    height: 4.4em;
    margin: -2.2em 0 0 -3.3em;
    perspective: 20em;
    animation: vx-dv-env 12s ease-in-out infinite both;
}

.dv__envback,
.dv__envfront,
.dv__flap {
    position: absolute;
    left: 0;
    width: 100%;
}

.dv__envback {
    top: 0;
    height: 100%;
    background: #1f44d6;
}

.dv__letter {
    position: absolute;
    left: .5em;
    right: .5em;
    top: .4em;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3em;
    height: 3.6em;
    padding-top: .5em;
    background: var(--white);
    animation: vx-dv-letter 12s ease-in-out infinite both;
}

.dv__letter img {
    width: 1em;
    height: 1em;
}

.dv__letter b {
    font-size: .5em;
    color: var(--blue);
}

.dv__letter i {
    display: block;
    width: 70%;
    height: .25em;
    background: #e3e8f2;
}

.dv__envfront {
    bottom: 0;
    z-index: 3;
    height: 100%;
    background: linear-gradient(160deg, #2a52e8, #0b2dbe);
    clip-path: polygon(0 30%, 50% 62%, 100% 30%, 100% 100%, 0 100%);
}

.dv__flap {
    top: 0;
    z-index: 4;
    height: 62%;
    background: #0a249a;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: 50% 0;
    animation: vx-dv-flap 12s ease-in-out infinite both;
}

.dv__seal {
    position: absolute;
    left: 50%;
    top: 46%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 1.6em;
    height: 1.6em;
    margin: -.8em 0 0 -.8em;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    animation: vx-dv-seal 12s ease-in-out infinite both;
}

.dv__seal img {
    width: 1em;
    height: 1em;
}

/* opened email on the phone */
.dv__popen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3em;
    padding: 2em .8em .8em;
    animation: vx-dv-popen 12s ease-in-out infinite both;
}

.dv__plogo {
    width: auto;
    height: 1em;
}

.dv__ptitle {
    margin-top: .3em;
    font-size: .75em;
    font-weight: 600;
    line-height: 1.15;
}

.dv__pdate {
    font-size: .5em;
    color: #6b7690;
}

.dv__phero {
    position: relative;
    width: 100%;
    height: 5.6em;
    margin-top: .2em;
    overflow: hidden;
    background: var(--sky);
}

.dv__pimg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dv__pimg:nth-child(2) {
    animation: vx-dv-p2 12s ease-in-out infinite both;
}

.dv__pimg:nth-child(3) {
    animation: vx-dv-p3 12s ease-in-out infinite both;
}

.dv__line {
    display: block;
    width: 100%;
    height: .3em;
    margin-top: .2em;
    background: #e3e8f2;
}

.dv__line--short {
    width: 60%;
}

.dv__pbtn {
    align-self: stretch;
    margin-top: auto;
    padding: .35em 0;
    background: var(--blue);
    font-size: .6em;
    font-weight: 600;
    text-align: center;
    color: var(--white);
}

/* the loop waits (and stops) while the scene is off screen */
.dv.is-ready:not(.is-on),
.dv.is-ready:not(.is-on) * {
    animation-play-state: paused !important;
}

@keyframes vx-dv-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-.8em); }
}

@keyframes vx-dv-inbox {
    0%, 42% { opacity: 1; transform: none; }
    48%, 96% { opacity: 0; transform: translateX(-1.4em); }
    100% { opacity: 1; transform: none; }
}

@keyframes vx-dv-arrive {
    0%, 4% { max-height: 0; opacity: 0; background-color: #eef2ff; }
    10% { max-height: 2.6em; opacity: 1; background-color: #eef2ff; }
    32% { background-color: #eef2ff; }
    36%, 92% { max-height: 2.6em; opacity: 1; background-color: #d9e2ff; }
    95%, 100% { max-height: 0; opacity: 0; }
}

@keyframes vx-dv-open {
    0%, 44% { opacity: 0; transform: translateX(1.4em); }
    50%, 92% { opacity: 1; transform: none; }
    97%, 100% { opacity: 0; transform: none; }
}

@keyframes vx-dv-li {
    0%, 50% { opacity: 0; transform: translateY(.5em); }
    56%, 92% { opacity: 1; transform: none; }
    97%, 100% { opacity: 0; transform: none; }
}

@keyframes vx-dv-fwd {
    0%, 74% { border-color: #e1e6f0; background-color: transparent; color: #5b6782; }
    78%, 86% { border-color: #0b2dbe; background-color: #0b2dbe; color: #fff; }
    90%, 100% { border-color: #e1e6f0; background-color: transparent; color: #5b6782; }
}

@keyframes vx-dv-lock {
    0%, 28% { opacity: 1; }
    32%, 96% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes vx-dv-notif {
    0%, 3% { opacity: 0; transform: translateY(-3.4em); }
    9%, 22% { opacity: 1; transform: none; }
    27%, 100% { opacity: 0; transform: scale(.9); }
}

@keyframes vx-dv-env {
    0%, 26% { opacity: 0; transform: scale(.6); }
    32%, 50% { opacity: 1; transform: none; }
    55%, 100% { opacity: 0; transform: scale(1.08); }
}

@keyframes vx-dv-seal {
    0%, 33% { opacity: 1; transform: none; }
    36%, 100% { opacity: 0; transform: scale(.5); }
}

@keyframes vx-dv-flap {
    0%, 34% { z-index: 4; transform: rotateX(0deg); }
    37% { z-index: 1; }
    41%, 100% { z-index: 1; transform: rotateX(180deg); }
}

@keyframes vx-dv-letter {
    0%, 40% { transform: none; }
    48%, 100% { transform: translateY(-2.6em); }
}

@keyframes vx-dv-popen {
    0%, 50% { opacity: 0; transform: translateY(.8em); }
    56%, 92% { opacity: 1; transform: none; }
    97%, 100% { opacity: 0; transform: none; }
}

@keyframes vx-dv-p2 {
    0%, 64% { opacity: 0; transform: scale(1.08); }
    69%, 94% { opacity: 1; transform: none; }
    100% { opacity: 0; }
}

@keyframes vx-dv-p3 {
    0%, 77% { opacity: 0; transform: scale(1.08); }
    82%, 94% { opacity: 1; transform: none; }
    100% { opacity: 0; }
}

@media (max-width: 1099px) {
    .signup__grid {
        grid-template-columns: minmax(0, 370px) minmax(0, 1fr);
        column-gap: 40px;
    }

    .signup__media {
        grid-row: 1 / span 2;
    }

    .signup__copy {
        align-self: end;
        padding: 40px 0 0;
    }

    .signup__form {
        align-self: start;
        padding: 22px 0 40px;
    }

    .dv {
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .signup__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .signup__media {
        grid-row: auto;
        padding-top: 32px;
        border-bottom: 1px solid var(--line);
    }

    .signup__copy {
        padding: 28px 0 0;
    }

    .signup__form {
        padding: 20px 0 36px;
    }

    .dv {
        font-size: 9.8px;
    }

    .signup__row {
        flex-direction: column;
        gap: 10px;
    }

    .signup__input {
        border-right: 1px solid #cfd6e4;
    }

    .signup__input:focus {
        border-color: var(--blue);
    }
}

/* no loop: the opened email shows on both devices */
@media (prefers-reduced-motion: reduce) {

    .dv *,
    .dv {
        animation: none !important;
    }

    .dv__inbox,
    .dv__lock,
    .dv__env,
    .dv__pimg:nth-child(n+2) {
        opacity: 0;
    }

    .signup__input,
    .signup__btn,
    .signup__btn svg {
        transition: none;
    }
}

/* page width here, so the section works outside the home page too */
.signup .signup__grid {
    width: 100%;
    max-width: var(--max);   /* same width as every other section (client, 2026-11-16) */
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ==========================================================================
   Newsletter as a frosted glass bar (2026-11-20, client reference): the band
   is logo blue on one half and a Dubai photo on the other; the content
   sits on one light glass bar across both
   ========================================================================== */
.signup {
    position: relative;
    isolation: isolate;
    padding: 56px 0;
    border-top: 0;
    background: var(--blue);
}

.signup::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 50%;
    background: url("/assets/images/services/pv/accounting-band.webp") center / cover no-repeat;
}

.signup .signup__grid {
    width: min(calc(100% - 2 * var(--pad)), calc(var(--max) - 2 * var(--pad)));
    padding: 26px 36px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .55) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    backdrop-filter: blur(22px) saturate(1.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 30px 60px -36px rgba(2, 8, 40, .6);
}

.signup .signup__input {
    border-radius: 999px 0 0 999px;
    background: var(--white);
}

.signup .signup__btn {
    border-radius: 0 999px 999px 0;
}

@media (max-width: 899px) {
    .signup::after {
        width: 100%;
        opacity: .35;
    }

    .signup .signup__grid {
        padding: 24px 20px;
    }
}
