/* ========================================
   Guide Pages — polished chrome theme
   FFL logo: brushed metal on dark slate
   Light hits from top-left, subtle glints
   Scoped under .guide-page
   ======================================== */

/* === Base — dark slate with ambient light pool === */
.guide-page {
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(120, 160, 210, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(100, 140, 190, 0.04) 0%, transparent 50%),
        linear-gradient(170deg, #181f2b 0%, #111820 40%, #0e141c 100%);
    color: rgba(200, 215, 232, 0.88);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    line-height: 1.7;
    margin: 0;
    min-height: 100vh;
}

.guide-page *, .guide-page *::before, .guide-page *::after {
    box-sizing: border-box;
}

/* === Container === */
.guide-page .guide-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 120px 20px 64px;
}

/* === Hero === */
.guide-page .guide-hero {
    margin-bottom: 48px;
    text-align: center;
}

.guide-page .guide-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
    /* Chrome text — gradient like polished metal catching light */
    background: linear-gradient(
        135deg,
        #8ea8c4 0%,
        #d2dfee 25%,
        #f0f4f8 42%,
        #c8d6e6 58%,
        #8ea8c4 75%,
        #a8bdd4 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-page .guide-lead {
    font-size: 1.08rem;
    color: rgba(160, 180, 205, 0.50);
    margin: 0 auto;
    max-width: 600px;
}

/* === Glass Card — brushed metal panel === */
.guide-page .glass-card {
    position: relative;
    background:
        linear-gradient(
            135deg,
            rgba(170, 200, 235, 0.08) 0%,
            rgba(140, 170, 210, 0.03) 40%,
            rgba(120, 150, 190, 0.05) 70%,
            rgba(160, 190, 225, 0.07) 100%
        );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Top-left highlight edge, like light catching metal rim */
    border-top: 1px solid rgba(200, 220, 245, 0.15);
    border-left: 1px solid rgba(200, 220, 245, 0.10);
    border-right: 1px solid rgba(120, 150, 190, 0.06);
    border-bottom: 1px solid rgba(100, 130, 170, 0.05);
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 24px;
    /* Soft outer glow — ambient reflection */
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.20),
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(220, 235, 255, 0.06);
}

/* Subtle top-left glint on cards */
.guide-page .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 50%;
    height: 1px;
    background: linear-gradient(90deg, rgba(220, 235, 255, 0.20), transparent);
    border-radius: 16px 0 0 0;
    pointer-events: none;
}

.guide-page .glass-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 6px;
    /* Metallic heading */
    background: linear-gradient(135deg, #b8cde0 0%, #e0eaf4 50%, #b0c4d8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-page .glass-card .card-subtitle {
    font-size: 0.88rem;
    color: rgba(155, 175, 200, 0.45);
    margin: 0 0 20px;
}

/* === Card Text (prose inside glass cards) === */
.guide-page .card-text p {
    margin: 0 0 14px;
    font-size: 0.96rem;
    color: rgba(190, 205, 225, 0.75);
    line-height: 1.72;
}

.guide-page .card-text p:last-child {
    margin-bottom: 0;
}

.guide-page .card-text strong {
    color: rgba(215, 230, 248, 0.95);
    font-weight: 600;
}

/* === Bullet List === */
.guide-page .guide-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-page .guide-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 14px;
    font-size: 0.96rem;
    color: rgba(190, 205, 225, 0.78);
    line-height: 1.65;
}

/* Metallic dot with glint */
.guide-page .guide-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #d0e0f0, #7a9cbe 60%, #5a7a98);
    box-shadow: 0 0 4px rgba(160, 200, 240, 0.25);
}

/* === Checklist === */
.guide-page .guide-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-page .guide-checklist li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    font-size: 0.96rem;
    color: rgba(190, 205, 225, 0.78);
    line-height: 1.65;
}

.guide-page .guide-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid rgba(160, 190, 225, 0.30);
    background:
        linear-gradient(135deg, rgba(180, 210, 240, 0.10) 0%, rgba(120, 150, 190, 0.03) 100%);
    box-shadow: inset 0 1px 0 rgba(220, 240, 255, 0.08);
}

/* === Source credit === */
.guide-page .guide-source {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(160, 190, 225, 0.08);
    font-size: 0.82rem;
    color: rgba(155, 175, 200, 0.30);
}

.guide-page .guide-source a {
    color: rgba(140, 175, 210, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.guide-page .guide-source a:hover {
    color: rgba(180, 210, 240, 0.80);
    text-decoration: underline;
}

/* === Back link === */
.guide-page .guide-back {
    text-align: center;
    padding: 32px 0;
}

.guide-page .guide-back a {
    color: rgba(140, 175, 210, 0.50);
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.2s;
}

.guide-page .guide-back a:hover {
    color: rgba(180, 210, 240, 0.80);
    text-decoration: underline;
}

/* ========================================
   Workflow Steps (how-it-works page)
   ======================================== */

.guide-page .workflow-step {
    position: relative;
    background:
        linear-gradient(
            135deg,
            rgba(170, 200, 235, 0.07) 0%,
            rgba(140, 170, 210, 0.02) 50%,
            rgba(160, 190, 225, 0.06) 100%
        );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(200, 220, 245, 0.14);
    border-left: 1px solid rgba(200, 220, 245, 0.09);
    border-right: 1px solid rgba(120, 150, 190, 0.05);
    border-bottom: 1px solid rgba(100, 130, 170, 0.04);
    border-radius: 16px;
    padding: 24px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.18),
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(220, 235, 255, 0.05);
}

/* Top glint line */
.guide-page .workflow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 60%;
    height: 1px;
    background: linear-gradient(90deg, rgba(220, 235, 255, 0.18), transparent);
    border-radius: 16px 0 0 0;
    pointer-events: none;
}

.guide-page .step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Step number — chrome sphere */
.guide-page .step-number {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(220, 235, 255, 0.25), transparent 50%),
        linear-gradient(135deg, #3a5068 0%, #506d88 40%, #3a5068 100%);
    border: 1px solid rgba(180, 210, 240, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #d0e0f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.30);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(220, 240, 255, 0.12);
}

.guide-page .step-title {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0;
    padding-top: 8px;
    background: linear-gradient(135deg, #b0c8e0 0%, #dce8f4 50%, #a8bcd4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-page .step-desc {
    font-size: 0.88rem;
    color: rgba(160, 180, 205, 0.52);
    margin: 8px 0 0 58px;
}

/* Connector between steps — gradient wire */
.guide-page .step-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 0;
    height: 36px;
}

.guide-page .step-connector-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom,
        rgba(160, 190, 225, 0.22),
        rgba(160, 190, 225, 0.08)
    );
    box-shadow: 0 0 4px rgba(140, 180, 220, 0.08);
}

.guide-page .step-connector-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(160, 190, 225, 0.22);
    margin-top: -1px;
}

/* Branch options inside a step */
.guide-page .step-branches {
    display: flex;
    gap: 12px;
    margin: 14px 0 0 58px;
}

.guide-page .step-branch {
    flex: 1;
    background:
        linear-gradient(135deg, rgba(160, 190, 225, 0.06) 0%, rgba(130, 160, 200, 0.02) 100%);
    border-top: 1px solid rgba(180, 210, 240, 0.10);
    border-left: 1px solid rgba(180, 210, 240, 0.07);
    border-right: 1px solid rgba(120, 150, 190, 0.04);
    border-bottom: 1px solid rgba(100, 130, 170, 0.03);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.86rem;
    color: rgba(190, 205, 225, 0.62);
    text-align: center;
    line-height: 1.5;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(220, 240, 255, 0.04);
}

/* Inner operation badges — pill-shaped metal tags */
.guide-page .step-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0 58px;
}

.guide-page .step-badge {
    display: inline-block;
    padding: 6px 14px;
    background:
        linear-gradient(135deg, rgba(160, 190, 225, 0.07) 0%, rgba(130, 160, 200, 0.02) 100%);
    border: 1px solid rgba(160, 190, 225, 0.10);
    border-radius: 100px;
    font-size: 0.82rem;
    color: rgba(180, 200, 222, 0.62);
    box-shadow: inset 0 1px 0 rgba(220, 240, 255, 0.04);
}

/* Accent chips — chrome tags with glint */
.guide-page .step-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0 58px;
}

.guide-page .step-chip {
    display: inline-block;
    padding: 3px 11px;
    background:
        linear-gradient(135deg, rgba(180, 210, 240, 0.12) 0%, rgba(140, 170, 210, 0.05) 100%);
    border: 1px solid rgba(180, 210, 240, 0.18);
    border-radius: 100px;
    font-size: 0.75rem;
    color: rgba(195, 218, 242, 0.78);
    font-weight: 500;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(230, 245, 255, 0.08);
}

/* ========================================
   CTA block — raised chrome panel
   ======================================== */

.guide-page .guide-cta {
    position: relative;
    background:
        linear-gradient(
            135deg,
            rgba(160, 195, 235, 0.08) 0%,
            rgba(130, 165, 205, 0.03) 50%,
            rgba(150, 185, 225, 0.07) 100%
        );
    border-top: 1px solid rgba(200, 225, 250, 0.16);
    border-left: 1px solid rgba(200, 225, 250, 0.10);
    border-right: 1px solid rgba(120, 150, 190, 0.06);
    border-bottom: 1px solid rgba(100, 130, 170, 0.04);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-top: 40px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(220, 240, 255, 0.06);
}

.guide-page .guide-cta p {
    margin: 0 0 20px;
    font-size: 1rem;
    color: rgba(180, 200, 222, 0.58);
}

/* CTA button — polished chrome */
.guide-page .guide-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #5c7d9c 0%, #7a9ab8 45%, #5c7d9c 100%);
    color: #e8f0f8;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid rgba(180, 210, 240, 0.18);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(220, 240, 255, 0.15);
    transition: all 0.2s;
}

.guide-page .guide-cta-btn:hover {
    background: linear-gradient(135deg, #6a8dac 0%, #8aaac8 45%, #6a8dac 100%);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(220, 240, 255, 0.20);
}

/* ========================================
   Responsive
   ======================================== */

@media (min-width: 768px) {
    .guide-page .guide-container {
        padding: 140px 32px 80px;
    }
    .guide-page .guide-hero h1 {
        font-size: 2.5rem;
    }
    .guide-page .glass-card {
        padding: 36px 32px;
    }
    .guide-page .workflow-step {
        padding: 28px 32px;
    }
}

@media (max-width: 600px) {
    .guide-page .guide-container {
        padding: 100px 16px 48px;
    }
    .guide-page .guide-hero h1 {
        font-size: 1.5rem;
    }
    .guide-page .guide-lead {
        font-size: 0.95rem;
    }
    .guide-page .step-branches {
        flex-direction: column;
        margin-left: 0;
    }
    .guide-page .step-desc,
    .guide-page .step-badges,
    .guide-page .step-chips {
        margin-left: 0;
    }
    .guide-page .glass-card {
        padding: 22px 18px;
    }
    .guide-page .workflow-step {
        padding: 20px 18px;
    }
}

/* ========================================
   WMS Comparison Table
   ======================================== */

/* Scrollable wrapper for mobile */
.guide-page .wms-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -8px;
    padding: 0 8px;
}

.guide-page .wms-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    min-width: 540px;
}

.guide-page .wms-table thead th {
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(180, 200, 225, 0.65);
    border-bottom: 1px solid rgba(160, 190, 225, 0.15);
    background: rgba(140, 170, 210, 0.04);
}

.guide-page .wms-table thead th:first-child {
    text-align: left;
    border-radius: 8px 0 0 0;
}

.guide-page .wms-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

/* Highlight FL Lite column header */
.guide-page .wms-table thead th.wms-col-highlight {
    color: rgba(210, 230, 250, 0.95);
    background: rgba(37, 99, 235, 0.15);
    border-bottom-color: rgba(37, 99, 235, 0.3);
}

.guide-page .wms-table tbody td {
    padding: 12px 16px;
    text-align: center;
    color: rgba(190, 205, 225, 0.75);
    border-bottom: 1px solid rgba(160, 190, 225, 0.06);
    vertical-align: middle;
}

.guide-page .wms-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: rgba(200, 218, 238, 0.85);
}

/* FL Lite column cells */
.guide-page .wms-table tbody td.wms-col-highlight {
    background: rgba(37, 99, 235, 0.06);
}

.guide-page .wms-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.guide-page .wms-table tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

/* Check and cross marks */
.guide-page .wms-table .wms-yes {
    color: #4ade80;
    font-weight: 600;
}

.guide-page .wms-table .wms-no {
    color: rgba(255, 255, 255, 0.25);
}

.guide-page .wms-table .wms-partial {
    color: rgba(250, 204, 21, 0.8);
}

/* Advantages/limitations cards */
.guide-page .wms-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.guide-page .wms-point:last-child {
    margin-bottom: 0;
}

.guide-page .wms-point-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
}

.guide-page .wms-point-icon--plus {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.guide-page .wms-point-icon--minus {
    background: rgba(250, 204, 21, 0.1);
    color: rgba(250, 204, 21, 0.8);
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.guide-page .wms-point-text {
    flex: 1;
}

.guide-page .wms-point-text strong {
    display: block;
    color: rgba(215, 230, 248, 0.92);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.96rem;
}

.guide-page .wms-point-text p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(180, 200, 222, 0.62);
    line-height: 1.6;
}

/* Legend text */
.guide-page .wms-legend {
    font-size: 0.82rem;
    color: rgba(160, 180, 205, 0.45);
    margin-top: 16px;
}

.guide-page .wms-legend .wms-yes,
.guide-page .wms-legend .wms-partial,
.guide-page .wms-legend .wms-no {
    font-weight: 600;
}

@media (max-width: 600px) {
    .guide-page .wms-table {
        font-size: 0.82rem;
    }

    .guide-page .wms-table thead th,
    .guide-page .wms-table tbody td {
        padding: 10px 10px;
    }
}
