﻿/* =========================
   Global layout helpers
   ========================= */
.container-xl {
    width: min(1280px, 92%);
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 28px);
}

.section {
    padding-block: clamp(72px, 10vh, 128px);
}

.section-sm {
    padding-block: clamp(56px, 8vh, 96px);
}

.section-lg {
    padding-block: clamp(96px, 12vh, 160px);
}

/* Soft background gradient used site-wide */
.bg-radial-soft {
    background: radial-gradient(800px 600px at 20% 10%, rgba(0,163,255,.18), transparent), radial-gradient(800px 600px at 80% 90%, rgba(106,90,205,.18), transparent);
}

/* =========================
   Header fixes (padding on desktop)
   ========================= */
.header-glass {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255,255,255,.72);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.dark .header-glass {
    background: rgba(0,0,0,.50);
    border-bottom-color: rgba(255,255,255,.08);
}

/* Desktop nav items: padding for air and better click targets */
.header-glass .nav-link {
    display: inline-block;
    padding: 10px 14px; /* <-- Extra padding on desktop */
    border-radius: 12px;
    transition: background .2s ease, color .2s ease;
}

    .header-glass .nav-link:hover {
        background: rgba(255,255,255,.10);
    }

.dark .header-glass .nav-link:hover {
    background: rgba(255,255,255,.06);
}

/* Active link helper (set via JS on pricing page) */
.nav-active {
    color: #00A3FF !important;
    opacity: 1 !important;
}

/* Mobile menu is hidden by default; shown via JS .hidden toggle */
#mobileMenu.hidden {
    display: none;
}

/* =========================
   Cards, buttons, badges
   ========================= */
.glass {
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(255,255,255,.60);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 10px 28px rgba(0,163,255,0.13);
    border-radius: 20px;
}

.dark .glass {
    background-color: rgba(0,0,0,.48);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 10px 28px rgba(0,0,0,0.35);
}

.card-hover {
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}

    .card-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 50px rgba(2,12,25,.12);
    }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 16px;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,.10);
}

.btn-primary {
    background: #00A3FF;
    color: #06121f;
    box-shadow: 0 10px 28px rgba(0,163,255,.25);
}

    .btn-primary:hover {
        filter: brightness(1.06);
    }

.btn-ghost {
    background: transparent;
    color: inherit;
}

    .btn-ghost:hover {
        background: rgba(255,255,255,.06);
    }

.dark .btn-ghost:hover {
    background: rgba(255,255,255,.06);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(255,255,255,.10);
}

/* =========================
   Pricing visuals
   ========================= */
.price-old {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    color: #E5484D;
}

.dark .price-old {
    color: #ef4444;
}

.price-now {
    color: #00A3FF;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dark .price-now {
    color: #7dd3fc;
}

/* EUR companion: distinct font & color */
@font-face {
    font-family: 'EURMark';
    src: local('Inter'), local('system-ui');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.eur-note {
    display: block;
    margin-top: 4px;
    font-family: 'EURMark', system-ui, sans-serif;
    font-size: 13px;
    color: #7aa7ff;
    opacity: .95;
}

.dark .eur-note {
    color: #9ec5ff;
}

/* =========================
   Tooltips (accessible)
   ========================= */
.tooltip {
    position: relative;
    cursor: help;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

.tooltip-icon, .tooltip-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    min-width: 18px;
    padding: 0 6px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    color: #0a84ff;
    background: rgba(0,0,0,.06);
    border: 1px solid rgba(255,255,255,.14);
}

.dark .tooltip-icon, .dark .tooltip-tag {
    background: rgba(255,255,255,.08);
    color: #7dd3fc;
}

.tooltip-panel {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    width: min(300px, 86vw);
    padding: 10px 12px;
    background: rgba(17,20,26,.95);
    color: #f1f5f9;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 60;
}

.dark .tooltip-panel {
    background: rgba(15,18,26,.98);
    color: #e7eaf0;
    border-color: rgba(255,255,255,.10);
}

.tooltip:hover .tooltip-panel,
.tooltip:focus-within .tooltip-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* =========================
   Reveal fallback (if needed)
   ========================= */
.reveal-zoom {
    opacity: 0;
    transform: translateY(12px) scale(.99);
    will-change: transform, opacity;
}

/* =========================
   Misc
   ========================= */
img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}



/* Theme toggle icon visibility and states */
.theme-toggle {
    color: inherit;
}

    .theme-toggle svg {
        display: inline-block;
        vertical-align: middle;
    }

    /* Default: Sun visible, Moon dimmed (light theme) */
    .theme-toggle .icon-sun {
        opacity: 1;
        color: #facc15; /* yellow-400 */
    }

    .theme-toggle .icon-moon {
        opacity: .5;
        color: #7dd3fc; /* sky-300 */
    }

/* Dark theme active: Moon visible, Sun dimmed */
.dark .theme-toggle .icon-sun {
    opacity: .5;
}

.dark .theme-toggle .icon-moon {
    opacity: 1;
}

/* If you rely on .active instead of .dark (JS toggles .active on the button) */
.theme-toggle.active .icon-sun {
    opacity: .5;
}

.theme-toggle.active .icon-moon {
    opacity: 1;
}

/* Ensure icons are not inheriting transparent colors from parent */
.theme-toggle .icon-sun path,
.theme-toggle .icon-sun circle,
.theme-toggle .icon-moon path {
    stroke: currentColor;
}
