/* The features page (/features): design first - the opening, a sticky page
   map, the three design steps with room and photographs, what is built
   around the design, and what it replaces. Colours from public.css. */

.fx-hero { text-align: center; padding-top: 40px; }
.fx-hero h1 { max-width: 20ch; margin-inline: auto; }
.fx-hero .pub-lead { max-width: 760px; margin-inline: auto; }
.fx-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; margin: 22px 0 0; }
.fx-hero-cta .pub-btn { display: inline-block; width: auto; text-decoration: none; }
.fx-hero-note { margin: 10px 0 0; }
.fx-end-cta { margin-top: 28px; }

/* The page map: stays under the site header while reading. */
.fx-jump {
  position: sticky; top: 72px; z-index: 20;
  background: rgba(251,251,250,.92); backdrop-filter: saturate(180%) blur(10px);
  border-block: 1px solid var(--pub-line); margin-top: 24px;
}
.fx-jump-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.fx-jump-in::-webkit-scrollbar { display: none; }
.fx-jump a {
  flex: none; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: var(--pub-soft); text-decoration: none; white-space: nowrap;
}
.fx-jump a:hover, .fx-jump a:focus-visible { color: var(--pub-ink); background: var(--pub-line-soft, #f1f3f5); }
:target { scroll-margin-top: 140px; }
#why-design { scroll-margin-top: 140px; }

/* The design, step by step: text beside a photograph, alternating sides. */
.fx-spot {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
  margin-top: 48px; text-align: left;
}
.fx-spot.is-flipped .fx-spot-text { order: 2; }
.fx-spot h3 { margin: 0 0 .35em; font-size: 1.6rem; color: var(--pub-ink); }
.fx-step { margin: 0 0 .4em; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wg-gold-ink, #7A5A1F); }
.fx-summary { margin: 0 0 1em; color: var(--pub-soft); font-size: 1.02rem; }
.fx-spot .pub-ticks { display: grid; gap: 8px; margin: 0; }
.fx-spot .pub-ticks li { margin: 0; }
.fx-spot-media { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(19,27,36,.12); aspect-ratio: 10 / 7; background: var(--pub-line); }
.fx-spot-media img, .fx-spot-media picture { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Enterprise-only items. */
.fx-ent {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  font-size: .7rem; font-weight: 700; letter-spacing: .03em; color: #14223D; background: #F3EAD6;
}

/* Built around the design. */
.fx-around { background: linear-gradient(180deg, transparent, rgba(19,76,151,.04) 18%, rgba(19,76,151,.04) 82%, transparent); margin-top: 40px; padding-bottom: 24px; }
.fx-around-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 28px; text-align: left; }
.fx-card { background: var(--pub-card); border: 1px solid var(--pub-line); border-radius: 16px; padding: 22px; min-width: 0; }
.fx-card h3 { margin: 10px 0 .3em; font-size: 1.12rem; color: var(--pub-ink); }
.fx-card .fx-summary { font-size: .92rem; }
.fx-card .pub-ticks { display: grid; gap: 6px; margin: 0; }
.fx-card .pub-ticks li { margin: 0; font-size: .9rem; }
.fx-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--wg-antique-gold, #A8802F); background: rgba(201,164,92,.16); }
.fx-icon svg { width: 22px; height: 22px; }
.fx-more { margin-top: 10px; }
.fx-more summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: #14223D; list-style: none; }
.fx-more summary::-webkit-details-marker { display: none; }
.fx-more summary::after { content: " +"; }
.fx-more[open] summary::after { content: " –"; }
.fx-more .pub-ticks { margin-top: 8px; }

/* What it replaces: instead of / in WattGro, row by row. */
.fx-compare { margin-top: 26px; border: 1px solid var(--pub-line); border-radius: 16px; overflow: hidden; background: var(--pub-card); text-align: left; }
.fx-compare-head, .fx-compare-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.fx-compare-head span { padding: 12px 20px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pub-soft); background: var(--pub-line-soft, #f4f5f7); }
.fx-compare-row + .fx-compare-row { border-top: 1px solid var(--pub-line); }
.fx-compare-row p { margin: 0; padding: 14px 20px; font-size: .94rem; }
.fx-before { color: var(--pub-soft); text-decoration: line-through; text-decoration-color: rgba(125,138,152,.45); }
.fx-after { color: var(--pub-ink); font-weight: 500; border-left: 3px solid var(--wg-solar-gold, #C9A45C); }
.fx-label { display: none; }

@media (max-width: 1180px) {
  .fx-jump { top: 60px; }
}
@media (max-width: 860px) {
  .fx-spot, .fx-spot.is-flipped { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 36px; }
  .fx-spot.is-flipped .fx-spot-text { order: 0; }
  .fx-spot-media { order: -1; }
  .fx-spot h3 { font-size: 1.35rem; }
  .fx-compare-head { display: none; }
  .fx-compare-row { grid-template-columns: minmax(0, 1fr); }
  .fx-compare-row p { padding: 10px 16px; }
  .fx-before { padding-bottom: 0 !important; }
  .fx-label { display: block; margin-bottom: 2px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--pub-soft); }
  .fx-around-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fx-jump { background: rgba(19,27,36,.9); }
}
:root[data-theme="dark"] .fx-jump { background: rgba(19,27,36,.9); }
