/* =====================================================================
   PeopleOS website — shared design system
   Tokens, layout, header/footer and the components several modules use
   (module tiles, event cards, resource cards, chips, forms, toasts).
   Page-specific styles live with their module: Modules/<Name>/<name>.css
   ===================================================================== */

:root {
    --po-navy: #121c45;
    --po-ink: #0e1630;
    --po-ink-2: #39425e;
    --po-muted: #5d6683;
    --po-blue: #2f4cf0;
    --po-blue-600: #2440d6;
    --po-sky: #eef2ff;
    --po-gold: #ffb931;
    --po-gold-600: #f0a612;
    --po-teal: #0f9f91;
    --po-teal-50: #e3f7f4;
    --po-violet: #6250d6;
    --po-coral: #e5484d;
    --po-line: #e3e7f0;
    --po-bg: #f6f8fc;

    --po-radius: 14px;
    --po-radius-lg: 20px;
    --po-shadow: 0 1px 2px rgba(14, 22, 48, .05), 0 4px 16px -6px rgba(14, 22, 48, .08);
    --po-shadow-lg: 0 2px 4px rgba(14, 22, 48, .04), 0 24px 48px -20px rgba(14, 22, 48, .22);

    --po-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- base ---------- */
html { scroll-padding-top: 110px; }

body {
    font-family: var(--po-font);
    color: var(--po-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--po-blue); }
a:hover { color: var(--po-blue-600); }

h1, h2, h3, h4 { letter-spacing: -.015em; }

.icon { flex-shrink: 0; vertical-align: -0.15em; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 2000;
    padding: .6rem 1rem;
    border-radius: 10px;
    background: var(--po-navy);
    color: #fff;
}

.skip-link:focus { top: 1rem; color: #fff; }

:focus-visible { outline: 3px solid rgba(47, 76, 240, .45); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
    font-weight: 700;
    border-radius: 12px;
    padding: .6rem 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-lg { padding: .85rem 1.5rem; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; border-radius: 10px; }
.btn:active { transform: translateY(1px); }

.btn-brand { background: var(--po-blue); color: #fff; border: 1px solid var(--po-blue); box-shadow: 0 8px 20px -10px rgba(47, 76, 240, .7); }
.btn-brand:hover, .btn-brand:focus { background: var(--po-blue-600); border-color: var(--po-blue-600); color: #fff; box-shadow: 0 12px 24px -10px rgba(47, 76, 240, .75); }

.btn-gold { background: var(--po-gold); color: var(--po-navy); border: 1px solid var(--po-gold); }
.btn-gold:hover, .btn-gold:focus { background: var(--po-gold-600); border-color: var(--po-gold-600); color: var(--po-navy); }

.btn-ghost { background: #fff; color: var(--po-ink); border: 1px solid var(--po-line); }
.btn-ghost:hover, .btn-ghost:focus { border-color: var(--po-blue); color: var(--po-blue); background: #fff; }

.btn-outline-brand { background: transparent; color: var(--po-blue); border: 1.5px solid var(--po-blue); }
.btn-outline-brand:hover, .btn-outline-brand:focus { background: var(--po-blue); color: #fff; }

.btn-outline-light:hover { color: var(--po-navy); }

.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(12px);
    transition: box-shadow .25s;
}

.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(14, 22, 48, .35); }

.announce-bar {
    background: var(--po-navy);
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
    padding: .45rem 0;
    text-align: center;
}

.announce-tag {
    padding: .05rem .5rem;
    border-radius: 99px;
    background: var(--po-gold);
    color: var(--po-navy);
    font-weight: 800;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.announce-link { color: var(--po-gold); font-weight: 700; text-decoration: none; white-space: nowrap; }
.announce-link:hover { color: #fff; }

.site-header .navbar { padding: .85rem 0; border-bottom: 1px solid var(--po-line); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-word { font-size: 1.35rem; font-weight: 600; color: var(--po-ink); letter-spacing: -.02em; }
.brand-word strong { font-weight: 800; color: var(--po-blue); }
.brand-light .brand-word { color: #fff; }
.brand-light .brand-word strong { color: var(--po-gold); }

.site-header .nav-link {
    font-weight: 600;
    color: var(--po-ink-2);
    padding: .5rem .9rem !important;
    border-radius: 10px;
}

.site-header .nav-link:hover, .site-header .nav-link.show { color: var(--po-blue); background: var(--po-sky); }
.site-header .nav-link.active { color: var(--po-blue); }
.site-header .dropdown-toggle::after { vertical-align: .15em; border-top-width: .35em; opacity: .6; }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-actions .btn { white-space: nowrap; }
.nav-login { color: var(--po-ink); text-decoration: none; font-weight: 700; }

/* Laptop widths: the full "Start 14-day free trial" label crowds the menu, so drop "Start". */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .cta-start { display: none; }
    .site-header .nav-link { padding: .5rem .6rem !important; }
}
.nav-login:hover { color: var(--po-blue); }

.navbar-toggler { border: 0; padding: .5rem; display: grid; gap: 5px; box-shadow: none !important; }
.toggler-bar { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--po-ink); }

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .75rem .25rem .25rem;
    border: 1px solid var(--po-line);
    border-radius: 99px;
    background: #fff;
    font-weight: 700;
    color: var(--po-ink);
}

.simple-menu {
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius);
    box-shadow: var(--po-shadow-lg);
    padding: .5rem;
    min-width: 220px;
}

.simple-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    border-radius: 8px;
    padding: .55rem .75rem;
    font-weight: 600;
    color: var(--po-ink-2);
}

.simple-menu .dropdown-item:hover { background: var(--po-sky); color: var(--po-blue); }
.simple-menu .dropdown-item .icon { color: var(--po-muted); }

/* mega menu */
.mega-menu {
    left: 0;
    right: 0;
    margin-top: 0 !important;
    border: 0;
    border-top: 1px solid var(--po-line);
    border-radius: 0 0 var(--po-radius-lg) var(--po-radius-lg);
    box-shadow: 0 30px 60px -30px rgba(14, 22, 48, .35);
    padding: 1.75rem 0;
}

.mega-heading {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--po-muted);
    margin-bottom: .75rem;
}

.mega-link {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .6rem .7rem;
    margin: 0 -.7rem;
    border-radius: 12px;
    color: var(--po-ink);
    font-weight: 700;
    text-decoration: none;
}

.mega-link .icon { margin-top: .15rem; color: var(--po-blue); }
.mega-link small { display: block; font-weight: 500; color: var(--po-muted); font-size: .82rem; }
.mega-link:hover { background: var(--po-sky); color: var(--po-blue); }

.mega-feature {
    padding: 1.25rem;
    border-radius: var(--po-radius);
    background: linear-gradient(150deg, var(--po-navy), #26357a);
    color: rgba(255, 255, 255, .8);
}

.mega-feature-tag { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--po-gold); }
.mega-feature-title { color: #fff; font-weight: 800; margin: .35rem 0; }
.mega-feature-text { font-size: .875rem; }
.mega-feature-link { color: var(--po-gold); font-weight: 700; text-decoration: none; font-size: .9rem; }
.mega-all { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 700; text-decoration: none; }

/* ---------- sections & typography ---------- */
.section { padding: 5.5rem 0; }
.section-tint { background: var(--po-bg); }

.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }

.section-kicker {
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--po-blue);
    margin-bottom: .75rem;
}

.kicker-light { color: var(--po-gold); }

.section-title {
    font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    margin-bottom: 1rem;
}

.section-lead { font-size: 1.12rem; color: var(--po-muted); line-height: 1.7; }

.page-hero {
    padding: 4.5rem 0 3rem;
    background:
        radial-gradient(700px 320px at 10% -10%, rgba(47, 76, 240, .10), transparent 70%),
        radial-gradient(600px 300px at 95% 0%, rgba(255, 185, 49, .14), transparent 70%),
        var(--po-bg);
    border-bottom: 1px solid var(--po-line);
}

.page-hero-sm { padding: 3rem 0 2.5rem; }

.page-title {
    font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    max-width: 900px;
    margin-bottom: 1rem;
}

.page-lead { font-size: 1.15rem; color: var(--po-muted); max-width: 720px; line-height: 1.7; }

.breadcrumb { font-size: .875rem; margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--po-muted); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--po-blue); }
.breadcrumb-item.active { color: var(--po-ink); font-weight: 600; }

.prose { font-size: 1.05rem; line-height: 1.8; color: var(--po-ink-2); max-width: 760px; }
.prose h3 { font-size: 1.35rem; font-weight: 800; color: var(--po-ink); margin: 2.25rem 0 .75rem; }
.prose p { margin-bottom: 1.15rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--po-blue); }

.prose blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--po-gold);
    border-radius: 0 12px 12px 0;
    background: #fff8e8;
    color: var(--po-ink);
    font-weight: 600;
}

/* ---------- chips, segmented control, search ---------- */
.chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .95rem;
    border: 1px solid var(--po-line);
    border-radius: 99px;
    background: #fff;
    color: var(--po-ink-2);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: all .15s;
}

.chip span { color: var(--po-muted); font-weight: 600; font-size: .8rem; }
.chip:hover { border-color: var(--po-blue); color: var(--po-blue); }
.chip.is-active { background: var(--po-navy); border-color: var(--po-navy); color: #fff; }
.chip.is-active span { color: rgba(255, 255, 255, .7); }

.segmented {
    display: inline-flex;
    gap: .25rem;
    padding: .3rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--po-line);
}

.segmented-item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    color: var(--po-muted);
    text-decoration: none;
}

.segmented-item span { font-size: .78rem; padding: 0 .45rem; border-radius: 99px; background: var(--po-bg); }
.segmented-item.is-active { background: var(--po-navy); color: #fff; }
.segmented-item.is-active span { background: rgba(255, 255, 255, .15); }

.search-field {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: min(320px, 100%);
    padding: .55rem 1rem;
    border: 1px solid var(--po-line);
    border-radius: 12px;
    background: #fff;
    color: var(--po-muted);
    margin: 0;
}

.search-field:focus-within { border-color: var(--po-blue); box-shadow: 0 0 0 .2rem rgba(47, 76, 240, .12); }
.search-field input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; color: var(--po-ink); }
.search-field-sm { min-width: 240px; padding: .4rem .8rem; }

/* ---------- module tiles ---------- */
.module-tile {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius-lg);
    text-decoration: none;
    color: var(--po-ink);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.module-tile:hover { transform: translateY(-4px); box-shadow: var(--po-shadow-lg); border-color: transparent; color: var(--po-ink); }

.module-icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    margin-bottom: .75rem;
    flex: 0 0 auto;
}

.module-icon-sm { width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.module-icon-lg { width: 76px; height: 76px; border-radius: 22px; margin: 0; }

.cat-core-hr { background: var(--po-sky); color: var(--po-blue); }
.cat-time-attendance { background: var(--po-teal-50); color: var(--po-teal); }
.cat-payroll { background: #fff4dc; color: #a86d00; }
.cat-mobile { background: #f0edff; color: var(--po-violet); }
.cat-platform { background: #ffeceb; color: #c9353a; }

.module-cat { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--po-muted); }
.module-name { font-size: 1.15rem; font-weight: 800; }
.module-tagline { color: var(--po-muted); font-size: .95rem; line-height: 1.55; flex: 1; }
.module-more { display: inline-flex; align-items: center; gap: .3rem; margin-top: .75rem; font-weight: 700; font-size: .9rem; color: var(--po-blue); }
.module-tile:hover .module-more .icon { transform: translateX(3px); }
.module-more .icon { transition: transform .2s; }

/* ---------- event card ---------- */
.event-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius-lg);
    transition: transform .25s, box-shadow .25s;
}

.event-card:hover { transform: translateY(-4px); box-shadow: var(--po-shadow-lg); }

.event-card-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }

.date-tile {
    width: 62px;
    flex: 0 0 auto;
    padding: .45rem 0;
    border-radius: 14px;
    background: var(--po-navy);
    color: #fff;
    text-align: center;
    line-height: 1.1;
}

.date-month { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--po-gold); }
.date-day { display: block; font-size: 1.6rem; font-weight: 800; }
.date-week { display: block; font-size: .7rem; color: rgba(255, 255, 255, .7); }

.event-card-meta { display: grid; gap: .35rem; }
.event-time { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; color: var(--po-muted); font-weight: 600; }

.type-badge {
    justify-self: start;
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 800;
    background: var(--po-sky);
    color: var(--po-blue);
}

.type-workshop { background: var(--po-teal-50); color: var(--po-teal); }
.type-virtual-summit { background: #fff4dc; color: #8a5a00; }

.event-title { font-size: 1.12rem; font-weight: 800; line-height: 1.35; margin-bottom: .5rem; }
.event-title a { color: var(--po-ink); text-decoration: none; }
.event-card:hover .event-title a { color: var(--po-blue); }
.event-summary { color: var(--po-muted); font-size: .92rem; flex: 1; }

.event-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--po-line);
    font-size: .82rem;
}

.event-host { display: inline-flex; align-items: center; gap: .3rem; color: var(--po-muted); font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.seat-note { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--po-ink-2); white-space: nowrap; }
.seat-low { color: var(--po-coral); }
.seat-live { color: var(--po-coral); }

.event-card.is-past .date-tile { background: #5d6683; }
.event-card.is-past .date-month { color: #fff; }

.pulse-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.pulse-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(.5); opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* horizontal rail used for the event carousel */
.card-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, calc((100% - 3rem) / 3));
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .5rem .25rem 1.5rem;
    scrollbar-width: thin;
}

.card-rail-item { scroll-snap-align: start; }

.carousel-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--po-line);
    border-radius: 50%;
    background: #fff;
    color: var(--po-ink);
    transition: all .15s;
}

.carousel-btn:hover { background: var(--po-navy); border-color: var(--po-navy); color: #fff; }

/* ---------- resource card ---------- */
.resource-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius-lg);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.resource-card:hover { transform: translateY(-4px); box-shadow: var(--po-shadow-lg); }

.resource-cover {
    height: 132px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    position: relative;
    overflow: hidden;
}

.resource-cover::after, .resource-feature-cover::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 24px solid rgba(255, 255, 255, .14);
}

.resource-cover-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    backdrop-filter: blur(4px);
}

.cover-guide { background: linear-gradient(135deg, #2f4cf0, #6f86ff); }
.cover-checklist { background: linear-gradient(135deg, #0f9f91, #45cbbb); }
.cover-compliance { background: linear-gradient(135deg, #121c45, #3a4a8c); }
.cover-template { background: linear-gradient(135deg, #d98a00, #ffbf3f); }
.cover-blog { background: linear-gradient(135deg, #d93a40, #ff8073); }

.resource-cover .resource-cat { color: #fff; background: rgba(255, 255, 255, .18); }

.resource-cat {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .65rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--po-sky);
    color: var(--po-blue);
}

.resource-body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.resource-title { font-size: 1.1rem; font-weight: 800; line-height: 1.35; margin-bottom: .5rem; }
.resource-title a { color: var(--po-ink); text-decoration: none; }
.resource-card:hover .resource-title a { color: var(--po-blue); }
.resource-summary { color: var(--po-muted); font-size: .92rem; flex: 1; }

.resource-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .82rem; color: var(--po-muted); font-weight: 600; }
.resource-meta span + span::before { content: "·"; margin-right: 1rem; color: var(--po-line); }

/* ---------- avatars ---------- */
.avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--po-navy);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
}

.avatar-xs { width: 26px; height: 26px; font-size: .62rem; }
.avatar-sm { width: 32px; height: 32px; font-size: .72rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.05rem; }
.avatar-xl { width: 76px; height: 76px; font-size: 1.5rem; }

.tone-0 { background: var(--po-blue); }
.tone-1 { background: var(--po-teal); }
.tone-2 { background: var(--po-violet); }
.tone-3 { background: #d98a00; }

/* ---------- CTA band ---------- */
.cta-band { padding: 4rem 0 5.5rem; }
.cta-band-tight { padding-top: 0; }

.cta-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    padding: 3rem;
    border-radius: 28px;
    color: rgba(255, 255, 255, .8);
    background:
        radial-gradient(400px 260px at 100% 0%, rgba(255, 185, 49, .3), transparent 70%),
        radial-gradient(500px 300px at 0% 100%, rgba(47, 76, 240, .6), transparent 70%),
        var(--po-navy);
}

.cta-card h2 { color: #fff; font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); margin-bottom: .5rem; }
.cta-card p { margin: 0; max-width: 560px; font-size: 1.05rem; }

/* ---------- empty / status pages ---------- */
.empty-state {
    display: grid;
    justify-items: center;
    gap: .75rem;
    padding: 3.5rem 1rem;
    text-align: center;
    color: var(--po-muted);
    border: 1px dashed var(--po-line);
    border-radius: var(--po-radius-lg);
    background: #fff;
}

.empty-state p { margin: 0; }

.status-page { padding: 6rem 0; background: var(--po-bg); }

.status-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid var(--po-line);
    border-radius: var(--po-radius-lg);
    box-shadow: var(--po-shadow);
}

.status-code {
    display: inline-block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--po-blue), var(--po-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.status-code .icon { color: var(--po-blue); }
.status-card h1 { font-size: 1.6rem; font-weight: 800; margin: 1rem 0 .5rem; }
.status-card p { color: var(--po-muted); }
.status-ref { font-size: .85rem; }

/* ---------- forms ---------- */
.form-label { font-weight: 700; font-size: .9rem; color: var(--po-ink); margin-bottom: .4rem; }
.optional { font-weight: 500; color: var(--po-muted); font-size: .8rem; }

.form-control, .form-select {
    border-color: var(--po-line);
    border-radius: 12px;
    padding: .65rem .9rem;
}

.form-select { padding-right: 2.25rem; }   /* keep room for Bootstrap's arrow */
.form-select-sm { padding: .35rem 2rem .35rem .7rem; border-radius: 10px; }
.form-control-lg { border-radius: 14px; }
.form-control:focus, .form-select:focus { border-color: var(--po-blue); box-shadow: 0 0 0 .2rem rgba(47, 76, 240, .15); }
.form-check-input:checked { background-color: var(--po-blue); border-color: var(--po-blue); }
.form-note { font-size: .8rem; color: var(--po-muted); text-align: center; margin: .9rem 0 0; }
.invalid-feedback:empty { display: none !important; }

/* ---------- tables ---------- */
.data-table { font-size: .9rem; }
.data-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--po-muted); font-weight: 800; background: var(--po-bg); border-bottom: 1px solid var(--po-line); white-space: nowrap; }
.data-table td { border-color: var(--po-line); vertical-align: middle; }
.data-table a { text-decoration: none; }

.status-pill { display: inline-block; padding: .2rem .7rem; border-radius: 99px; font-size: .78rem; font-weight: 800; }
.status-new { background: var(--po-sky); color: var(--po-blue); }
.status-contacted { background: #fff4dc; color: #8a5a00; }
.status-scheduled { background: #f0edff; color: var(--po-violet); }
.status-closed { background: var(--po-teal-50); color: #0b7a6f; }

/* ---------- footer ---------- */
.site-footer {
    background: var(--po-navy);
    color: rgba(255, 255, 255, .7);
    padding-top: 4.5rem;
}

.footer-about { margin: 1.25rem 0 1.75rem; max-width: 380px; line-height: 1.7; }
.footer-heading { color: #fff; font-weight: 800; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-links a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-links a:hover { color: var(--po-gold); }
.footer-contact li { display: flex; align-items: center; gap: .5rem; }
.footer-contact .icon { color: var(--po-gold); }

.newsletter-form .form-label { color: #fff; }
.newsletter-field { display: flex; gap: .5rem; max-width: 420px; }

.newsletter-field .form-control {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}

.newsletter-field .form-control::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-feedback { min-height: 1.4rem; margin-top: .5rem; font-size: .85rem; font-weight: 600; }
.newsletter-feedback.is-ok { color: #7ee2c8; }
.newsletter-feedback.is-error { color: #ffb3a8; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
}

.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ---------- toasts ---------- */
.toast-stack {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 2000;
    display: grid;
    gap: .5rem;
    max-width: min(380px, calc(100vw - 2.5rem));
}

.site-toast {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .9rem 1.1rem;
    border-radius: 14px;
    background: var(--po-ink);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--po-shadow-lg);
    transform: translateY(12px);
    opacity: 0;
    transition: transform .25s, opacity .25s;
}

.site-toast.is-in { transform: none; opacity: 1; }
.site-toast-dot { width: 10px; height: 10px; border-radius: 50%; background: #3ed3a3; flex: 0 0 auto; }
.site-toast.is-error .site-toast-dot { background: #ff6b6b; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .pulse-dot::after { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: 1rem 0; }
    .nav-actions { margin-top: .75rem; flex-wrap: wrap; }
    .mega-menu { box-shadow: none; padding: 1rem 0; border-radius: 0; }
    .card-rail { grid-auto-columns: minmax(280px, 80%); }
    .section { padding: 4rem 0; }
}

@media (max-width: 575.98px) {
    .announce-bar span:not(.announce-tag) { display: none; }
    .cta-card { padding: 2rem 1.5rem; }
    .newsletter-field { flex-direction: column; }
}
