/* Trailforks Pro features page (/pro/features/), loaded after about-mapping-tools.css and scoped under body.profeatures-page */
.profeatures-page .mt-hero { background: #0c1a0b url(../../i/trailforks/pro/TFPRO_webpage_background_2000x1040_yellow2.jpg) right 18% / cover no-repeat; }
.profeatures-page .mt-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 26, 11, .92) 0%, rgba(12, 26, 11, .55) 60%, rgba(12, 26, 11, .2) 100%); }
.profeatures-page .mt-hero__inner { position: relative; grid-template-columns: 1fr; min-height: 420px; }
.profeatures-page .mt-hero__copy { max-width: 680px; }

/* Sticky free trial bar, toggled by .is-on from the page script */
.profeatures-page .pf-sticky { position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: rgba(12, 26, 11, .96); border-top: 1px solid rgba(255, 209, 0, .35); box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); transform: translateY(110%); transition: transform .3s ease; }
.profeatures-page .pf-sticky.is-on { transform: translateY(0); }
.profeatures-page .pf-sticky__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.profeatures-page .pf-sticky__text { display: flex; flex-direction: column; color: rgba(255, 255, 255, .75); font-size: 14px; line-height: 1.35; }
.profeatures-page .pf-sticky__text b { font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 800; color: #ffffff; }
.profeatures-page .pf-sticky .button1 { flex-shrink: 0; margin: 0; }

/* Platform icons: phone = app, desktop = web */
.profeatures-page .pf-plat { display: inline-flex; gap: 6px; align-items: center; }
.profeatures-page .pf-plat svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profeatures-page .pf-plat span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #eef3ec; color: var(--mt-green); }
.profeatures-page .pf-plat span.is-off { background: transparent; color: #c5ccc2; }
.profeatures-page .pf-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 0 0 8px; color: var(--mt-muted); font-size: 14px; }
.profeatures-page .pf-legend > div { display: inline-flex; align-items: center; gap: 8px; }
.profeatures-page .pf-legend .is-off { display: none; }
.profeatures-page .mt-hero .pf-legend { justify-content: flex-start; color: rgba(255, 255, 255, .78); margin-top: 22px; }
.profeatures-page .mt-hero .pf-plat span { background: rgba(255, 255, 255, .1); color: var(--mt-yellow); }

/* Feature cards: square screenshot, title, text, platforms */
.profeatures-page .pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.profeatures-page .pf-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); background: #ffffff; }
.profeatures-page .pf-card .tf-screenshot { margin: 0; }
.profeatures-page .pf-card .tf-screenshot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.profeatures-page .pf-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.profeatures-page .pf-card__body h3 { margin-bottom: 6px; }
.profeatures-page .pf-card__body p { flex: 1; margin: 0 0 14px; font-size: 15px !important; line-height: 1.55 !important; color: var(--mt-muted); }
.profeatures-page .pf-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.profeatures-page .pf-free { color: var(--mt-muted); font-size: 13px; }
.profeatures-page .pf-free b { color: var(--mt-ink); }

/* App screenshots strip */
.profeatures-page .pf-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 40px 0 8px; }
.profeatures-page .pf-phones > div { width: 200px; }
.profeatures-page .pf-phones .tf-screenshot { margin: 0; }
/* the screenshots carry their own phone frame */
.profeatures-page .pf-phones img { display: block; width: 100%; height: auto; box-shadow: none; }
.profeatures-page .pf-phones figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--mt-muted); }

/* Compact rows for features without a screenshot */
.profeatures-page .pf-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 32px 0 0; padding: 0; list-style: none; }
.profeatures-page .pf-list li { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--mt-line); }
.profeatures-page .pf-list li p { margin: 2px 0 0; font-size: 14px !important; line-height: 1.5 !important; color: var(--mt-muted); }
.profeatures-page .pf-list li b { font-size: 15px; }

/* Map layers and basemaps from map_layers, on the dark band */
.profeatures-page .pf-cat { margin: 44px 0 0; }
.profeatures-page .pf-cat h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; color: #ffffff; }
.profeatures-page .pf-cat h3 small { font-family: inherit; font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .6); }
.profeatures-page .pf-layers { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.profeatures-page .pf-layer { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.profeatures-page .pf-layer img { display: block; width: 100%; height: 92px; object-fit: cover; background: #1b2a19; }
.profeatures-page .pf-layer__name { display: flex; flex: 1; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 9px 10px 10px; font-size: 13px; font-weight: 600; line-height: 1.3; color: #ffffff; }
.profeatures-page .pf-layer .pf-plat { gap: 3px; flex-shrink: 0; }
.profeatures-page .pf-layer .pf-plat span { width: 20px; height: 20px; border-radius: 5px; background: rgba(255, 255, 255, .08); color: var(--mt-yellow); }
.profeatures-page .pf-layer .pf-plat span.is-off { background: transparent; color: rgba(255, 255, 255, .2); }
.profeatures-page .pf-layer .pf-plat svg { width: 13px; height: 13px; }
.profeatures-page .pf-more { margin-top: 14px; color: rgba(255, 255, 255, .78); }
.profeatures-page .pf-more summary { cursor: pointer; color: var(--mt-yellow); font-weight: 600; }
.profeatures-page .pf-more ul { columns: 3; margin: 12px 0 0; padding-left: 18px; font-size: 13px; }
.profeatures-page .pf-more li { font-size: 13px !important; line-height: 1.6 !important; break-inside: avoid; }

@media (prefers-reduced-motion: reduce) {
    .profeatures-page .pf-sticky { transition: none; }
}

@media screen and (max-width: 1024px) {
    .profeatures-page .pf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
    .profeatures-page .mt-hero::before { background: rgba(12, 26, 11, .7); }
    .profeatures-page .pf-grid,
    .profeatures-page .pf-list { grid-template-columns: 1fr; }
    .profeatures-page .pf-layers { grid-template-columns: repeat(2, 1fr); }
    .profeatures-page .pf-phones { gap: 14px; }
    .profeatures-page .pf-phones > div { width: calc(50% - 7px); }
    .profeatures-page .mt-hero__inner { min-height: 0; }
    .profeatures-page .pf-sticky__text span { display: none; }
    .profeatures-page .pf-more ul { columns: 1; }
}
