/* =========================================================
   UPS Homepage – refined, balanced, premium minimal
   ========================================================= */

.ups-home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* ===== Top right ===== */

.ups-home .home-top-right {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px 0;
    display: flex;
    justify-content: flex-end;
    gap: 18px;
    box-sizing: border-box;
}

.ups-home .home-top-right a {
    display: inline-block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;

    color: var(--ups-text-soft);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.2;
    opacity: 1;

    transition: color 0.18s ease, opacity 0.18s ease;
}

.ups-home .home-top-right a:hover,
.ups-home .home-top-right a:focus-visible {
    color: var(--ups-text);
    outline: none;
}

/* ===== Center ===== */

.ups-home .ups-center {
    width: 100%;
    max-width: 760px;
    margin: auto;
    padding: 18px 20px 28px;
    text-align: center;
    box-sizing: border-box;
}

/* ===== Wordmark ===== */

.ups-home .ups-wordmark {
    margin: 0 0 12px;
    font-size: 0.84rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #567264;
    opacity: 0.95;
}

/* ===== Logo ===== */

.ups-home .ups-logo {
    width: 108px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 12px;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(36, 92, 66, 0.08));
}

/* ===== Taglines ===== */

.ups-home .ups-tagline-main {
    max-width: 720px;
    margin: 0 auto 6px;
    font-size: 1.18rem;
    line-height: 1.35;
    font-weight: 600;
    color: #1F2D26;
}

.ups-home .ups-tagline-sub {
    max-width: 720px;
    margin: 0 auto 18px;
    font-size: 0.96rem;
    line-height: 1.45;
    font-weight: 400;
    color: #51695C;
}

/* ===== Input + Start ===== */

.ups-home .ups-input-block {
    max-width: 688px;
    margin: 0 auto;
}

.ups-home .ups-input {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(36, 92, 66, 0.10);
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.99rem;
    line-height: 1.35;
    color: #1F2D26;
    caret-color: #245C42;
    box-shadow: 0 8px 22px rgba(36, 92, 66, 0.06);
    outline: none;
    box-sizing: border-box;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.ups-home .ups-input:focus {
    border-color: rgba(36, 92, 66, 0.28);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(36, 92, 66, 0.06),
        0 12px 28px rgba(36, 92, 66, 0.10);
}

.ups-home .ups-input::placeholder {
    color: #6E8679;
    opacity: 1;
}

.ups-home .ups-input[aria-invalid="true"] {
    border-color: rgba(154, 47, 47, 0.32);
    box-shadow: 0 0 0 3px rgba(154, 47, 47, 0.06);
}

/* ===== Start button ===== */

.ups-home .start-button,
.ups-home .start-button-full {
    width: 100%;
    margin-top: 10px;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 16px;
    border: none;
    background: #245C42;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(36, 92, 66, 0.18);
    cursor: pointer;
    box-sizing: border-box;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.ups-home .start-button:hover,
.ups-home .start-button-full:hover {
    background: #1E4C37;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(36, 92, 66, 0.22);
}

.ups-home .start-button:active,
.ups-home .start-button-full:active {
    transform: translateY(0);
}

.ups-home .start-button:focus-visible,
.ups-home .start-button-full:focus-visible {
    outline: 3px solid rgba(36, 92, 66, 0.18);
    outline-offset: 2px;
}

/* ===== Error ===== */

.ups-home .ups-error {
    min-height: 18px;
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #9A2F2F;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.ups-home .ups-error.show {
    opacity: 1;
}

/* ===== Subtle thinking hint ===== */

.ups-home .ups-input-hint {
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #6E8679;
    opacity: 0.85;
    text-align: center;
}

/* ===== Secondary buttons ===== */

.ups-home .ups-home-actions {
    max-width: 688px;
    margin: 18px auto 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ups-home .ups-secondary-button {
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    color: #245C42;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition:
        transform 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease,
        color 0.16s ease;
}

.ups-home .ups-secondary-button:hover,
.ups-home .ups-secondary-button:focus-visible {
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.ups-home .ups-secondary-button-1 {
    background: rgba(36, 92, 66, 0.10);
}

.ups-home .ups-secondary-button-1:hover,
.ups-home .ups-secondary-button-1:focus-visible {
    background: rgba(36, 92, 66, 0.14);
}

.ups-home .ups-secondary-button-2 {
    background: rgba(36, 92, 66, 0.07);
}

.ups-home .ups-secondary-button-2:hover,
.ups-home .ups-secondary-button-2:focus-visible {
    background: rgba(36, 92, 66, 0.11);
}

.ups-home .ups-secondary-button-3 {
    background: rgba(36, 92, 66, 0.05);
    margin-top: 8px;
}

.ups-home .ups-secondary-button-3:hover,
.ups-home .ups-secondary-button-3:focus-visible {
    background: rgba(36, 92, 66, 0.08);
}

.ups-home .ups-home-actions-spacer {
    height: 6px;
}

/* ===== Install ===== */

.ups-home .ups-install-button {
    margin: 16px auto 0;
    padding: 8px 14px;
    border: 1px solid rgba(36, 92, 66, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.80);
    color: #245C42;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.ups-home .ups-install-button:hover {
    background: rgba(36, 92, 66, 0.06);
    border-color: rgba(36, 92, 66, 0.24);
}

/* ===== Closing ===== */

.ups-home .ups-home-closing {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #51695C;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .ups-home .home-top-right {
        padding: 14px 18px 0;
        gap: 12px;
    }

    .ups-home .home-top-right a {
        font-size: 0.88rem;
    }

    .ups-home .ups-center {
        padding: 18px 16px 22px;
    }

    .ups-home .ups-wordmark {
        margin-bottom: 10px;
        font-size: 0.78rem;
    }

    .ups-home .ups-logo {
        width: 94px;
        margin-bottom: 10px;
    }

    .ups-home .ups-tagline-main {
        font-size: 1.08rem;
        margin-bottom: 6px;
    }

    .ups-home .ups-tagline-sub {
        margin-bottom: 14px;
        font-size: 0.93rem;
    }

    .ups-home .ups-input,
    .ups-home .start-button,
    .ups-home .start-button-full {
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 13px;
        font-size: 0.96rem;
    }

    .ups-home .ups-input-hint {
        margin-top: 7px;
        font-size: 0.82rem;
    }

    .ups-home .ups-home-actions {
        margin-top: 14px;
        gap: 7px;
    }

    .ups-home .ups-secondary-button {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 0.86rem;
        border-radius: 10px;
    }

    .ups-home .ups-home-closing {
        margin-top: 12px;
        font-size: 0.84rem;
    }
}

/* ===== Mobile: homepage fixed, no scroll ===== */

@media (max-width: 640px) {

    body.ups-homepage {
        min-height: 100dvh;
    }

    body.ups-homepage .ups-home {
        min-height: 100dvh;
    }

    .ups-home .home-top-right {
        flex: 0 0 auto;
        padding: 12px 16px 0;
        gap: 12px;
    }

    .ups-home .home-top-right a {
        font-size: 0.88rem;
    }

    .ups-home .ups-center {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px 16px 14px;
    }

    .ups-home .ups-wordmark {
        margin-bottom: 8px;
        font-size: 0.76rem;
    }

    .ups-home .ups-logo {
        width: 82px;
        margin-bottom: 8px;
    }

    .ups-home .ups-tagline-main {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .ups-home .ups-tagline-sub {
        margin-bottom: 12px;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .ups-home .ups-input,
    .ups-home .start-button,
    .ups-home .start-button-full {
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 0.94rem;
    }

    .ups-home .ups-input-hint {
        margin-top: 6px;
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .ups-home .ups-error {
        min-height: 16px;
        margin-top: 4px;
        font-size: 0.8rem;
    }

    .ups-home .ups-home-actions {
        margin-top: 12px;
        gap: 6px;
    }

    .ups-home .ups-secondary-button {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 0.84rem;
        border-radius: 10px;
    }

    .ups-home .ups-secondary-button-3 {
        margin-top: 6px;
    }

    .ups-home .ups-install-button {
        margin-top: 12px;
        padding: 7px 12px;
        font-size: 0.84rem;
    }

    .ups-home .ups-home-closing {
        margin-top: 10px;
        font-size: 0.82rem;
        line-height: 1.35;
    }
}

@media (max-height: 700px) {
    .ups-home .ups-center {
        padding-top: 12px;
        padding-bottom: 18px;
    }

    .ups-home .ups-wordmark {
        margin-bottom: 8px;
        font-size: 0.76rem;
    }

    .ups-home .ups-logo {
        width: 88px;
        margin-bottom: 8px;
    }

    .ups-home .ups-tagline-main {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .ups-home .ups-tagline-sub {
        margin-bottom: 12px;
        font-size: 0.91rem;
    }

    .ups-home .ups-input,
    .ups-home .start-button,
    .ups-home .start-button-full {
        min-height: 46px;
        padding: 11px 14px;
    }

    .ups-home .ups-input-hint {
        margin-top: 6px;
        font-size: 0.78rem;
    }

    .ups-home .ups-secondary-button {
        min-height: 32px;
        font-size: 0.84rem;
    }

    .ups-home .ups-home-closing {
        margin-top: 10px;
    }
}

/* ===== DEMO MODE ===== */

.ups-demo-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.25);
    font-size: 0.85rem;
}

.ups-demo-badge {
    background: #2563eb;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ups-demo-text {
    color: #1e3a8a;
    opacity: 0.85;
}

/* subtiele visuele hint op probleemblok */
.described-problem.is-demo {
    border-left: 3px solid #3b82f6;
    padding-left: 10px;
}

/* =========================================================
   UPS Homepage button alignment
   Solid primary button; no gradient/gloss.
   ========================================================= */

.ups-home .start-button,
.ups-home .start-button-full {
    background: var(--ups-button-primary-bg);
    border: 1px solid var(--ups-button-primary-bg);
    color: var(--ups-button-primary-text);
    box-shadow: var(--ups-button-shadow);
}

.ups-home .start-button:hover,
.ups-home .start-button:focus-visible,
.ups-home .start-button-full:hover,
.ups-home .start-button-full:focus-visible {
    background: var(--ups-button-primary-bg-hover);
    border-color: var(--ups-button-primary-bg-hover);
    color: var(--ups-button-primary-text);
    box-shadow: var(--ups-button-shadow-hover);
    outline: none;
}


/* =========================================================
   UPS Homepage moments — relevance before action
   ========================================================= */

.ups-home .ups-home-moments {
    max-width: 688px;
    margin: -4px auto 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ups-home .ups-home-moments span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(36, 92, 66, 0.055);
    border: 1px solid rgba(36, 92, 66, 0.08);
    color: #51695C;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .ups-home .ups-home-moments {
        margin: -2px auto 14px;
        gap: 6px;
    }

    .ups-home .ups-home-moments span {
        min-height: 26px;
        padding: 5px 9px;
        font-size: 0.78rem;
    }
}

@media (max-width: 640px) {
    .ups-home .ups-home-moments {
        margin: -2px auto 10px;
        gap: 5px;
    }

    .ups-home .ups-home-moments span {
        min-height: 24px;
        padding: 4px 8px;
        font-size: 0.72rem;
    }
}

@media (max-height: 700px) {
    .ups-home .ups-home-moments {
        margin-bottom: 10px;
    }

    .ups-home .ups-home-moments span {
        min-height: 24px;
        padding: 4px 8px;
        font-size: 0.72rem;
    }
}
/* =========================================================
   Homepage inside shared app shell
   The topbar now comes from app_shell_open.php.
   ========================================================= */

body.ups-homepage .ups-content-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

body.ups-homepage .ups-content-inner .ups-home {
    flex: 1 1 auto;
    min-height: 0;
}

@media (max-width: 640px) {
    body.ups-homepage .ups-content-inner {
        padding-bottom: 16px;
    }

    body.ups-homepage .ups-content-inner .ups-home {
        height: auto;
        min-height: 0;
        overflow: visible;
    }
}


/* =========================================================
   DEFINITIVE MOBILE HOMEPAGE FIX
   Keeps the homepage vertically centered and prevents micro-scroll
   inside the shared app shell.
   ========================================================= */

@media (max-width: 900px) {
  body.ups-homepage,
  body.ups-homepage .ups-page,
  body.ups-homepage .ups-layout,
  body.ups-homepage .ups-main-content {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  body.ups-homepage .ups-main-content {
    display: flex;
    flex-direction: column;
  }
body.ups-homepage .ups-content-shell,
  body.ups-homepage .ups-content-inner,
  body.ups-homepage .ups-content,
  body.ups-homepage .ups-home {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
  }

  body.ups-homepage .ups-content-inner {
    padding-top: 0;
    padding-bottom: 0;
  }

  body.ups-homepage .ups-center {
    margin-top: auto;
    margin-bottom: auto;
  }
}


/* =========================================================
   UPrS homepage — calmer reflective positioning
   Added after the original rules so existing layout/functionality stays intact.
   ========================================================= */

.ups-home .ups-wordmark {
    margin: 0 0 10px;
    font-size: 0.78rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6E8679;
    opacity: 0.82;
}

.ups-home .ups-logo {
    width: 104px;
    margin-bottom: 14px;
}

.ups-home .ups-tagline-main {
    max-width: 720px;
    margin: 0 auto 8px;
    font-size: 1.08rem;
    line-height: 1.4;
    font-weight: 500;
    color: #1F2D26;
}

.ups-home .ups-tagline-sub {
    max-width: 720px;
    margin: 0 auto 22px;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 400;
    color: #51695C;
}

.ups-home .ups-input {
    min-height: 52px;
    box-shadow: 0 7px 20px rgba(36, 92, 66, 0.055);
}

.ups-home .start-button,
.ups-home .start-button-full {
    min-height: 50px;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 18px rgba(36, 92, 66, 0.14);
}

.ups-home .start-button:hover,
.ups-home .start-button:focus-visible,
.ups-home .start-button-full:hover,
.ups-home .start-button-full:focus-visible {
    transform: none;
    box-shadow: 0 9px 20px rgba(36, 92, 66, 0.16);
}

.ups-home .ups-home-actions,
.ups-home .ups-home-closing {
    display: none;
}

@media (max-width: 768px) {
    .ups-home .ups-wordmark {
        margin-bottom: 8px;
        font-size: 0.74rem;
    }

    .ups-home .ups-logo {
        width: 90px;
        margin-bottom: 12px;
    }

    .ups-home .ups-tagline-main {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .ups-home .ups-tagline-sub {
        margin-bottom: 16px;
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 640px) {
    .ups-home .ups-wordmark {
        margin-bottom: 7px;
        font-size: 0.72rem;
    }

    .ups-home .ups-logo {
        width: 78px;
        margin-bottom: 10px;
    }

    .ups-home .ups-tagline-main {
        font-size: 0.98rem;
        margin-bottom: 5px;
    }

    .ups-home .ups-tagline-sub {
        margin-bottom: 14px;
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .ups-home .ups-input,
    .ups-home .start-button,
    .ups-home .start-button-full {
        min-height: 44px;
    }
}
