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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--body-font);
    font-size: var(--body-font-size);
    line-height: 1.7;
    color: #263746;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.container {
    width: min(100% - 32px, var(--container-width));
    margin-inline: auto;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--button-radius);
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.btn-outline {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: #fff;
}

.idle-popup {
    display: none;
}

.idle-popup.is-visible {
    display: block;
}

.idle-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 25, 40, .55);
    z-index: 9998;
}

.idle-popup-dialog {
    position: fixed;
    z-index: 9999;
    left: 50%;
    top: 50%;
    width: min(92%, 520px);
    transform: translate(-50%, -50%);
    padding: 38px;
    border-radius: var(--card-radius);
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .20);
}

.idle-popup-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 32px;
    cursor: pointer;
}

.idle-popup-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
