/*
 * Landing page (/), ported from docs/handoff/landing-source.html. Loads no Bootstrap; tokens and
 * fonts come from forecourtiq.css. The prototype's schematic map, fictional stations and demo
 * charts are replaced by real data and RatingRadar's Leaflet map.
 */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.landing { margin: 0; background: var(--fiq-paper); color: var(--fiq-ink); font: 16px/1.6 var(--fiq-font); }
.landing *, .landing *::before, .landing *::after { box-sizing: border-box; }
.landing img { display: block; max-width: 100%; height: auto; }
.landing button, .landing input, .landing select { font: inherit; }
.landing button { cursor: pointer; }
.landing h1, .landing h2, .landing h3, .landing p, .landing figure { margin: 0; }
.wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }

.l-header { display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 96px; }
.l-header .logo { width: 210px; }
.l-header nav { display: flex; align-items: center; gap: 28px; }
.l-header nav a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--fiq-ink); }
.l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 9px;
    background: var(--fiq-forest); color: #fff !important; font-weight: 700; text-decoration: none; }
.l-btn:hover { background: var(--fiq-forest-deep); }
.l-btn--lime { background: var(--fiq-lime); color: var(--fiq-forest) !important; }
.l-btn--lime:hover { background: #c6ea5c; }
.l-btn--ghost { background: transparent; color: var(--fiq-forest) !important; border: 1px solid #b8c6b5; }
.l-btn--ghost:hover { background: #eef1ea; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #83a83e; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0 64px; }
.hero h1 { margin: 22px 0; font-size: clamp(44px, 5vw, 68px); font-weight: 700; line-height: 1.04; letter-spacing: -3px; }
.hero h1 em { font-style: normal; color: #4b7051; }
.intro { max-width: 490px; color: var(--fiq-muted); font-size: 18px; }
.l-search { display: flex; gap: 8px; margin: 28px 0 10px; padding: 7px; border: 1px solid var(--fiq-line); border-radius: 12px; background: #fff; }
.l-search:focus-within { border-color: var(--fiq-focus); box-shadow: 0 0 0 3px rgba(53, 120, 87, .2); }
.l-search label { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding-left: 10px; }
.l-search input { width: 100%; min-width: 0; min-height: 44px; border: 0; background: transparent; outline: none; }
.l-search svg { flex: none; width: 18px; height: 18px; color: var(--fiq-muted); }
.l-locate { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--fiq-forest); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.l-locate svg { width: 18px; height: 18px; }
.tiny { color: var(--fiq-muted); font-size: 12px; }
.l-status { min-height: 22px; margin-top: 6px; color: var(--fiq-forest); font-size: 13px; }
.hero-photo { position: relative; }
.hero-photo picture { display: block; }
.hero-photo img { width: 100%; height: 520px; object-fit: cover; border-radius: 24px; }
.image-note { margin-top: 9px; color: var(--fiq-muted); font-size: 11.5px; }
.concept-tag { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--fiq-ink); font-size: 11px; font-weight: 700; letter-spacing: .4px; }
.photo-card { position: absolute; left: -22px; bottom: 52px; max-width: 270px; padding: 17px 22px; border-radius: 12px; background: var(--fiq-lime); box-shadow: 0 12px 40px rgba(22, 59, 37, .1); }
.photo-card b { display: block; font-size: 18px; }
.photo-card span { font-size: 12px; }

.value-strip { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid var(--fiq-line); border-bottom: 1px solid var(--fiq-line); font-size: 14px; }
.value-strip span { display: flex; align-items: center; gap: 12px; }
.value-strip b { color: #3c7044; }

.section { padding: 88px 0; }
.section--tight { padding-top: 0; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 32px; }
.section-top p { max-width: 380px; color: var(--fiq-muted); }
.section-top .eyebrow { margin-bottom: 14px; }
.landing h2 { font-size: clamp(32px, 3.5vw, 46px); font-weight: 700; line-height: 1.14; letter-spacing: -1.6px; }
.landing h3 { line-height: 1.3; }
.pill { display: inline-block; padding: 4px 9px; border: 1px solid #c4d6bd; border-radius: 30px; background: #edf3e6; color: #355335; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.pill--fixture { background: var(--fiq-lime); border-color: #b6d64f; color: var(--fiq-forest); }

/* Product preview with real data */
.demo { overflow: hidden; border: 1px solid #d7dfd2; border-radius: 20px; background: #fff; box-shadow: 0 16px 50px rgba(32, 54, 39, .04); }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--fiq-line); }
.demo-bar strong { font-size: 14px; }
.switch { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #f0f2ec; }
.switch button { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 7px; background: transparent; color: var(--fiq-muted); font-size: 13px; }
.switch button[aria-pressed="true"] { background: var(--fiq-forest); color: #fff; }
.demo-grid { display: grid; grid-template-columns: 330px 1fr; min-height: 500px; }
.results { padding: 20px; border-right: 1px solid var(--fiq-line); }
.results-title { display: flex; justify-content: space-between; margin: 0 0 14px; color: var(--fiq-muted); font-size: 12px; }
.station-list { margin: 0; padding: 0; list-style: none; }
.station { display: block; width: 100%; margin-bottom: 10px; padding: 14px; border: 1px solid var(--fiq-line); border-radius: 12px; background: #fff; color: var(--fiq-ink); text-align: left; }
.station[aria-pressed="true"] { border-color: var(--fiq-forest); background: #f2f7ec; box-shadow: inset 3px 0 var(--fiq-forest); }
.station .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.station b { font-size: 13.5px; }
.station strong { font-size: 24px; letter-spacing: -1px; white-space: nowrap; }
.station small { color: var(--fiq-muted); font-size: 11px; }
.station .meta { display: block; margin-top: 6px; color: var(--fiq-muted); font-size: 11.5px; }
.preview-map { position: relative; min-height: 500px; background: #eaf0e3; }
.preview-map .fiq-map { position: absolute; inset: 0; }
.preview-map .map-note { position: absolute; z-index: 800; top: 12px; right: 12px; max-width: calc(100% - 80px); padding: 5px 10px; border-radius: 8px; background: rgba(255, 253, 243, .92); font-size: 11.5px; }
.mini-chart { position: absolute; z-index: 800; left: 18px; right: 18px; bottom: 34px; padding: 14px 18px; border-radius: 13px; background: #fff; box-shadow: 0 4px 20px rgba(36, 75, 53, .12); }
.chart-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.chart-head h3 { font-size: 13.5px; }
.chart-head p { color: var(--fiq-muted); font-size: 11.5px; }
.chart-head a { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.mini-chart .fiq-chart svg { max-height: 130px; }
.demo-note { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 14px 22px; border-top: 1px solid var(--fiq-line); background: #fafbf8; color: var(--fiq-muted); font-size: 12.5px; }
.demo-empty { padding: 30px; color: var(--fiq-muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 52px; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; margin-bottom: 20px; border: 1px solid #cbd4c6; border-radius: 50%; color: var(--fiq-muted); font-size: 13px; }
.steps h3 { margin-bottom: 12px; font-size: 20px; }
.steps p { color: var(--fiq-muted); font-size: 15px; }

/* History band */
.history-section { padding: 72px 0; border-radius: 28px; background: var(--fiq-forest); color: #f3f5e8; }
.history-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; }
.history-section .eyebrow { margin-bottom: 20px; color: var(--fiq-lime); }
.history-section p { margin: 22px 0; color: #d1ddcb; }
.history-section .photo-wrap { position: relative; }
.history-section .photo { width: 100%; height: 440px; object-fit: cover; border-radius: 18px; }
.history-section .image-note { color: #d1ddcb; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding-top: 8px; }
.facts b { display: block; color: var(--fiq-lime); font-size: 22px; }
.facts span { color: #d1ddcb; font-size: 12px; }
.saving { margin-top: 28px; padding-top: 22px; border-top: 1px solid #4a6955; }
.saving label { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; color: #d1ddcb; font-size: 13px; }
.saving input { width: 84px; min-height: 44px; padding: 8px; border: 1px solid #58755e; border-radius: 8px; background: #244d3b; color: #fff; }
.saving input:focus-visible { outline: 3px solid var(--fiq-lime); outline-offset: 2px; }
.saving output { display: block; margin-top: 10px; color: var(--fiq-lime); font-size: 30px; font-weight: 700; }
.saving small { color: #d1ddcb; font-size: 11.5px; }
.history-section a { color: var(--fiq-lime); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; }
.faq-grid .eyebrow { margin-bottom: 18px; }
.faq-grid > div > p { margin-top: 18px; color: var(--fiq-muted); }
.landing details { padding: 18px 0; border-bottom: 1px solid var(--fiq-line); }
.landing summary { min-height: 44px; font-weight: 700; cursor: pointer; align-content: center; }
.landing details p { margin: 10px 0 !important; padding-right: 25px; font-size: 14.5px; }

.final-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 42px 48px; border-radius: 20px; background: var(--fiq-lime); }
.final-cta h2 { font-size: 32px; }
.final-cta p { margin-top: 10px; font-size: 14px; }

.l-footer { display: flex; justify-content: space-between; gap: 30px; padding: 45px 0; color: var(--fiq-muted); font-size: 12.5px; }
.l-footer .logo { width: 140px; margin-bottom: 12px; }
.l-footer a { color: inherit; }

@media (min-width: 1500px) { .hero { gap: 70px; } }
@media (max-width: 950px) {
    .hero { gap: 28px; }
    .hero h1 { font-size: 49px; }
    .hero-photo img { height: 460px; }
    .demo-grid { grid-template-columns: 290px 1fr; }
    .history-grid { gap: 35px; }
    .faq-grid { gap: 40px; }
    .wrap { width: calc(100% - 40px); }
    .l-header nav { gap: 18px; }
    .photo-card { left: -10px; }
}
@media (max-width: 700px) {
    .wrap { width: calc(100% - 32px); }
    .l-header { min-height: 76px; gap: 12px; }
    .l-header .logo { width: 150px; }
    .l-header nav > a:not(.l-btn) { display: none; }
    .l-header nav .l-btn { min-height: 44px; padding: 10px 14px; font-size: 13px; }
    .hero { grid-template-columns: 1fr; gap: 26px; padding: 28px 0 34px; }
    .hero h1 { max-width: 440px; margin: 18px 0; font-size: 46px; letter-spacing: -2px; }
    .intro { font-size: 16px; }
    .hero-photo img { height: 320px; }
    .photo-card { left: 12px; bottom: 46px; padding: 12px 16px; }
    .photo-card b { font-size: 15px; }
    .l-search .l-btn { padding: 10px 14px; font-size: 13px; }
    .value-strip { flex-wrap: wrap; gap: 12px; padding: 18px 0; font-size: 12.5px; }
    .section { padding: 54px 0; }
    .section-top { display: block; }
    .section-top p { margin-top: 16px; }
    .demo-grid { display: flex; flex-direction: column; }
    .preview-map { order: 0; min-height: 440px; }
    .results { order: 1; padding: 16px; border-right: 0; border-top: 1px solid var(--fiq-line); }
    .demo-bar { padding: 14px; }
    .demo-bar .switch { width: 100%; }
    .switch button { flex: 1; }
    .mini-chart { left: 10px; right: 10px; bottom: 30px; padding: 12px; }
    .steps { grid-template-columns: 1fr; gap: 28px; margin-top: 34px; }
    .steps article { position: relative; padding-left: 62px; }
    .step-no { position: absolute; left: 0; top: 0; }
    .history-section { padding: 30px 0; border-radius: 20px; }
    .history-grid { grid-template-columns: 1fr; gap: 28px; }
    .history-section .photo { height: 320px; }
    .history-section h2 { font-size: 34px; }
    .facts { gap: 15px; }
    .faq-grid { grid-template-columns: 1fr; gap: 14px; }
    .final-cta { display: block; padding: 28px 22px; }
    .final-cta .l-btn { margin-top: 22px; }
    .final-cta h2 { font-size: 28px; }
    .l-footer { flex-direction: column; gap: 15px; padding: 30px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
