/* === Summary Page - Unique Styles ===
   Shared base styles are in functionPages.css
*/

/* ===== HERO ===== */

/* Hero floaters */

.hero-floaters {
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 1;
    }

.hero-floater {
        position: absolute;
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 16px;
        backdrop-filter: blur(4px);
        padding: 14px 18px;
    }

.hero-floater.left {
            left: 4%;
            bottom: 12%;
            transform: rotate(-6deg);
            animation: float-left 8s ease-in-out infinite;
        }

.hero-floater.right {
            right: 4%;
            top: 18%;
            transform: rotate(5deg);
            animation: float-right 7s ease-in-out infinite;
        }

.floater-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 6px;
    }

.floater-row:last-child {
            margin-bottom: 0;
        }

.floater-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

.floater-dot.green {
            background: rgba(22,163,74,.6);
        }

.floater-dot.blue {
            background: rgba(21,93,238,.6);
        }

.floater-dot.amber {
            background: rgba(217,119,6,.6);
        }

.floater-dot.purple {
            background: rgba(124,58,237,.6);
        }

.floater-bar {
        height: 6px;
        border-radius: 3px;
        background: rgba(255,255,255,.08);
    }

.floater-check {
        color: rgba(22,163,74,.7);
        font-size: .7rem;
        font-weight: 700;
    }

.floater-time {
        font-size: .65rem;
        color: rgba(255,255,255,.3);
        font-family: var(--font-body);
    }

@media (max-width: 900px) {
        .hero-floater {
            display: none;
        }
    }

/* ===== SHARED SECTION ===== */

/* ===== SECTION 1: INTERACTIVE TABLE DEMO ===== */

.demo-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        background: var(--surface);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-xl);
        overflow: hidden;
        min-height: 420px;
    }

.demo-toolbar-bar {
        background: linear-gradient(135deg, #0f2044, #1a3a7a);
        padding: 16px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

.demo-toolbar-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

.demo-toolbar-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

.demo-date-range {
        color: #fff;
        font-size: .88rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.demo-date-pill {
        background: rgba(255,255,255,.1);
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 100px;
        padding: 5px 14px;
        font-size: .78rem;
        font-weight: 500;
        color: rgba(255,255,255,.8);
    }

.demo-action-btn {
        padding: 7px 16px;
        border-radius: 100px;
        font-family: var(--font-body);
        font-size: .74rem;
        font-weight: 600;
        cursor: default;
        display: flex;
        align-items: center;
        gap: 5px;
        border: 1.5px solid rgba(255,255,255,.18);
        background: rgba(255,255,255,.06);
        color: rgba(255,255,255,.7);
        transition: all .2s;
    }

.demo-action-btn:hover {
            background: rgba(255,255,255,.12);
            color: #fff;
            border-color: rgba(255,255,255,.3);
        }

.demo-action-btn.export {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }

.demo-action-btn.export:hover {
                background: var(--accent-dark);
            }

.demo-action-btn svg {
            width: 13px;
            height: 13px;
            fill: currentColor;
        }

.demo-main {
        padding: 20px;
        overflow-x: auto;
    }

.demo-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        font-size: .8rem;
        min-width: 700px;
    }

.demo-table thead th {
            text-align: center;
            padding: 7px 6px;
            color: var(--text-light);
            font-weight: 600;
            font-size: .65rem;
            text-transform: uppercase;
            letter-spacing: .04em;
            border-bottom: 2px solid var(--border);
            white-space: nowrap;
        }

.demo-table thead th:first-child {
                text-align: left;
                min-width: 130px;
                position: sticky;
                left: 0;
                background: var(--surface);
                z-index: 2;
            }

.demo-table thead th.weekend {
                background: #fef9ee;
            }

.demo-table thead th.holiday {
                background: var(--purple-light);
            }

.demo-table thead th.total-col {
                background: var(--accent-light);
            }

.demo-table tbody td {
            padding: 6px;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
            text-align: center;
            font-size: .78rem;
            font-weight: 500;
        }

.demo-table tbody td:first-child {
                text-align: left;
                font-weight: 600;
                color: var(--text);
                position: sticky;
                left: 0;
                background: var(--surface);
                z-index: 1;
            }

.demo-table tbody td.weekend {
                background: #fffdf5;
            }

.demo-table tbody td.holiday {
                background: #faf5ff;
            }

.demo-table tbody tr {
            transition: background .15s;
        }

.demo-table tbody tr:hover td {
                background: var(--surface-alt);
            }

.demo-table tbody tr:hover td:first-child {
                    background: var(--surface-alt);
                }

.demo-table tfoot td {
            padding: 8px 6px;
            border-top: 2px solid var(--border);
            font-weight: 700;
            font-size: .78rem;
            text-align: center;
            color: var(--text);
        }

.demo-table tfoot td:first-child {
                text-align: left;
                position: sticky;
                left: 0;
                background: var(--surface);
                z-index: 1;
            }

.cell-work {
        color: var(--text);
    }

.cell-leave {
        color: var(--purple);
        font-size: .68rem;
        font-weight: 600;
    }

.cell-ph {
        color: var(--teal);
        font-size: .68rem;
        font-weight: 600;
    }

.cell-total {
        font-weight: 700;
        color: var(--accent);
    }

.demo-employee-name {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

.demo-emp-first {
        font-weight: 600;
        font-size: .82rem;
        color: var(--text);
        line-height: 1.2;
    }

.demo-emp-last {
        font-weight: 400;
        font-size: .72rem;
        color: var(--text-mid);
        line-height: 1.2;
    }

/* ===== SECTION 2: FLOW DIAGRAM ===== */

.flow-track {
        display: flex;
        gap: 0;
        align-items: stretch;
        overflow-x: auto;
        padding-bottom: 10px;
    }

.flow-node {
        flex: 1;
        min-width: 200px;
        text-align: center;
        padding: 2rem 1.5rem;
        position: relative;
    }

.flow-node::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-top: 14px solid transparent;
            border-bottom: 14px solid transparent;
            border-left: 14px solid var(--border);
        }

.flow-node:last-child::after {
            display: none;
        }

.flow-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin: 0 auto 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.flow-icon svg {
            width: 26px;
            height: 26px;
        }

.flow-icon.blue {
            background: var(--accent-light);
        }

.flow-icon.blue svg {
                fill: var(--accent);
            }

.flow-icon.green {
            background: var(--green-light);
        }

.flow-icon.green svg {
                fill: var(--green);
            }

.flow-icon.amber {
            background: var(--amber-light);
        }

.flow-icon.amber svg {
                fill: var(--amber);
            }

.flow-icon.purple {
            background: var(--purple-light);
        }

.flow-icon.purple svg {
                fill: var(--purple);
            }

.flow-icon.teal {
            background: var(--teal-light);
        }

.flow-icon.teal svg {
                fill: var(--teal);
            }

.flow-node h4 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: .4rem;
    }

.flow-node p {
        font-size: .85rem;
        color: var(--text-mid);
        line-height: 1.55;
    }

@media (max-width: 768px) {
        .flow-track {
            flex-direction: column;
            gap: 8px;
        }

        .flow-node::after {
            display: none;
        }

        .flow-node {
            min-width: 0;
            padding: 1.2rem;
        }
    }

/* ===== SECTION 3: SPLIT SHOWCASES ===== */

.showcase-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
        margin-bottom: 5rem;
    }

.showcase-row:last-child {
            margin-bottom: 0;
        }

.showcase-row.reverse {
            direction: rtl;
        }

.showcase-row.reverse > * {
                direction: ltr;
            }

@media (max-width: 800px) {
        .showcase-row, .showcase-row.reverse {
            grid-template-columns: 1fr;
            direction: ltr;
        }
    }

.showcase-label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 14px;
        border-radius: 100px;
        font-size: .72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-bottom: 1rem;
    }

.showcase-label.blue {
            background: var(--accent-light);
            color: var(--accent);
        }

.showcase-label.green {
            background: var(--green-light);
            color: var(--green);
        }

.showcase-label.amber {
            background: var(--amber-light);
            color: var(--amber);
        }

.showcase-label.purple {
            background: var(--purple-light);
            color: var(--purple);
        }

.showcase-label.teal {
            background: var(--teal-light);
            color: var(--teal);
        }

.showcase-text h3 {
        font-family: var(--font-display);
        font-size: clamp(1.5rem, 3vw, 2rem);
        font-weight: 400;
        margin-bottom: .75rem;
        line-height: 1.2;
    }

.showcase-text p {
        font-size: .95rem;
        color: var(--text-mid);
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

.showcase-bullets {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

.showcase-bullet {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: .88rem;
        color: var(--text-mid);
    }

.showcase-bullet-icon {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--green-light);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        color: var(--green);
        font-size: .7rem;
        font-weight: 700;
    }

.showcase-visual {
        display: flex;
        justify-content: center;
    }

/* Visual cards */

.vis-card {
        background: var(--surface);
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        overflow: hidden;
        width: 100%;
        max-width: 440px;
    }

.vis-card-header {
        background: linear-gradient(135deg, #0f2044, #1a3a7a);
        padding: 14px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

.vis-card-header span {
            color: #fff;
            font-size: .82rem;
            font-weight: 600;
        }

.vis-card-header-pills {
        display: flex;
        gap: 4px;
    }

.vis-pill {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,.2);
    }

.vis-pill.active {
            background: var(--green);
        }

.vis-card-body {
        padding: 18px;
    }

/* Export visual rows */

.export-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        margin-bottom: 8px;
        transition: border-color .2s, box-shadow .2s;
        cursor: default;
    }

.export-row:hover {
            border-color: var(--accent);
            box-shadow: var(--shadow-sm);
        }

.export-row:last-child {
            margin-bottom: 0;
        }

.export-row-icon {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

.export-row-icon svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

.export-row-icon.csv {
            background: var(--green-light);
            color: var(--green);
        }

.export-row-icon.xero {
            background: var(--accent-light);
            color: var(--accent);
        }

.export-row-icon.payhero {
            background: var(--purple-light);
            color: var(--purple);
        }

.export-row-icon.bank {
            background: var(--teal-light);
            color: var(--teal);
        }

.export-row-text {
        flex: 1;
    }

.export-row-name {
        font-size: .82rem;
        font-weight: 600;
        color: var(--text);
        line-height: 1.2;
    }

.export-row-desc {
        font-size: .7rem;
        color: var(--text-light);
        line-height: 1.3;
    }

.export-row-tag {
        font-size: .6rem;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 100px;
        flex-shrink: 0;
    }

.export-row-tag.connected {
            background: var(--green-light);
            color: var(--green);
        }

.export-row-tag.file {
            background: var(--surface-alt);
            color: var(--text-light);
        }

/* Leave breakdown visual */

.leave-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
        font-size: .82rem;
    }

.leave-row:last-child {
            border-bottom: none;
        }

.leave-name {
        font-weight: 600;
        color: var(--text);
        min-width: 100px;
    }

.leave-type-tag {
        font-size: .65rem;
        font-weight: 600;
        padding: 2px 10px;
        border-radius: 100px;
    }

.leave-type-tag.annual {
            background: var(--accent-light);
            color: var(--accent);
        }

.leave-type-tag.sick {
            background: var(--amber-light);
            color: var(--amber);
        }

.leave-type-tag.bereavement {
            background: var(--purple-light);
            color: var(--purple);
        }

.leave-hours {
        font-weight: 600;
        color: var(--text-mid);
        font-size: .78rem;
    }

/* PAYG visual */

.payg-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
    }

.payg-label {
        font-size: .78rem;
        font-weight: 600;
        color: var(--text);
        min-width: 90px;
    }

.payg-track {
        flex: 1;
        height: 8px;
        background: var(--surface-alt);
        border-radius: 4px;
        overflow: hidden;
    }

.payg-fill {
        height: 100%;
        border-radius: 4px;
        transition: width .3s;
    }

.payg-fill.work {
            background: var(--accent);
        }

.payg-fill.leave {
            background: var(--purple);
        }

.payg-fill.ph {
            background: var(--teal);
        }

.payg-value {
        font-size: .72rem;
        font-weight: 600;
        color: var(--text-mid);
        min-width: 36px;
        text-align: right;
    }

/* ===== SECTION 4: STATS BAR ===== */

.stats-bar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

@media (max-width: 700px) {
        .stats-bar {
            grid-template-columns: repeat(2, 1fr);
        }
    }

.stat-card {
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.1);
        border-radius: var(--radius-lg);
        padding: 2rem 1.5rem;
        text-align: center;
        backdrop-filter: blur(6px);
        transition: transform .3s, border-color .3s;
    }

.stat-card:hover {
            transform: translateY(-4px);
            border-color: rgba(255,255,255,.25);
        }

.stat-number {
        font-family: var(--font-display);
        font-size: 2.2rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: .25rem;
    }

.stat-label {
        font-size: .88rem;
        color: rgba(255,255,255,.5);
    }

/* ===== SCROLL REVEAL ===== */

/* ===== KEYFRAMES ===== */

/* ===== MOBILE ===== */

@media (max-width: 600px) {
        .hero {
            min-height: 70vh;
            padding: 4rem 1.5rem;
        }

        .section {
            padding: 3.5rem 1.5rem;
        }
    }

/* FAQ */

.faq-list {
        max-width: 720px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 8px
    }

.faq-item {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        overflow: hidden;
        transition: border-color .25s
    }

.faq-item.open {
            border-color: var(--accent)
        }

.faq-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        background: none;
        border: none;
        font-family: var(--font-body);
        font-size: .95rem;
        font-weight: 600;
        color: var(--text);
        cursor: pointer;
        text-align: left;
        gap: 12px
    }

.faq-chevron {
        width: 20px;
        height: 20px;
        fill: var(--text-light);
        transition: transform .3s;
        flex-shrink: 0
    }

.faq-item.open .faq-chevron {
        transform: rotate(180deg)
    }

.faq-body {
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease
    }

.faq-body-inner {
        padding: 0 20px 18px;
        font-size: .9rem;
        color: var(--text-mid);
        line-height: 1.7
    }

/* =============================================
           RELATED FEATURES
        ============================================= */

.forms-related {
            padding: 5rem 1.5rem;
            background: var(--element-background);
        }

.related-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

@media(max-width:900px) { .related-grid { grid-template-columns: 1fr } }

.related-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.75rem;
            text-decoration: none;
            transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

.related-card:hover {
            box-shadow: var(--shadow-lg);
            border-color: var(--accent-mid);
            transform: translateY(-4px);
        }

.related-icon {
            width: 44px;
            height: 44px;
            background: var(--accent-light);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
        }

.related-icon svg { width: 22px; height: 22px; fill: var(--accent) }

.related-card h3 {
            font-family: var(--font-display);
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--text);
        }

.related-card p {
            font-size: 0.9rem;
            color: var(--faded-text);
            line-height: 1.6;
            flex: 1;
        }

.card-arrow {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.88rem;
            font-weight: 600;
            color: var(--accent);
            margin-top: 0.25rem;
        }

.card-arrow svg { width: 14px; height: 14px; fill: var(--accent) }