@font-face {
    font-family: "Inter";
    src: url("fonts/inter-v19-latin-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter-v19-latin-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Titillium Web";
    src: url("fonts/titillium-web-v18-latin-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Titillium Web";
    src: url("fonts/titillium-web-v18-latin-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

:root {
    --white: #ffffff;
    --lightgrey: #f0f0f0;
    --darkgrey: #bebebe;
    --text: #333333;
    --darkblue: #1a315d;
    --blue: #225dd7;
    --border: #d8dce5;
    --shadow: 0 12px 28px rgba(26, 49, 93, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: "Titillium Web", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

a {
    color: var(--blue);
    text-decoration: none;
}

    a:hover {
        color: var(--darkblue);
    }

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

h1, h2, h3, h4, .brand-mark {
    font-family: "Inter", Arial, sans-serif;
    color: var(--darkblue);
}

strong {
    font-family: inherit;
    font-weight: 700;
    color: var(--darkblue);
}

h2 {
    font-size: 32px;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.topbar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--darkgrey);
    background: var(--white);
    font-size: 0.8em;
}

.topbar-inner,
.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-inner {
    justify-content: flex-end;
    min-height: 62px;
}

.header-inner {
    justify-content: space-between;
}

.it-unipi-link {
    color: var(--blue);
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
    font-size: 1em;
}

.unipi-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--blue);
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
    font-size: 1em;
    line-height: 1;
}

.unipi-link__seal {
    width: 36px;
    height: auto;
}

.unipi-link__text {
    letter-spacing: -0.02em;
}

.unipi-link__arrow {
    width: 16px;
    height: auto;
}

.it-unipi-link:hover,
.unipi-link:hover {
    color: var(--darkblue);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--darkgrey);
}

.header-inner {
    min-height: 82px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: inherit;
}

.brand-mark {
    width: 64px;
    height: 64px;
    border: 2px solid var(--darkblue);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.brand-logo {
    width: 500px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.no-menu .site-nav {
    display: none;
}

.no-menu .menu-toggle {
    display: none;
}

.brand-kicker {
    display: block;
    font-size: 0.85rem;
    color: var(--blue);
}

.brand-text strong {
    display: block;
    font-size: 1.55rem;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

    .site-nav a {
        color: var(--darkblue);
        font-weight: 700;
    }

.nav-link {
    font-size: 1.125rem;
}

#main-menu .nav-link {
    font-weight: 600;
    color: var(--darkblue);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--darkblue);
    background: var(--white);
    color: var(--darkblue);
    padding: 0.7rem 1rem;
    border-radius: 0.5rem;
    font: inherit;
}

.hero {
    padding: 5rem 0 4rem;
    background: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.identity-content h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

.identity-content .intro-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--darkblue);
}

.identity-content ul {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.identity-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

    .identity-content li::before {
        content: "●";
        color: var(--blue);
        position: absolute;
        left: 0;
        font-size: 0.8em;
    }

.blue-bullets {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

    .blue-bullets li {
        margin-bottom: 0.5rem;
        position: relative;
        padding-left: 1.5rem;
    }

        .blue-bullets li::before {
            content: "●";
            color: var(--blue);
            position: absolute;
            left: 0;
            font-size: 0.8em;
        }

.identity-image img {
    width: 100%;
    height: auto;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

.lead {
    font-size: 1.2rem;
    max-width: 60ch;
}

.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
}

.support-link-block {
    margin-top: 1.6rem;
}

.support-link-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.support-link {
    font-weight: 700;
    min-width: 0;
}

.support-tooltip {
    position: relative;
    display: inline-flex;
}

.support-tooltip-trigger {
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid var(--blue);
    border-radius: 50%;
    background: var(--white);
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

    .support-tooltip-trigger:hover,
    .support-tooltip-trigger:focus-visible {
        border-color: var(--darkblue);
        color: var(--darkblue);
        outline: none;
    }

.support-tooltip-content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    transform: translateX(-50%);
    width: min(300px, 72vw);
    max-width: calc(100vw - 2rem);
    background: #173666;
    color: var(--white);
    font-size: 0.82rem;
    line-height: 1.35;
    padding: 0.55rem 0.7rem;
    border-radius: 0.4rem;
    box-shadow: 0 8px 20px rgba(23, 54, 102, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease;
    z-index: 30;
}

    .support-tooltip-content::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        border: 6px solid transparent;
        border-top-color: #173666;
    }

.support-tooltip:hover .support-tooltip-content,
.support-tooltip:focus-within .support-tooltip-content {
    opacity: 1;
    visibility: visible;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.3rem;
    border-radius: 0;
    font-weight: 700;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

    .btn-primary:hover {
        background: #1a53c8;
        color: #fff;
    }

.btn-secondary {
    background: var(--white);
    color: var(--darkblue);
    border: 1px solid var(--border);
}

    .btn-secondary:hover {
        color: #225dd7;
    }

.hero-card,
.card,
.stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.hero-card {
    overflow: hidden;
}

    .hero-card img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        background: var(--lightgrey);
    }

.hero-card-body {
    padding: 1.25rem;
}

.section {
    padding: 4.5rem 0;
}

    .section.alt {
        background: var(--lightgrey);
    }

.section-heading {
    margin-bottom: 1.5rem;
}

    .section-heading h2,
    .split h2 {
        font-size: clamp(1.8rem, 3vw, 2.8rem);
        margin: 0;
    }

.cards {
    display: grid;
    gap: 1.25rem;
}

.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 1.4rem;
}

    .card h3 {
        margin-top: 0;
    }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.feature-list {
    display: grid;
    gap: 1rem;
}

.feature-item {
    background: var(--white);
    border-left: 4px solid var(--blue);
    padding: 1rem 1rem 1rem 1.2rem;
    border-radius: 0.5rem;
}

    .feature-item strong,
    .feature-item span {
        display: block;
    }

.recovery-form {
    display: grid;
    gap: 0.75rem;
    padding-top: 0.7rem;
}

.activation-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
}

.activation-copy {
    max-width: 56ch;
}

    .activation-copy h1 {
        font-size: clamp(2rem, 3.8vw, 3rem);
        margin: 0 0 1rem;
    }

.activation-highlight {
    background: #eef4ff;
    border-left: 4px solid var(--blue);
    padding: 0.75rem 0.9rem;
    margin: 0 0 1rem;
}

    .activation-highlight strong {
        display: block;
        margin-bottom: 0.2rem;
    }

    .activation-highlight p {
        margin: 0;
        font-size: 0.95em;
    }

.recovery-form label {
    font-weight: 700;
    color: var(--blue);
}

.recovery-form input[type="text"],
.recovery-form input[type="email"] {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border: 1px solid var(--border);
    font: inherit;
    background: var(--white);
}

.recovery-form input:focus {
    border-color: var(--blue);
    outline: none;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.3rem;
}

    .checkbox-row input {
        width: 1rem;
        height: 1rem;
    }

.recovery-form .btn {
    margin-top: 0.5rem;
    justify-self: start;
    border-radius: 0;
    border: 0;
}

.assist-accordion {
    margin-top: 1.4rem;
}

.assist-accordion-item {
    border-bottom: 1px solid #4a4a4a;
}

    .assist-accordion-item summary {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        color: var(--darkblue);
        font-family: inherit;
        font-size: 1em;
        font-weight: 700;
        padding: 1.35rem 0;
    }

        .assist-accordion-item summary::-webkit-details-marker {
            display: none;
        }

        .assist-accordion-item summary::after {
            content: "+";
            color: var(--darkblue);
            font-weight: 400;
            font-size: clamp(1.35rem, 2.2vw, 1.85rem);
            line-height: 1;
        }

    .assist-accordion-item[open] summary::after {
        content: "\2212";
    }

.assist-accordion-content {
    padding: 0.1rem 0 1.5rem;
    max-width: 72ch;
}

.notification-page {
    max-width: 760px;
}

    .notification-page h1 {
        font-size: clamp(2rem, 3.8vw, 3rem);
        margin: 0 0 1rem;
    }

    .notification-page p {
        margin: 0 0 1.5rem;
    }

.faq-page {
    max-width: 980px;
}

    .faq-page h1 {
        font-size: clamp(2rem, 3.8vw, 3rem);
        margin: 0 0 1rem;
    }

    .faq-page > p {
        max-width: 72ch;
        margin: 0 0 2rem;
    }

.faq-topic-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 2.5rem;
}

.faq-topic-link {
    display: block;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--blue);
    background: var(--white);
    color: var(--darkblue);
    font-family: "Inter", Arial, sans-serif;
    font-weight: 700;
    box-shadow: var(--shadow);
}

    .faq-topic-link:hover {
        color: var(--blue);
    }

.faq-section + .faq-section {
    margin-top: 2.5rem;
}

.faq-section h2 {
    margin: 0 0 1rem;
}

.faq-section .assist-accordion {
    margin-top: 0;
}

.faq-section .assist-accordion-item:first-child {
    border-top: 1px solid #4a4a4a;
}

.faq-section .assist-accordion-content p:first-child {
    margin-top: 0;
}

.faq-section .assist-accordion-content p:last-child {
    margin-bottom: 0;
}

.alert {
    padding: 1.15rem 1.25rem;
    border: 1px solid transparent;
    border-left-width: 4px;
    box-shadow: var(--shadow);
    line-height: 1.45;
}

    .alert + .alert {
        margin-top: 1.25rem;
    }

.alert-success {
    background: #eef8f0;
    border-color: #71b883;
    color: #1f4d2f;
}

.alert-warning {
    background: #fff7e6;
    border-color: #d9a514;
    color: #7a5600;
}

.alert-danger {
    background: #fdeeee;
    border-color: #cf3d3d;
    color: #8f1d1d;
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    vertical-align: baseline;
    font-weight: 700;
}

    .login-link:hover {
        color: var(--darkblue);
    }

.ms-2 {
    margin-left: 0.5rem;
}

.icon {
    display: inline-block;
    flex: 0 0 auto;
    fill: currentColor;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stat {
    padding: 1.5rem;
    text-align: center;
}

    .stat strong {
        display: block;
        font-size: 2rem;
    }

.meta {
    color: #667085;
    margin-bottom: 0.5rem;
}

.site-footer {
    border-top: 1px solid var(--darkgrey);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 1.5rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li + li {
    margin-top: 0.5rem;
}

.footer-legal {
    margin-top: 1.6rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--border);
}

    .footer-legal p {
        margin: 0;
        text-align: right;
        font-size: 0.9rem;
        color: #5f6f8c;
    }

/* WP block styles */
.wp-block-aab-accordion-block {
    box-shadow: none;
}

.wp-block-file a {
    font-size: 18px;
}

a.wp-block-file__button.wp-element-button {
    display: none;
}

@media (max-width: 900px) {
    .hero-grid,
    .identity-grid,
    .split,
    .three-cols,
    .stats-grid,
    .faq-topic-nav,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .identity-content {
        order: 1;
    }

    .identity-image {
        order: 2;
    }

    .brand-logo {
        width: 100%;
    }

    .topbar-inner {
        min-height: 54px;
    }

    .it-unipi-link {
        font-size: 0.95em;
    }

    .unipi-link {
        gap: 0.35rem;
        font-size: 0.95em;
    }

    .unipi-link__seal {
        width: 30px;
    }

    .unipi-link__arrow {
        width: 14px;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--darkgrey);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

        .site-nav.is-open {
            display: flex;
        }

    .menu-toggle {
        display: inline-flex;
    }

    .support-link-row {
        align-items: flex-start;
    }

    .support-tooltip {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
    }

    .support-tooltip-content {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        display: none;
        margin-top: 0.5rem;
        width: min(280px, calc(100vw - 2rem));
        max-width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: none;
    }

        .support-tooltip-content::after {
            display: none;
        }

    .support-tooltip:hover .support-tooltip-content,
    .support-tooltip:focus-within .support-tooltip-content {
        display: block;
    }
}
