/* ==========================================================================
   Snare — Feature index (sticky left nav + naturally-scrolling screenshots)
   A light section inside the dark-green site. The left pane is a sticky list
   of the six feature headings (with icons); the active one expands + highlights
   as you scroll. The right pane is the six screenshots, each with its longer
   description below, scrolling at native pace — no pin, no timer, no scroll-jack.
   feature-scroll.js only tracks which panel is centred to drive the highlight.
   ========================================================================== */

.fwrap {
  --ink:    #07241F;
  --ink-2:  #46544D;
  --ink-3:  #76817B;
  --line:   rgba(6, 64, 56, 0.14);
  --accent: #06544A;
  --surface:#FFFFFF;

  position: relative;
  background: var(--surface);
  color: var(--ink-2);
}
.fwrap::before, .fwrap::after {
  content: ""; position: absolute; left: 0; right: 0; height: 80px; pointer-events: none; z-index: 4;
}
.fwrap::before { top: 0;    background: linear-gradient(180deg, rgba(6,64,56,0.10), transparent); }
.fwrap::after  { bottom: 0; background: linear-gradient(0deg,   rgba(6,64,56,0.10), transparent); }

/* ---- Section header -------------------------------------------------- */
.fx-head {
  padding: clamp(64px, 8vw, 116px) var(--gutter) clamp(36px, 5vw, 64px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.fx-head .feyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  color: var(--accent); font-size: 13px; letter-spacing: 0.16em; text-transform: lowercase;
}
.fx-head .feyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: 0.45; }
.fx-head h2 {
  margin: 0; max-width: 18ch;
  font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04;
  color: var(--ink); text-wrap: balance;
}
.fx-head p { max-width: 54ch; margin: 22px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ---- Two-column body ------------------------------------------------- */
.fx {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 8vw, 116px);
  display: grid;
  grid-template-columns: minmax(220px, 256px) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
}

/* ---- Left: sticky nav ----------------------------------------------- */
.fx-nav { position: sticky; top: 104px; }
.fx-list { list-style: none; margin: 0; padding: 0; }
.fx-item { border-top: 1px solid var(--line); }
.fx-item:last-child { border-bottom: 1px solid var(--line); }
.fx-item button {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: left;
  padding: 18px 14px;
  border: 0; background: transparent; cursor: pointer;
  border-radius: 10px;
  transition: background .3s ease, box-shadow .3s ease;
}
.fx-item button::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: var(--accent); opacity: 0; transform: scaleY(0.4); transform-origin: center;
  transition: opacity .3s ease, transform .3s ease;
}
.fx-ico {
  flex: 0 0 auto; width: 26px; height: 26px; margin-top: 1px;
  color: var(--ink-3); transition: color .3s ease;
}
.fx-ico svg { width: 100%; height: 100%; }
.fx-label { min-width: 0; }
.fx-title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-3); transition: color .3s ease; }
.fx-tag {
  display: block; overflow: hidden;
  max-height: 0; opacity: 0; margin-top: 0;
  font-size: 14px; line-height: 1.4; color: var(--ink-3);
  transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}

.fx-item.is-active button {
  background: rgba(159, 232, 188, 0.16);
  box-shadow: 0 0 0 1px rgba(159, 232, 188, 0.55), 0 8px 28px -8px rgba(159, 232, 188, 0.65);
}
.fx-item.is-active button::before {
  opacity: 1; transform: scaleY(1);
  background: #1FA56E;
  box-shadow: 0 0 12px rgba(159, 232, 188, 0.95);
}
.fx-item.is-active .fx-ico { color: var(--accent); }
.fx-item.is-active .fx-title { color: var(--ink); }
.fx-item.is-active .fx-tag { max-height: 80px; opacity: 1; margin-top: 7px; }

/* ---- Right: scrolling panels ---------------------------------------- */
.fx-panels { display: flex; flex-direction: column; gap: clamp(72px, 11vh, 150px); padding-top: 6px; }
.fx-panel { scroll-margin-top: 120px; }
.fx-shot { width: 100%; }
.fwindow {
  width: 100%; aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 36px 70px -30px rgba(7, 36, 31, 0.30), 0 10px 24px -14px rgba(7, 36, 31, 0.16);
}
.fwindow-bar { flex: 0 0 auto; height: 42px; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #F4F6F2; border-bottom: 1px solid var(--line); }
.fwindow-dots { display: flex; gap: 7px; }
.fwindow-dots i { width: 11px; height: 11px; border-radius: 50%; background: #cdd5ce; }
.fwindow-title { font-size: 13px; color: var(--ink-3); letter-spacing: 0.01em; }
.fwindow-body { position: relative; flex: 1 1 auto; background: #fff; overflow: hidden; }
.fwindow-body img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

.fx-copy { margin-top: 28px; max-width: 60ch; }
.fx-copy h3 { margin: 0 0 12px; font-size: clamp(22px, 2.1vw, 29px); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
@media (max-width: 700px) { .fx-copy h3 { white-space: normal; } }
.fx-copy p { margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--ink-2); }
.fx-copy .freplaces { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.fx-copy .freplaces s { text-decoration-color: rgba(7,36,31,0.30); text-decoration-thickness: 1px; }

/* placeholder UI until a real screenshot is dropped in */
.fph { position: absolute; inset: 0; display: grid; grid-template-columns: 26% 1fr; }
.fph-side { background: #F6F8F5; border-right: 1px solid var(--line); padding: 20px; }
.fph-side span, .fph-main span { display: block; height: 9px; border-radius: 5px; background: #E7EBE6; margin-bottom: 13px; }
.fph-side span:nth-child(1) { width: 70%; background: rgba(6,84,74,0.16); }
.fph-side span:nth-child(2) { width: 92%; } .fph-side span:nth-child(3) { width: 60%; } .fph-side span:nth-child(4) { width: 80%; }
.fph-main { padding: 26px; }
.fph-main span:nth-child(1) { width: 40%; height: 17px; background: rgba(6,84,74,0.16); margin-bottom: 24px; }
.fph-main span:nth-child(2) { width: 94%; } .fph-main span:nth-child(3) { width: 86%; } .fph-main span:nth-child(4) { width: 90%; } .fph-main span:nth-child(5) { width: 58%; }
.fph-tag { position: absolute; right: 20px; bottom: 18px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* ---- Mobile: nav becomes a simple list above the panels ------------- */
@media (max-width: 860px) {
  .fx { grid-template-columns: 1fr; gap: 28px; }
  .fx-nav { position: static; }
  .fx-tag { display: none; }                 /* keep the inline nav compact */
  .fx-item.is-active .fx-tag { display: none; }
  .fx-panels { gap: 56px; }
}
