/* ============================================
   OnPointShifts — Workforce Design System
   Style: OnPoint family cold steel, navy command surfaces, crimson accent
   Sibling of the OnPointMaestro / OnPointCRM direction
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
    /* Backgrounds */
    --bg-deep: #f7f8fa;
    --bg-surface: #ffffff;
    --bg-elevated: #f1f3f6;
    --bg-hover: #e8ebf0;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-glass: rgba(255, 255, 255, 0.82);

    /* OnPoint family accents */
    --navy: #11345a;
    --navy-deep: #0a203a;
    --navy-soft: #244a73;
    --accent: #b91c28;
    --accent-hover: #d11f2c;
    --accent-glow: rgba(185, 28, 40, 0.12);
    --accent-glow-strong: rgba(185, 28, 40, 0.24);
    --accent-dim: rgba(185, 28, 40, 0.10);

    /* Secondary — OnPoint Mist */
    --silver: #7a818d;
    --silver-bright: #555b66;

    /* Text */
    --text: #1a1f2c;
    --text-secondary: #555b66;
    --text-muted: #7a818d;

    /* Borders */
    --border: #dfe4eb;
    --border-light: #eef1f5;
    --border-accent: rgba(185, 28, 40, 0.28);

    /* Shadows */
    --shadow-card: 0 1px 2px rgba(26, 31, 44, 0.04), 0 14px 34px -24px rgba(26, 31, 44, 0.22);
    --shadow-card-hover: 0 18px 44px -28px rgba(26, 31, 44, 0.32);

    /* Easing */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.16, 1, 0.3, 1);

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --nav-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { overflow-x: clip; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(circle at 14% 0%, rgba(185, 28, 40, 0.08), transparent 32rem),
        radial-gradient(circle at 92% 8%, rgba(17, 52, 90, 0.12), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg-deep) 48%, #e8ebf0 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: clip;
    max-width: 100vw;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease-smooth);
}

ul, ol {
    list-style: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- Focus States --- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--accent);
    color: var(--bg-deep);
    padding: 10px 20px;
    z-index: 9999;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 0 8px 0;
    transition: top 0.3s var(--ease-smooth);
}

.skip-link:focus {
    top: 0;
}

/* --- Screen Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Container --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-accent { color: var(--accent); }
.text-gradient {
    background: linear-gradient(135deg, var(--navy), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

/* --- Section Standards --- */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-header p {
    margin-top: 16px;
    font-size: 1.1rem;
}

/* Section glow backgrounds */
.section-glow {
    position: relative;
}

.section-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(17, 52, 90, 0.10) 0%, transparent 70%);
    filter: blur(74px);
    pointer-events: none;
    z-index: 0;
}

.section-glow > * {
    position: relative;
    z-index: 1;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all 0.4s var(--ease-smooth);
}

.navbar.scrolled {
    background: rgba(6, 10, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* When mobile nav is open, strip the navbar backdrop-filter so the fixed menu
   can cover the full viewport instead of being trapped inside the navbar's
   stacking context. !important ensures no scrolled-state rule wins. */
body.nav-open .navbar,
body.nav-open .navbar.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    z-index: 1001;
    text-decoration: none;
}

.nav-logo img {
    content: url("../images/brand/onpointshifts-icon.png");
    display: block;
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(16, 36, 64, 0.14);
}

.nav-logo::after {
    content: "OnPointShifts";
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    background: linear-gradient(90deg, var(--navy) 0 64%, var(--accent) 64% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease-smooth);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-actions .btn-sm {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.8rem;
    border-radius: 7px;
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.3s var(--ease-smooth);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 212, 191, 0.28);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 12px 16px;
}

.btn-ghost:hover {
    color: var(--accent);
}

/* removed btn-cloud — using inline accent outline style instead */

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8rem;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(50, 150, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 150, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.10) 0%, transparent 70%);
    filter: blur(80px);
    animation: glow-pulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 28px;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 560px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.hero-stat {
    position: relative;
}

.hero-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.hero-stat .number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1.2;
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
}

.card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    font-size: 0.95rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.card-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card with image */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Card link arrow */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 16px;
    transition: gap 0.3s var(--ease-smooth);
}

.card-link:hover {
    gap: 10px;
}

.card-link::after {
    content: '\2192';
}

/* --- Trust Strip --- */
.trust-strip {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}

.trust-strip .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.trust-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-logos img {
    height: 36px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%) brightness(1.5);
    transition: all 0.3s var(--ease-smooth);
}

.trust-logos img:hover {
    opacity: 0.8;
    filter: grayscale(0%) brightness(1);
}

/* --- Feature Grid (split layout) --- */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

.split-content {
    max-width: 520px;
}

.split-content h2 {
    margin-bottom: 20px;
}

.split-content p {
    margin-bottom: 24px;
}

.split-visual {
    position: relative;
}

.split-visual img {
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

/* Feature list */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s var(--ease-smooth);
}

.feature-item:hover {
    border-color: var(--border-accent);
    background: var(--bg-hover);
}

.feature-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.feature-check::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.feature-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 2px;
}

.feature-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Stats Row --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow-strong) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color 0.3s var(--ease-smooth);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    transition: color 0.3s var(--ease-smooth);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* --- Page Header (for subpages) --- */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.15rem;
    max-width: 580px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--accent);
}

/* --- Forms --- */
.form-container {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease-smooth);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a82' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-bounce), transform 0.8s var(--ease-bounce);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger > *:nth-child(7) { transition-delay: 0.48s; }
.reveal-stagger > *:nth-child(8) { transition-delay: 0.56s; }

/* --- Tabs --- */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.tab-btn:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.tab-btn.active {
    background: var(--accent);
    color: var(--bg-deep);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* --- Industry Cards --- */
.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}

.industry-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.industry-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.industry-card-content {
    padding: 28px;
}

.industry-card h3 {
    margin-bottom: 10px;
}

.industry-card p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* --- Accordion / FAQ --- */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s var(--ease-smooth);
}

.accordion-item.active {
    border-color: var(--border-accent);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s var(--ease-smooth);
}

.accordion-header:hover {
    color: var(--accent);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: transform 0.3s var(--ease-smooth);
}

.accordion-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.accordion-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.accordion-item.active .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-smooth);
}

.accordion-body-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-12 { gap: 12px; }
.gap-24 { gap: 24px; }

/* --- Responsive --- */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
        --nav-height: 64px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero p {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-section {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .split-section.reverse {
        direction: ltr;
    }

    .split-content {
        max-width: 100%;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(6, 10, 19, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions .btn {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
    }

    .card-grid,
    .card-grid-2 {
        grid-template-columns: 1fr;
    }

    .card-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .hero-stat:not(:last-child)::after {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trust-logos {
        gap: 32px;
    }

    .tabs {
        flex-direction: column;
    }

    .page-header {
        padding: 120px 0 60px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
    h2 { font-size: clamp(1.6rem, 5vw, 2rem); }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 24px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-glow {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   WhatsApp Float Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: whatsapp-pulse 2.5s ease infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
    color: #fff;
    animation: none;
}

.whatsapp-float-tooltip {
    position: absolute;
    right: 66px;
    background: rgba(10, 15, 25, 0.92);
    color: #fff;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
}

@keyframes whatsapp-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   OnPointShifts-specific components
   Schedule grid mockup, KPI tiles, comparison
   ============================================ */

/* --- Schedule grid mockup (hero visual) --- */
.schedule-mockup {
    background: linear-gradient(180deg, rgba(15, 22, 41, 0.95), rgba(10, 15, 28, 0.98));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(45, 212, 191, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.schedule-mockup::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.4), transparent);
}

.schedule-mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
    gap: 12px;
}
.schedule-mockup-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}
.schedule-mockup-title::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(45, 212, 191, 0.7);
    animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.schedule-mockup-meta {
    display: flex;
    gap: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-secondary);
}
.schedule-mockup-meta strong {
    color: var(--accent);
    font-weight: 500;
}

/* Labour cost band */
.schedule-labour-band {
    display: grid;
    grid-template-columns: 116px repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 8px;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
}
.schedule-labour-band-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.6rem;
}
.schedule-labour-band-cell {
    text-align: center;
    padding: 4px 0;
    border-radius: 4px;
    background: rgba(45, 212, 191, 0.08);
    color: var(--accent);
    font-weight: 500;
}
.schedule-labour-band-cell.warn { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.schedule-labour-band-cell.high { background: rgba(239, 68, 68, 0.12); color: #f87171; }

/* Labour band must share the row grid */
.schedule-labour-band {
    grid-template-columns: 116px repeat(7, 1fr);
}

/* Day columns */
.schedule-days {
    display: grid;
    grid-template-columns: 116px repeat(7, 1fr);
    gap: 5px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.schedule-days > span {
    text-align: center;
    padding: 6px 0;
}
.schedule-days > span:first-child { text-align: left; padding-left: 6px; }

/* Staff rows */
.schedule-row {
    display: grid;
    grid-template-columns: 116px repeat(7, 1fr);
    gap: 5px;
    align-items: stretch;
    margin-bottom: 5px;
    min-height: 44px;
}
.schedule-row-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4px 6px;
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
}
.schedule-row-name small {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
}
.schedule-cell {
    background: rgba(20, 28, 51, 0.5);
    border-radius: 4px;
    padding: 4px 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    transition: transform 0.2s var(--ease-smooth);
}
.schedule-cell.empty {
    background: rgba(20, 28, 51, 0.25);
    border: 1px dashed rgba(148, 163, 184, 0.12);
}
.schedule-cell.shift {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(20, 184, 166, 0.12));
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: var(--accent);
    font-weight: 500;
    cursor: pointer;
}
.schedule-cell.shift.open {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}
.schedule-cell.shift.conflict {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}
.schedule-cell.shift:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.schedule-cell .role {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 400;
}
.schedule-cell.shift .role { color: rgba(45, 212, 191, 0.65); }
.schedule-cell.shift.open .role { color: rgba(251, 191, 36, 0.7); }
.schedule-cell.shift.conflict .role { color: rgba(248, 113, 113, 0.7); }

/* Mockup footer status */
.schedule-mockup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
}
.schedule-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}
.schedule-status .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow-strong);
}
.schedule-status .dot.warn { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.schedule-publish-btn {
    background: var(--accent);
    color: var(--bg-deep);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* --- Mobile shift card mockup --- */
.mobile-mockup {
    max-width: 280px;
    background: linear-gradient(180deg, #0c1426, #0a0f1c);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 18px 14px 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(45, 212, 191, 0.10);
    position: relative;
}
.mobile-mockup::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 5px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
}
.mobile-mockup-greeting {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'JetBrains Mono', monospace;
}
.mobile-mockup-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
}
.mobile-shift-card {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(20, 184, 166, 0.08));
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}
.mobile-shift-card .label {
    font-size: 0.6rem;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.mobile-shift-card .time {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
}
.mobile-shift-card .role {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.mobile-shift-card .meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(45, 212, 191, 0.15);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}
.mobile-clock-btn {
    width: 100%;
    background: var(--accent);
    color: var(--bg-deep);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.25);
    margin-top: 4px;
}
.mobile-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}
.mobile-action-pill {
    background: rgba(20, 28, 51, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-secondary);
}
.mobile-action-pill strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    font-size: 0.78rem;
    margin-bottom: 2px;
}

/* --- Dashboard KPI tiles --- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.kpi-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.kpi-tile::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--accent);
    opacity: 0.6;
}
.kpi-tile-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
}
.kpi-tile-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
    line-height: 1;
}
.kpi-tile-value .unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 2px;
}
.kpi-tile-trend {
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}
.kpi-tile-trend.warn { color: #f59e0b; }

/* --- Comparison table --- */
.compare-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
    margin-top: 40px;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.compare-table thead th {
    padding: 18px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    background: rgba(15, 22, 41, 0.6);
    text-transform: uppercase;
}
.compare-table thead th.us {
    color: var(--accent);
    background: rgba(45, 212, 191, 0.06);
}
.compare-table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    font-size: 0.92rem;
    color: var(--text-secondary);
}
.compare-table tbody td:first-child {
    color: var(--text);
    font-weight: 500;
    width: 26%;
}
.compare-table tbody td.us {
    color: var(--text);
    background: rgba(45, 212, 191, 0.04);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-yes,
.compare-no,
.compare-partial {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
}
.compare-yes { color: var(--accent); }
.compare-yes::before { content: '✓'; font-weight: 700; }
.compare-no { color: var(--text-muted); }
.compare-no::before { content: '—'; }
.compare-partial { color: #f59e0b; }
.compare-partial::before { content: '~'; font-weight: 700; }

/* --- How-it-works steps --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 56px;
    position: relative;
}
.step {
    position: relative;
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.3s var(--ease-bounce), border-color 0.3s var(--ease-smooth);
}
.step:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
}
.step-num {
    position: absolute;
    top: -20px;
    left: 28px;
    width: 40px; height: 40px;
    background: var(--accent);
    color: var(--bg-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.3);
}
.step h3 {
    margin-top: 12px;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- FAQ accordion --- */
.faq-list {
    max-width: 820px;
    margin: 56px auto 0;
}
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
}
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform 0.3s var(--ease-smooth);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
    padding-top: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Comparison card grid (compact 'we win' callouts) --- */
.win-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.win-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    position: relative;
}
.win-card-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.win-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.win-card .vs {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.08);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
}

/* --- Roadmap / phase pills --- */
.phase-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
}
.phase-pill.live {
    background: rgba(45, 212, 191, 0.10);
    color: var(--accent);
    border: 1px solid var(--border-accent);
}
.phase-pill.next {
    background: rgba(245, 158, 11, 0.10);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
    .schedule-mockup { padding: 14px; }
    .schedule-days, .schedule-row, .schedule-labour-band { grid-template-columns: 86px repeat(7, 1fr); gap: 3px; }
    .schedule-row-name { font-size: 0.68rem; padding: 3px 4px; }
    .schedule-row-name small { font-size: 0.55rem; margin-top: 2px; }
    .schedule-cell { font-size: 0.55rem; padding: 3px 3px; }
    .schedule-cell .role { font-size: 0.5rem; }
    .schedule-mockup-meta { font-size: 0.62rem; gap: 8px; flex-wrap: wrap; }
    .compare-table thead th { font-size: 0.68rem; padding: 12px 10px; }
    .compare-table tbody td { font-size: 0.82rem; padding: 12px 10px; }
    /* Nav logo shrinks on mobile so it doesn't crowd the toggle */
    .nav-logo img { width: 40px !important; height: 40px !important; flex-basis: 40px; }
    .nav-logo::after { font-size: 0.98rem; }
}

@media (max-width: 420px) {
    .nav-logo::after { display: none; }
}

/* ============================================
   Related Reading + Trust Strip + ROI Calculator
   ============================================ */

/* --- Related Reading footer (above main footer) --- */
.related-reading {
    padding: 80px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}
.related-reading-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.related-reading-header h2 {
    font-size: 1.5rem;
    margin: 0;
}
.related-reading-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}
.related-reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.related-card {
    display: block;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
    text-decoration: none;
    color: inherit;
}
.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
    color: inherit;
}
.related-card-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
}
.related-card h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: var(--text);
}
.related-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}
.related-card-arrow {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
}

/* --- Industry chip strip (cross-link on solutions.html) --- */
.industry-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    justify-content: center;
}
.industry-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(45, 212, 191, 0.06);
    border: 1px solid var(--border-accent);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
    text-decoration: none;
}
.industry-chip:hover {
    background: rgba(45, 212, 191, 0.14);
    transform: translateY(-1px);
    color: var(--text);
}
.industry-chip::after {
    content: '→';
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

/* --- Module link from compare win-cards --- */
.win-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
}
.win-card-link::after { content: '→'; }
.win-card-link:hover { color: var(--accent-hover); }

/* --- Trust strip (OnPoint Group family) --- */
.trust-strip {
    padding: 64px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
}
.trust-strip-label {
    text-align: center;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 36px;
}
.trust-strip-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 56px;
}
.trust-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s var(--ease-smooth);
}
.trust-logo:hover {
    opacity: 1;
}
.trust-logo-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}
.trust-logo-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.06em;
}
.trust-strip-summary {
    text-align: center;
    margin-top: 36px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.trust-strip-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.trust-strip-stats > div {
    text-align: center;
}
.trust-strip-stats strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
}
.trust-strip-stats span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- ROI Calculator --- */
.roi-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 32px;
}
.roi-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.roi-input-group label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.roi-input-group input,
.roi-input-group select {
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    transition: border-color 0.2s var(--ease-smooth);
}
.roi-input-group input:focus,
.roi-input-group select:focus {
    outline: none;
    border-color: var(--accent);
}
.roi-results {
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.08), rgba(20, 184, 166, 0.04));
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    text-align: center;
}
.roi-results.hidden { display: none; }
.roi-results-label {
    font-size: 0.78rem;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.roi-results-figure {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 700;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 8px;
}
.roi-results-figure .unit {
    font-size: 0.5em;
    color: var(--accent);
    margin-left: 4px;
}
.roi-results-period {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 32px;
}
.roi-results-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.roi-results-breakdown > div {
    text-align: center;
}
.roi-results-breakdown strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 4px;
}
.roi-results-breakdown span {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Status page service rows --- */
.status-overall {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.08), rgba(20, 184, 166, 0.04));
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    margin-bottom: 32px;
}
.status-overall-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(45, 212, 191, 0.6);
    animation: pulse-dot 2.4s ease-in-out infinite;
}
.status-overall-text strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 4px;
}
.status-overall-text span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.status-services {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.status-service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}
.status-service-row:last-child { border-bottom: none; }
.status-service-name {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 500;
}
.status-service-name::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.status-service-uptime {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: 0.85rem;
}

/* Maestro-family refresh overrides. Keep the Shifts calendar mark, but align the site
   with the current OnPoint cold-steel, navy-rail, crimson-action language. */
.navbar {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 44px -36px rgba(17, 52, 90, 0.55);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
}

.nav-links a.active::after,
.section-tag::before,
.hero-badge::before {
    background: var(--accent);
}

.btn {
    border-radius: 6px;
    transition: background-color 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 14px 24px -18px rgba(185, 28, 40, 0.75);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: none;
    box-shadow: 0 18px 34px -24px rgba(185, 28, 40, 0.85);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.72);
    color: var(--navy);
    border-color: var(--border);
}

.btn-outline:hover {
    color: var(--accent);
    border-color: rgba(185, 28, 40, 0.32);
    transform: none;
}

.hero {
    min-height: 92vh;
    background:
        radial-gradient(circle at 18% 16%, rgba(185, 28, 40, 0.10), transparent 24rem),
        linear-gradient(135deg, #ffffff 0%, var(--bg-deep) 54%, #e8ebf0 100%);
}

.hero-grid-bg {
    background-image:
        radial-gradient(1px 1px at 20px 20px, rgba(26, 31, 44, 0.045) 1px, transparent 0),
        radial-gradient(1px 1px at 60px 60px, rgba(185, 28, 40, 0.04) 1px, transparent 0);
    background-size: 80px 80px;
}

.hero-glow {
    background: radial-gradient(circle, rgba(17, 52, 90, 0.10) 0%, transparent 70%);
    animation: none;
}

.hero-badge,
.section-tag,
.win-card .vs {
    background: var(--accent-dim);
    border-color: var(--border-accent);
    color: var(--accent);
    border-radius: 999px;
}

.hero p {
    color: var(--text-secondary);
}

.hero-stat .number {
    color: var(--navy);
}

.card,
.kpi-tile,
.step,
.win-card,
.compare-table-wrap,
.plan-card,
.industry-card,
.trust-logo,
.status-services {
    background: var(--bg-card);
    border-color: var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

.card:hover,
.industry-card:hover,
.step:hover {
    transform: none;
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
}

.card::before,
.kpi-tile::before {
    background: var(--accent);
}

.card-link,
.feature-check::after,
.compare-yes,
.kpi-tile-trend,
.win-card-link {
    color: var(--accent);
}

.trust-strip,
section[style*="var(--bg-surface)"],
.footer,
.cta-section {
    background: var(--bg-surface) !important;
    border-color: var(--border) !important;
}

.footer {
    color: var(--text);
}

.footer-col a,
.footer-bottom,
.footer-brand p {
    color: var(--text-secondary);
}

.schedule-mockup,
.mobile-mockup {
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.68);
    --text-muted: rgba(255, 255, 255, 0.42);
    --border: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.08);
    --accent: #d11f2c;
    --accent-hover: #ef4444;
    --accent-glow: rgba(185, 28, 40, 0.22);
    --accent-glow-strong: rgba(185, 28, 40, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18rem),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 28px 60px -38px rgba(17, 52, 90, 0.95);
}

.schedule-mockup::before {
    background: linear-gradient(90deg, transparent, rgba(209, 31, 44, 0.55), transparent);
}

.schedule-mockup-title::before {
    box-shadow: 0 0 12px rgba(209, 31, 44, 0.65);
}

.schedule-publish-btn,
.mobile-clock-btn {
    background: var(--accent);
    color: #ffffff;
}

.schedule-mockup-meta strong {
    color: #ffffff;
}

.schedule-cell {
    background: rgba(255, 255, 255, 0.07);
}

.schedule-cell.empty {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.12);
}

.schedule-cell.shift,
.mobile-shift-card {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.schedule-cell.shift .role {
    color: rgba(255, 255, 255, 0.62);
}

.schedule-cell.shift:hover {
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.schedule-cell.shift.open,
.schedule-labour-band-cell.warn,
.kpi-tile-trend.warn {
    background: rgba(180, 83, 9, 0.16);
    border-color: rgba(245, 158, 11, 0.38);
    color: #fbbf24;
}

.schedule-cell.shift.conflict,
.schedule-labour-band-cell.high {
    background: rgba(185, 28, 40, 0.20);
    border-color: rgba(209, 31, 44, 0.48);
    color: #fecdd3;
}

.mobile-shift-card .label,
.mobile-action-pill strong {
    color: #ffffff;
}

.mobile-action-pill {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

.compare-table thead th {
    background: var(--bg-elevated);
}

.compare-table thead th.us,
.compare-table tbody td.us {
    background: rgba(185, 28, 40, 0.06);
    color: var(--text);
}

.step-num {
    background: var(--navy);
    color: #ffffff;
    box-shadow: 0 14px 24px -18px rgba(17, 52, 90, 0.80);
}

.faq-item summary::after {
    color: var(--accent);
}

.roi-results,
.status-overall {
    background: rgba(185, 28, 40, 0.07);
    border-color: var(--border-accent);
}

.status-overall-indicator {
    box-shadow: 0 0 16px rgba(185, 28, 40, 0.42);
}

.skip-link {
    color: #ffffff;
}

.phase-pill.live {
    background: rgba(15, 122, 56, 0.10);
    color: #0f7a38;
    border-color: rgba(15, 122, 56, 0.26);
}

@media (max-width: 1024px) {
    .nav-links {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-links.open a {
        color: var(--navy);
    }

    .nav-links.open a.active {
        color: var(--accent);
    }
}
