﻿:root {
    --navisafe-red: #ef493d;
    --navisafe-red-dark: #d83d33;
    --navisafe-blue: #2f5fbe;
    --navisafe-navy: #35424e;
    --navisafe-text: #303b46;
    --navisafe-muted: #68727c;
    --navisafe-border: #a8aeb4;
    --navisafe-panel: #f3e6e7;
    --navisafe-white: #ffffff;
    --navisafe-error-bg: #fff1f0;
    --navisafe-error-border: #d7473f;
    --navisafe-success-bg: #edf8f1;
    --navisafe-success: #287a45;
    --page-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--navisafe-white);
    color: var(--navisafe-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page-shell {
    flex: 1;
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 72px 24px 64px;
}

.login-section {
    width: min(100%, var(--page-width));
    margin: 0 auto;
    text-align: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 32px;
}

.brand-mark {
    position: relative;
    width: 54px;
    height: 54px;
    overflow: hidden;
    background: var(--navisafe-red);
    border-radius: 4px;
}

.brand-wave {
    position: absolute;
    right: -11px;
    bottom: 7px;
    width: 52px;
    height: 23px;
    background: var(--navisafe-white);
    border-radius: 50%;
    transform: rotate(-11deg);
}

.brand-compass {
    position: absolute;
    top: 14px;
    left: 20px;
    width: 14px;
    height: 14px;
    background: var(--navisafe-white);
    border-radius: 50%;
}

.brand-name {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -1.5px;
}

.brand-navi {
    color: var(--navisafe-red);
}

.brand-safe {
    color: var(--navisafe-navy);
}

.access-form {
    width: min(100%, 390px);
    margin: 0 auto;
}

.access-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--navisafe-text);
    font-size: 1rem;
    font-weight: 600;
}

.access-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--navisafe-border);
    background: var(--navisafe-white);
    color: var(--navisafe-text);
    text-align: center;
    outline: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.access-form input:focus {
    border-color: var(--navisafe-blue);
    box-shadow: 0 0 0 3px rgba(47, 95, 190, 0.16);
}

.access-form button {
    min-width: 150px;
    min-height: 44px;
    margin-top: 20px;
    padding: 10px 24px;
    border: 0;
    border-radius: 2px;
    background: var(--navisafe-blue);
    color: var(--navisafe-white);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.access-form button:hover {
    background: #244f9f;
}

.access-form button:active {
    transform: translateY(1px);
}

.access-form button:focus-visible,
.contact-sales-button:focus-visible,
.learn-more-link:focus-visible,
.site-footer a:focus-visible {
    outline: 3px solid rgba(47, 95, 190, 0.35);
    outline-offset: 3px;
}

.form-message {
    min-height: 24px;
    margin: 8px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.error-message:not(:empty) {
    padding: 9px 12px;
    border-left: 4px solid var(--navisafe-error-border);
    background: var(--navisafe-error-bg);
    color: #a52b25;
    text-align: left;
}

.login-form {
    margin-top: 4px;
}

.login-form label {
    margin-top: 16px;
    text-align: left;
}

.validated-company {
    margin-bottom: 22px;
    padding: 12px 14px;
    border-left: 4px solid var(--navisafe-success);
    background: var(--navisafe-success-bg);
    text-align: left;
}

.validated-company span {
    display: block;
    color: var(--navisafe-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.validated-company strong {
    display: block;
    margin-top: 2px;
    color: var(--navisafe-success);
}

.access-form .text-button {
    min-width: auto;
    min-height: auto;
    margin-top: 16px;
    padding: 0;
    background: transparent;
    color: var(--navisafe-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
}

.access-form .text-button:hover {
    background: transparent;
    color: #244f9f;
    text-decoration: underline;
}

.product-message {
    position: relative;
    margin-top: 48px;
    padding: 34px 42px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--navisafe-panel);
    text-align: left;
}

.message-icon {
    position: absolute;
    top: 18px;
    right: 20px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 5px solid var(--navisafe-white);
    border-radius: 6px;
    background: var(--navisafe-red);
    color: var(--navisafe-white);
    font-size: 1.2rem;
}

.product-message h2 {
    max-width: 590px;
    margin: 0 55px 18px 0;
    color: var(--navisafe-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 4vw, 2.45rem);
    font-weight: 500;
    line-height: 1.08;
}

.product-message p {
    max-width: 610px;
    margin: 0 0 22px;
    color: #4e5964;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.learn-more-link,
.contact-sales-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--navisafe-red);
    color: var(--navisafe-white);
    font-weight: 700;
    text-decoration: none;
}

.learn-more-link:hover,
.contact-sales-button:hover {
    background: var(--navisafe-red-dark);
}

.contact-sales-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.contact-sales-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 31, 38, 0.62);
}

.contact-sales-section {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 0;
    padding: 42px 34px 36px;
    border-radius: 14px;
    background: var(--navisafe-white);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.close-contact-sales {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navisafe-muted);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.close-contact-sales:hover {
    color: var(--navisafe-navy);
}

body.modal-open {
    overflow: hidden;
}

.contact-sales-section h2 {
    margin: 0 0 14px;
    color: var(--navisafe-navy);
    font-size: 2rem;
}

.contact-sales-section p {
    max-width: 620px;
    margin: 0 auto 24px;
    color: var(--navisafe-muted);
}

.contact-sales-form {
    width: min(100%, 520px);
    margin: 0 auto;
    text-align: left;
}

.contact-sales-form label {
    display: block;
    margin: 18px 0 8px;
    color: var(--navisafe-text);
    font-weight: 600;
}

.contact-sales-form input,
.contact-sales-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--navisafe-border);
    background: var(--navisafe-white);
    color: var(--navisafe-text);
    font: inherit;
    outline: none;
    resize: vertical;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.contact-sales-form input {
    min-height: 46px;
}

.contact-sales-form textarea {
    min-height: 130px;
}

.contact-sales-form input:focus,
.contact-sales-form textarea:focus {
    border-color: var(--navisafe-blue);
    box-shadow: 0 0 0 3px rgba(47, 95, 190, 0.16);
}

.contact-sales-form .contact-sales-button {
    display: flex;
    margin: 22px auto 0;
    border: 0;
    cursor: pointer;
}

.contact-sales-success {
    max-width: 520px;
    margin: 0 auto;
    padding: 18px 20px;
    border-left: 4px solid var(--navisafe-success);
    background: var(--navisafe-success-bg);
    color: var(--navisafe-success);
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
}

.site-footer {
    background: var(--navisafe-white);
}

.footer-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    font-weight: 700;
}

.footer-navigation span {
    width: 2px;
    height: 22px;
    background: var(--navisafe-red);
}

.footer-navigation a {
    color: var(--navisafe-text);
    text-decoration: none;
}

.footer-navigation a:hover {
    color: var(--navisafe-blue);
    text-decoration: underline;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 48px;
    background: var(--navisafe-navy);
    color: var(--navisafe-white);
    font-size: 0.92rem;
}

.footer-bar p {
    margin: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .page-shell {
        padding: 42px 18px 48px;
    }

    .brand {
        margin-bottom: 26px;
    }

    .product-message {
        margin-top: 38px;
        padding: 30px 24px;
    }

    .message-icon {
        position: static;
        margin-bottom: 18px;
    }

    .product-message h2 {
        margin-right: 0;
    }

    .footer-navigation {
        flex-wrap: wrap;
    }

    .footer-bar {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 18px;
        text-align: center;
    }
}
