/* ==========================================================================
   dissolveX HRMS — Offboarding page
   Hero with one exit counting down to its last day, a team sign-off relay,
   handover and exit-reason panels, a settlement statement band, the shared
   FAQ, and a closing band. Classes are prefixed ox- so the site-wide pattern
   rules (which match on -card, -mockup, -cta-section, -scenic-frame...) stay
   out of the way.
   ========================================================================== */

.ox-page {
    --ox-ink: #0b2b20;
    --ox-ink-soft: #3f5a4f;
    --ox-ink-faint: #6b8579;
    --ox-forest: #0b2b20;
    --ox-forest-raised: #0f3a2b;
    --ox-emerald: #10b981;
    --ox-emerald-dark: #059669;
    --ox-emerald-deep: #047857;
    --ox-mint: #eaf6f0;
    --ox-mint-strong: #d6efe3;
    --ox-amber: #f59e0b;
    --ox-line: rgba(11, 43, 32, 0.1);
    --ox-line-dark: rgba(255, 255, 255, 0.12);
    --ox-surface: #ffffff;
    --ox-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------- Shared ---------- */
.ox-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ox-emerald-dark);
}

.ox-eyebrow-line {
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: var(--ox-emerald);
}

.ox-section-head {
    max-width: 720px;
    margin: 0 0 44px;
}

.ox-section-title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--ox-ink);
}

.ox-section-title .serif-italic,
.ox-hero-title .serif-italic,
.ox-closing-copy .serif-italic {
    display: inline;
    font-weight: 400;
}

.ox-section-lead {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--ox-ink-soft);
}

.ox-tag {
    flex: none;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.ox-tag.is-ok {
    background: #d1fae5;
    color: var(--ox-emerald-deep);
}

.ox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    touch-action: manipulation;
    transition: transform 160ms var(--ox-ease-out), background-color 160ms var(--ox-ease-out);
}

.ox-btn:active {
    transform: scale(0.97);
}

.ox-btn:focus-visible {
    outline: 2px solid var(--ox-emerald);
    outline-offset: 3px;
}

.ox-btn-primary {
    background: var(--ox-forest);
    color: #ffffff;
}

.ox-btn-secondary {
    border: 1px solid rgba(11, 43, 32, 0.18);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ox-ink);
}

.ox-btn-light {
    background: #34d399;
    color: var(--ox-ink);
}

.ox-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
    .ox-btn-primary:hover { background: var(--ox-forest-raised); }
    .ox-btn-secondary:hover { background: #ffffff; }
}

/* ---------- 1. Hero ---------- */
.ox-hero {
    padding: 150px 0 96px;
}

.ox-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 64px;
}

.ox-hero-title {
    margin: 0 0 22px;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--ox-ink);
}

.ox-hero-lead {
    max-width: 56ch;
    margin: 0 0 32px;
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--ox-ink-soft);
}

.ox-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.ox-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--ox-line);
}

.ox-hero-stats div {
    padding-right: 16px;
}

.ox-hero-stats div + div {
    padding-left: 16px;
    border-left: 1px solid var(--ox-line);
}

.ox-hero-stats dt {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ox-ink);
}

.ox-hero-stats dd {
    margin: 2px 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--ox-ink-faint);
}

/* Exit countdown card */
.ox-countdown {
    padding: 26px;
    border: 1px solid var(--ox-line);
    border-radius: 28px;
    background: var(--ox-surface);
    box-shadow: 0 50px 90px -50px rgba(11, 43, 32, 0.55);
}

.ox-countdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ox-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ox-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399 0%, #047857 100%);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
}

.ox-person-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ox-person-text b {
    font-size: 1.02rem;
    color: var(--ox-ink);
}

.ox-person-text small {
    font-size: 0.78rem;
    color: var(--ox-ink-faint);
}

.ox-days {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    padding: 8px 14px 8px 12px;
    border-radius: 16px;
    background: var(--ox-forest);
    color: #ffffff;
}

.ox-days b {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #6ee7b7;
}

.ox-days small {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(232, 245, 238, 0.8);
}

.ox-bar {
    height: 8px;
    border-radius: 8px;
    background: #e2ece7;
    overflow: hidden;
}

.ox-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #34d399, #059669);
}

.ox-bar-legend {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 0 18px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ox-ink-faint);
}

.ox-steps {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ox-steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 0.88rem;
}

.ox-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 28px;
    bottom: -9px;
    width: 2px;
    background: #e2e8f0;
}

.ox-steps li.is-done:not(:last-child)::after {
    background: var(--ox-emerald);
}

.ox-step-dot {
    position: relative;
    z-index: 1;
    flex: none;
    width: 18px;
    height: 18px;
    border: 3px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
}

.is-done > .ox-step-dot {
    border-color: var(--ox-emerald);
    background: var(--ox-emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 9px;
}

.is-now > .ox-step-dot {
    border-color: var(--ox-amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.ox-step-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--ox-ink);
}

.ox-steps li:not(.is-done):not(.is-now) .ox-step-name {
    color: var(--ox-ink-faint);
}

.ox-step-who {
    flex: none;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
}

.is-now > .ox-step-who {
    background: #fef3c7;
    color: #92400e;
}

/* ---------- 2. Relay ---------- */
.ox-relay {
    padding: 96px 0;
    background: var(--ox-forest);
}

.ox-relay .ox-eyebrow { color: #6ee7b7; }
.ox-relay .ox-eyebrow-line { background: #34d399; }
.ox-relay .ox-section-title { color: #ffffff; }
.ox-relay .ox-section-lead { color: rgba(232, 245, 238, 0.75); }

.ox-relay .ox-section-title .serif-italic,
.ox-settle .ox-section-title .serif-italic,
.ox-closing-copy .serif-italic {
    background: none;
    -webkit-text-fill-color: #6ee7b7;
    color: #6ee7b7;
}

.ox-relay-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The line the baton travels along, behind the numbers */
.ox-relay-track::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 22px;
    height: 2px;
    background: linear-gradient(90deg, #34d399 0%, #34d399 50%, rgba(255, 255, 255, 0.14) 50%);
}

.ox-leg {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ox-leg-no {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: var(--ox-forest);
    color: rgba(232, 245, 238, 0.6);
    font-size: 0.86rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.ox-leg.is-done .ox-leg-no {
    border-color: #34d399;
    background: #34d399;
    color: var(--ox-ink);
}

.ox-leg.is-now .ox-leg-no {
    border-color: var(--ox-amber);
    color: #fcd34d;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16);
}

.ox-leg h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.ox-leg p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(232, 245, 238, 0.7);
}

.ox-leg-state {
    align-self: flex-start;
    justify-self: start;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(232, 245, 238, 0.75);
    font-size: 0.72rem;
    font-weight: 700;
}

.ox-leg.is-done .ox-leg-state {
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
}

.ox-leg.is-now .ox-leg-state {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
}

/* ---------- 3. Handover & reasons ---------- */
.ox-duo {
    padding: 96px 0;
}

.ox-duo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ox-panel {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 32px;
    border: 1px solid var(--ox-line);
    border-radius: 28px;
    background: var(--ox-surface);
}

.ox-panel-copy h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ox-ink);
}

.ox-panel-copy p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--ox-ink-soft);
}

.ox-sheet {
    margin-top: auto;
    padding: 18px;
    border-radius: 18px;
    background-color: var(--ox-mint);
    background-image: radial-gradient(rgba(11, 43, 32, 0.1) 1px, transparent 1.3px);
    background-size: 18px 18px;
}

.ox-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ox-sheet-head b {
    font-size: 0.9rem;
    color: var(--ox-ink);
}

.ox-handover,
.ox-reasons {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ox-handover li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--ox-surface);
    font-size: 0.86rem;
}

.ox-check {
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
}

.is-done > .ox-check {
    border-color: var(--ox-emerald);
    background: var(--ox-emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 10px;
}

.ox-handover-name {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--ox-ink);
}

.is-done > .ox-handover-name {
    color: var(--ox-ink-faint);
    text-decoration: line-through;
    text-decoration-color: rgba(11, 43, 32, 0.3);
}

.ox-owner {
    flex: none;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--ox-emerald-deep);
}

.ox-reasons li {
    display: grid;
    grid-template-columns: 110px 1fr 40px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--ox-surface);
    font-size: 0.84rem;
    color: var(--ox-ink);
}

.ox-reasons b {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ox-meter {
    height: 8px;
    border-radius: 8px;
    background: #e2ece7;
    overflow: hidden;
}

.ox-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ox-emerald);
}

/* ---------- 4. Settlement ---------- */
.ox-settle {
    padding: 96px 0;
    background: var(--ox-mint-strong);
}

.ox-settle-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 64px;
}

.ox-settle .ox-section-title .serif-italic {
    -webkit-text-fill-color: var(--ox-emerald-deep);
    color: var(--ox-emerald-deep);
}

.ox-letters {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.ox-letters li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.ox-letter-icon {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ox-forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='17' x2='13' y2='17'/%3E%3C/svg%3E") no-repeat center / 18px;
}

.ox-letters b,
.ox-letters small {
    display: block;
}

.ox-letters b {
    font-size: 0.95rem;
    color: var(--ox-ink);
}

.ox-letters small {
    font-size: 0.8rem;
    color: var(--ox-ink-faint);
}

.ox-statement {
    padding: 26px;
    border-radius: 26px;
    background: var(--ox-surface);
    box-shadow: 0 40px 80px -48px rgba(11, 43, 32, 0.5);
}

.ox-statement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--ox-line);
}

.ox-statement-head b,
.ox-statement-head small {
    display: block;
}

.ox-statement-head b {
    font-size: 1.05rem;
    color: var(--ox-ink);
}

.ox-statement-head small {
    font-size: 0.78rem;
    color: var(--ox-ink-faint);
}

.ox-lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ox-lines li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--ox-line);
    font-size: 0.9rem;
    color: var(--ox-ink-soft);
}

.ox-lines b {
    font-variant-numeric: tabular-nums;
    color: var(--ox-ink);
}

.ox-lines li.is-minus b {
    color: #b45309;
}

.ox-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--ox-forest);
    color: rgba(232, 245, 238, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
}

.ox-total b {
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #6ee7b7;
}

.ox-statement-note {
    margin: 12px 0 0;
    font-size: 0.76rem;
    color: var(--ox-ink-faint);
}

/* ---------- 5. Closing ---------- */
.ox-closing {
    padding: 24px 0 96px;
}

.ox-closing-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px 40px;
    padding: 48px 52px;
    border-radius: 32px;
    background-color: var(--ox-forest);
    background-image: radial-gradient(circle at 90% 0%, rgba(16, 185, 129, 0.35) 0%, rgba(16, 185, 129, 0) 55%);
}

.ox-closing-copy {
    flex: 1 1 420px;
}

.ox-closing-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.ox-closing-copy p {
    margin: 0;
    max-width: 52ch;
    font-size: 1.04rem;
    line-height: 1.6;
    color: rgba(232, 245, 238, 0.75);
}

.ox-closing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ox-closing .ox-btn:focus-visible {
    outline-color: #6ee7b7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .ox-hero-grid,
    .ox-settle-grid {
        gap: 44px;
    }

    .ox-relay-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 36px;
    }

    .ox-relay-track::before {
        display: none;
    }
}

@media (max-width: 960px) {
    .ox-hero {
        padding: 130px 0 80px;
    }

    .ox-hero-grid,
    .ox-settle-grid,
    .ox-duo-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ox-countdown,
    .ox-statement {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .ox-relay,
    .ox-duo,
    .ox-settle {
        padding: 72px 0;
    }

    .ox-section-head {
        margin-bottom: 32px;
    }

    .ox-relay-track {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0;
    }

    /* Stacked: the legs become a vertical list joined by a line */
    .ox-leg {
        display: grid;
        grid-template-columns: 46px 1fr;
        column-gap: 16px;
        row-gap: 4px;
        padding-bottom: 26px;
    }

    .ox-leg:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 22px;
        top: 50px;
        bottom: 4px;
        width: 2px;
        background: rgba(255, 255, 255, 0.14);
    }

    .ox-leg.is-done:not(:last-child)::after {
        background: #34d399;
    }

    .ox-leg-no {
        grid-row: 1 / span 3;
        margin: 0;
    }

    .ox-leg h3,
    .ox-leg p,
    .ox-leg-state {
        grid-column: 2;
    }

    .ox-leg-state {
        margin-top: 4px;
    }

    .ox-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .ox-closing {
        padding-bottom: 72px;
    }

    .ox-closing-card {
        padding: 36px 26px;
        border-radius: 26px;
    }
}

@media (max-width: 560px) {
    .ox-hero {
        padding: 112px 0 64px;
    }

    .ox-hero-actions .ox-btn,
    .ox-closing-actions,
    .ox-closing-actions .ox-btn {
        width: 100%;
    }

    .ox-hero-stats {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 12px;
    }

    .ox-hero-stats div,
    .ox-hero-stats div + div {
        padding: 0;
        border-left: 0;
    }

    .ox-countdown,
    .ox-statement {
        padding: 18px;
        border-radius: 22px;
    }

    .ox-countdown-head {
        flex-wrap: wrap;
    }

    .ox-bar-legend span:nth-child(2) {
        display: none;
    }

    .ox-sheet {
        padding: 12px;
    }

    .ox-sheet-head {
        flex-wrap: wrap;
    }

    .ox-reasons li {
        grid-template-columns: 92px 1fr 34px;
        gap: 8px;
    }

    .ox-handover li {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .ox-handover-name {
        flex-basis: calc(100% - 30px);
    }

    .ox-owner {
        margin-left: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ox-btn {
        transition: none;
    }
}
