/* ============================================================
   TaskTag — For Facility Managers Page
   ============================================================ */

.fm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(24,168,125,0.1);
    border: 1px solid rgba(24,168,125,0.2);
    color: var(--secondary-green);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}
.fm-chip--alert {
    background: rgba(255,68,68,0.08);
    border-color: rgba(255,68,68,0.2);
    color: var(--alert-red);
}
.fm-text-alert { color: var(--alert-red); }

/* ============================================================
   HERO
   ============================================================ */
.fm-hero {
    background: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: 4rem;
}
.fm-hero__container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 8rem 1.5rem 6rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.fm-hero__content { text-align: left; }
.fm-hero .rc-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--light-mint);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    color: var(--secondary-green);
    margin-bottom: 1.5rem;
}
.fm-hero__title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
.fm-hero__title .highlight { color: var(--secondary-green); }
.fm-hero__subtitle {
    font-size: 1.125rem;
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 2rem;
}
.fm-hero .hero__actions { justify-content: flex-start; }

/* Visual: Dashboard mockup */
.fm-hero__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.fm-dashboard {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 1rem 2.5rem;
}
.fm-dashboard__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--grey-03);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    z-index: 2;
    white-space: nowrap;
}
.fm-dashboard__float--tl { top: 0; left: -10px; }
.fm-dashboard__float--br { bottom: 0; right: -10px; }
.fm-dashboard__float-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--light-mint);
    color: var(--secondary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.fm-dashboard__float-label { font-size: 0.7rem; color: var(--text-secondary); font-weight: var(--font-weight-medium); }
.fm-dashboard__float-value { font-size: 0.82rem; font-weight: var(--font-weight-bold); color: var(--text-primary); }
.fm-dashboard__float-value--green { color: var(--secondary-green); }

.fm-dashboard__card {
    background: var(--white);
    border: 1px solid var(--grey-03);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
    margin: 2rem 0;
}
.fm-dashboard__card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.1rem; }
.fm-dashboard__card-eyebrow {
    font-size: 0.7rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}
.fm-dashboard__card-name { font-size: 1rem; font-weight: var(--font-weight-bold); color: var(--text-primary); }
.fm-dashboard__tag { font-size: 0.7rem; font-weight: var(--font-weight-semibold); padding: 3px 9px; border-radius: var(--radius-full); white-space: nowrap; }
.fm-dashboard__tag--green { background: var(--light-mint); color: var(--secondary-green); }

.fm-dashboard__prog-wrap { margin-bottom: 1.25rem; }
.fm-dashboard__prog-label { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 6px; }
.fm-dashboard__prog-bar { height: 6px; background: var(--grey-03); border-radius: var(--radius-full); overflow: hidden; }
.fm-dashboard__prog-fill { height: 100%; width: 78%; background: var(--secondary-green); border-radius: var(--radius-full); }

.fm-dashboard__phases { display: flex; flex-direction: column; gap: 0.75rem; }
.fm-dashboard__phase { display: flex; align-items: center; gap: 0.6rem; }
.fm-dashboard__phase-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.fm-dashboard__phase-dot--green  { background: var(--secondary-green); }
.fm-dashboard__phase-dot--yellow { background: #f59e0b; }
.fm-dashboard__phase-dot--grey   { background: var(--grey-09); }
.fm-dashboard__phase-name { flex: 1; font-size: 0.85rem; color: var(--text-primary); }
.fm-dashboard__phase-badge { font-size: 0.72rem; font-weight: var(--font-weight-semibold); padding: 2px 8px; border-radius: var(--radius-full); }
.fm-dashboard__phase-badge--green  { background: var(--light-mint); color: var(--secondary-green); }
.fm-dashboard__phase-badge--yellow { background: #fef3c7; color: #92400e; }
.fm-dashboard__phase-badge--grey   { background: #f3f4f6; color: #6b7280; }

/* ============================================================
   PAIN POINTS
   ============================================================ */
.fm-pain { padding: 8rem 0; background: var(--grey-02); }

.fm-pain__grid {
    grid-template-columns: repeat(3, 1fr);
}
.fm-pain__grid .fm-pain__card {
    grid-column: auto;
}
.fm-pain__card .cs-story__problem-icon { background: rgba(255,68,68,0.09); color: var(--alert-red); }
.fm-pain__card--orange .cs-story__problem-icon { background: rgba(252,127,91,0.12); color: var(--orange); }
.fm-pain__tag {
    display: block;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--alert-red);
    padding-top: 0.875rem;
    border-top: 1px solid var(--grey-03);
    margin-top: auto;
}
.fm-pain__card--orange .fm-pain__tag { color: var(--orange); }

/* ============================================================
   SOLUTION — styled to match rem-features / rem-pain__card
   ============================================================ */
.fm-solution { padding: 8rem 0; background: var(--white); }
.fm-solution .cs-section__title .highlight { color: var(--secondary-green); }
.fm-solution__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.fm-solution__card {
    border: 1px solid var(--grey-03);
    border-radius: 16px;
    padding: 1.25rem;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.fm-solution__card:hover {
    border-color: rgba(24,168,125,0.3);
    box-shadow: 0 8px 28px rgba(24,168,125,0.08);
}
.fm-solution__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: var(--grey-02);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--secondary-green);
}
.fm-solution__card-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.fm-solution__card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   TESTIMONIAL METRICS (Customer Story)
   ============================================================ */
.fm-testimonial__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 1.5rem 0 2rem;
}
.fm-testimonial__metric {
    background: var(--grey-02);
    border: 1px solid var(--grey-03);
    border-radius: var(--radius-md);
    padding: 1rem 0.75rem;
    text-align: center;
}
.fm-testimonial__metric-number {
    font-size: 1.625rem;
    font-weight: var(--font-weight-bold);
    color: var(--secondary-green);
    margin-bottom: 4px;
}
.fm-testimonial__metric-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    line-height: 1.35;
}

/* ============================================================
   REAL RESULTS (STATS)
   ============================================================ */
.fm-stats { padding: 8rem 0; background: var(--text-primary); color: var(--white); }
.fm-stats__title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}
.fm-stats__title .gradient-text { color: var(--brand-green); }
.fm-stats__subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-weight-light);
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

.fm-stats__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.fm-stats__big-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.fm-stats__big-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
.fm-stats__big-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(24,168,125,0.15);
    color: var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fm-stats__big-label { font-size: 0.9375rem; font-weight: var(--font-weight-semibold); color: var(--white); }
.fm-stats__big-sublabel { font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.fm-stats__big-number-row { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; }
.fm-stats__big-number { font-size: 3.5rem; font-weight: var(--font-weight-bold); color: var(--white); line-height: 1; }
.fm-stats__big-number-label { font-size: 1rem; font-weight: var(--font-weight-semibold); color: var(--white); }
.fm-stats__bar { height: 6px; border-radius: var(--radius-full); background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 0.5rem; }
.fm-stats__bar-fill { display: block; height: 100%; background: var(--brand-green); border-radius: var(--radius-full); }
.fm-stats__bar-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; }
.fm-stats__big-note { font-size: 0.8125rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); }
.fm-stats__mini-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.fm-stats__mini-pill {
    display: inline-flex;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    padding: 5px 12px;
    border-radius: var(--radius-full);
}
.fm-stats__pill {
    display: inline-flex;
    background: rgba(24,168,125,0.12);
    color: var(--brand-green);
    font-size: 0.6875rem;
    font-weight: var(--font-weight-semibold);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-top: 0.75rem;
}

/* Unique accent per big card, matching hb-stats palette */
.fm-stats__big-card--blue .fm-stats__big-icon { background: rgba(59,130,246,0.18); color: #60a5fa; }
.fm-stats__big-card--blue .fm-stats__bar-fill { background: #3b82f6; }
.fm-stats__big-card--purple .fm-stats__big-icon { background: rgba(139,92,246,0.18); color: #a78bfa; }
.fm-stats__big-card--purple .fm-stats__mini-pill { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.25); color: #a78bfa; }

.fm-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.fm-stats__card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.fm-stats__card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.fm-stats__card-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.06);
    color: var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fm-stats__card-number { font-size: 2.25rem; font-weight: var(--font-weight-bold); color: var(--white); line-height: 1; margin-bottom: 0.75rem; }
.fm-stats__card-title { font-size: 0.9375rem; font-weight: var(--font-weight-semibold); color: var(--white); margin-bottom: 0.5rem; }
.fm-stats__card-desc { font-size: 0.8125rem; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.fm-workflow__steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    row-gap: 2.5rem;
    column-gap: 1.5rem;
}
.fm-workflow__step {
    text-align: center;
    padding: 0 0.5rem;
    flex: 0 1 calc(33.333% - 1rem);
}
.fm-workflow__step-num {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: var(--secondary-green);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.fm-workflow__step-title { font-size: 1.0625rem; font-weight: var(--font-weight-semibold); color: var(--text-primary); margin-bottom: 0.5rem; }
.fm-workflow__step-desc { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

/* ============================================================
   PLATFORM FEATURES
   ============================================================ */
.fm-features { padding: 8rem 0; background: var(--grey-02); }
.fm-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.fm-features__card {
    background: var(--white);
    border: 1px solid var(--grey-03);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}
.fm-features__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--light-mint);
    color: var(--secondary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.fm-features__kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--secondary-green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}
.fm-features__title { font-size: 1.25rem; font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 1rem; }
.fm-features__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.fm-features__list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.fm-features__list li::before {
    content: '✓';
    color: var(--secondary-green);
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
}

/* ============================================================
   LIFE BEFORE & AFTER — styled to match sw-decision ("Turning Point")
   ============================================================ */
.fm-comparison { padding: 8rem 0; background: var(--white); }
.fm-comparison__container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.fm-comparison__header { text-align: center; margin-bottom: 3rem; }
.fm-comparison__title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0 0 1rem;
}
.fm-comparison__subtitle {
    font-size: 1.5rem;
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    line-height: 1.6;
}
.fm-comparison__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}
.fm-comparison__card {
    background: var(--white);
    border: 1px solid var(--grey-03);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.fm-comparison__card--featured {
    background: var(--text-primary);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.fm-comparison__eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-quaternary);
    margin-bottom: 0.75rem;
}
.fm-comparison__card--featured .fm-comparison__eyebrow { color: rgba(255,255,255,0.35); }
.fm-comparison__brand-row { display: flex; align-items: center; gap: 0.75rem; }
.fm-comparison__brand-name { font-size: 1.5rem; font-weight: var(--font-weight-bold); color: var(--text-primary); line-height: 1.2; }
.fm-comparison__card--featured .fm-comparison__brand-name { color: var(--white); }
.fm-comparison__divider { border: none; border-top: 1px solid var(--grey-03); margin: 1.25rem 0; }
.fm-comparison__divider--green { border-top-color: rgba(24,168,125,0.3); }
.fm-comparison__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 1rem; flex-grow: 1;
}
.fm-comparison__item { display: flex; align-items: flex-start; gap: 0.75rem; }
.fm-comparison__item-icon {
    width: 28px; height: 28px; min-width: 28px; border-radius: 7px;
    background: var(--light-pink); color: var(--alert-red);
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px; flex-shrink: 0;
}
.fm-comparison__item-icon--green { background: rgba(24,168,125,0.12); color: var(--secondary-green); }
.fm-comparison__item-title { font-size: 0.9375rem; font-weight: var(--font-weight-semibold); color: var(--text-primary); margin: 0 0 2px; }
.fm-comparison__card--featured .fm-comparison__item-title { color: var(--white); }
.fm-comparison__item-desc { font-size: 0.8125rem; font-weight: var(--font-weight-light); color: var(--text-secondary); line-height: 1.5; margin: 0; }
.fm-comparison__card--featured .fm-comparison__item-desc { color: rgba(255,255,255,0.6); }
.fm-comparison__tag {
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--alert-red);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--grey-03);
}
.fm-comparison__tag--green { color: var(--brand-green); border-top-color: rgba(255,255,255,0.1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .fm-hero__container { grid-template-columns: 1fr; }
    .fm-hero__visual { display: none; }
    .fm-hero__content { text-align: center; }
    .fm-hero .hero__actions { justify-content: center; }
    .fm-hero__title { font-size: 2.5rem; }
    .fm-stats__title,
    .fm-comparison__title { font-size: 2.5rem; }
    .fm-stats__subtitle,
    .fm-comparison__subtitle { font-size: 1.25rem; }

    .fm-pain__grid { grid-template-columns: repeat(2, 1fr); }
    .fm-solution__grid { grid-template-columns: repeat(2, 1fr); }
    .fm-stats__top { grid-template-columns: 1fr; }
    .fm-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .fm-workflow__step { flex-basis: calc(50% - 0.75rem); }
    .fm-features__grid { grid-template-columns: repeat(2, 1fr); }
    .fm-comparison__grid { grid-template-columns: 1fr; }

    .fm-hero__container { padding: 6rem 1.5rem 4rem; }
    .fm-pain,
    .fm-solution,
    .fm-stats,
    .fm-features,
    .fm-comparison { padding-top: 5rem; padding-bottom: 5rem; }
}

@media (max-width: 768px) {
    .fm-hero__title { font-size: 2rem; }
    .fm-hero__subtitle { font-size: 1rem; }

    .fm-stats__title,
    .fm-comparison__title { font-size: 2rem; }
    .fm-stats__subtitle,
    .fm-comparison__subtitle { font-size: 1.125rem; }

    .fm-pain__grid { grid-template-columns: 1fr; }
    .fm-testimonial__metrics { grid-template-columns: 1fr; }
    .fm-stats__grid { grid-template-columns: 1fr; }
    .fm-workflow__step { flex-basis: 100%; text-align: left; }
    .fm-workflow__step-num { margin: 0 0 1.25rem; }
    .fm-features__grid { grid-template-columns: 1fr; }
    .fm-solution__grid { grid-template-columns: 1fr; }

    .fm-hero { margin-top: 5rem; }
    .fm-hero__container { padding: 4rem 1.5rem 3rem; }
    .fm-pain,
    .fm-solution,
    .fm-stats,
    .fm-features,
    .fm-comparison { padding-top: 4rem; padding-bottom: 4rem; }
}

@media (max-width: 480px) {
    .fm-hero__title { font-size: 1.75rem; }
    .fm-stats__title,
    .fm-comparison__title { font-size: 1.75rem; }
    .fm-stats__subtitle,
    .fm-comparison__subtitle { font-size: 1rem; }

    .fm-stats__big-card { padding: 1.5rem; }
    .fm-stats__big-number { font-size: 2.5rem; }
    .fm-comparison__card { padding: 1.5rem; }

    .fm-hero__container { padding: 3rem 1.5rem 2rem; }
    .fm-pain,
    .fm-solution,
    .fm-stats,
    .fm-features,
    .fm-comparison { padding-top: 3rem; padding-bottom: 3rem; }
}
