:root {
    --bg: #F4F5FB;
    --surface: #FFFFFF;
    --surface-alt: #ECEEF5;
    --text: #1A1E2D;
    --text-muted: #5E6478;
    --border: #D8DBE4;
    --primary: #1F378B;
    --primary-hover: #182B6E;
    --on-primary: #FFFFFF;
    --primary-text: #1F378B;
    --accent: #8799D8;
    --on-accent: #111111;
    --accent-text: #516BC6;
    --dark-band: #0E1839;
    --on-dark: #FFFFFF;
    --on-dark-muted: #B6B9C3;
    --brand-btn-bg: #FFFFFF;
    --brand-btn-text: #0E1839;
    --section-alt-bg: linear-gradient(168deg, #ECEEF5 0%, #F1F2F9 100%);
    --dark-band-bg: linear-gradient(121deg, #0E1839 0%, #132153 100%);
    --brand-band-bg: #1F378B;
    --hero-bg: linear-gradient(121deg, #0E1839 0%, #132153 100%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.75rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.375rem);
    font-weight: 600;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Josefin Sans', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    h5 {
        font-size: 1rem;
    }

    a[href^="mailto:"],
    a[href^="tel:"],
    .cookie-consent-link {
        font-size: 0.875rem;
        word-break: break-word;
    }
}

.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.25rem 1rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    font-size: 14px;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-text {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-link {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
}

.cookie-consent-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.cookie-consent-btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
}

.cookie-consent-btn-primary:hover {
    background-color: var(--primary-hover);
}

.cookie-consent-btn-secondary {
    background-color: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.cookie-consent-btn-secondary:hover {
    background-color: var(--border);
}

.cookie-consent-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    font-size: 14px;
}

.cookie-consent-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 24, 57, 0.6);
}

.cookie-consent-modal-dialog {
    position: relative;
    background: var(--surface);
    max-width: 500px;
    width: calc(100% - 2rem);
    margin: 5rem auto;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cookie-consent-modal-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.cookie-consent-modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.cookie-consent-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cookie-consent-option {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.cookie-consent-modal-actions {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 640px) {
    .cookie-consent-content {
        flex-direction: row;
        align-items: center;
    }

    .cookie-consent-actions {
        flex-direction: row;
        width: auto;
    }
}

/* ===== header ===== */
.mobile-menu-overlay {
    display: none;
}

.mobile-menu-overlay.open {
    display: flex !important;
}

html {
    scroll-behavior: smooth;
}

/* ===== hero ===== */
#hero input::placeholder,
#hero textarea::placeholder {
    color: #a0aec0;
}

#hero .hyphens-auto {
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ===== about ===== */
#about {
    overflow: hidden;
}

#about p {
    hyphens: auto;
}

#about h2 {
    hyphens: auto;
}

/* ===== features ===== */
#features {
    overflow: hidden;
}

#features * {
    hyphens: auto;
}

/* ===== showcase ===== */
#showcase {
    hyphens: auto;
}

#showcase .js-showcase-item {
    box-shadow: 0 10px 25px -5px rgba(14, 24, 57, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}

#showcase-modal.active,
#showcase-video-modal.active {
    display: flex;
}

/* ===== how_it_works ===== */
#how-it-works {
    overflow: hidden;
}

#how-it-works h2,
#how-it-works h3,
#how-it-works p {
    hyphens: auto;
}

@media(max-width:767px) {
    #how-it-works h2 {
        font-size: 16px;
        line-height: 1.25;
    }

    #how-it-works h3 {
        font-size: 14px;
        line-height: 1.2;
    }
}

/* ===== faq ===== */
#faq {
    overflow: hidden;
}

#faq .js-faq-item.active {
    border-color: #8799D8;
    box-shadow: 0 10px 25px -5px rgba(31, 55, 139, 0.08);
}

#faq .js-faq-item.active .js-faq-icon {
    transform: rotate(180deg);
    background-color: #1F378B;
    color: #FFFFFF;
}

#faq .js-faq-item.active .js-faq-icon i {
    color: #FFFFFF;
}

/* ===== contact ===== */
#contact {
    overflow: hidden;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #94A3B8;
}

#contact input:-webkit-autofill,
#contact textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #132153 inset;
    -webkit-text-fill-color: #FFFFFF;
}

/* ===== footer ===== */
#footer {
    overflow: hidden;
}

#footer a {
    outline: none;
}