/* Home: the five-step feature loop and the first-call-to-close flow, on black.
   Step list on the left, a drawn screen on the right that changes with it.
   Motion is in js/features.js; without it the first step shows and the list still works. */
.ft{max-width:1240px;margin:0 auto;padding:16vh 48px 6vh}
.ft-head{max-width:720px;margin-bottom:56px}
.ft-head h2,.fl-head h2{font-weight:400;font-size:clamp(24px,3.2vw,40px);line-height:1.2;letter-spacing:.02em;margin-bottom:18px}
.ft-head p,.fl-head p{font-size:12px;line-height:1.9;color:rgba(244,241,234,.66);max-width:620px}

.ft-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:start}

/* the step list */
.ft-steps{display:flex;flex-direction:column;gap:10px}
.ft-step{border-radius:14px;background:rgba(244,241,234,.04);box-shadow:0 0 0 1px rgba(244,241,234,.09);overflow:hidden;transition:background-color 300ms var(--ease),box-shadow 300ms var(--ease)}
.ft-step.on{background:rgba(244,241,234,.07);box-shadow:0 0 0 1px rgba(79,168,164,.55)}
.ft-step button{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:16px;width:100%;padding:18px 20px;cursor:pointer}
.ft-step button:focus-visible{outline:2px solid #4fa8a4;outline-offset:-2px;border-radius:14px}
.ft-num{font-size:10px;letter-spacing:.16em;color:rgba(244,241,234,.45)}
.ft-step.on .ft-num{color:#4fa8a4}
.ft-lab{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:rgba(244,241,234,.7)}
.ft-step.on .ft-lab{color:#f4f1ea}
.ft-chev{margin-left:auto;width:12px;height:12px;stroke:rgba(244,241,234,.45);fill:none;stroke-width:1.6;transition:transform 300ms var(--ease)}
.ft-step.on .ft-chev{transform:rotate(180deg);stroke:#4fa8a4}
.ft-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows 450ms var(--ease)}
.ft-step.on .ft-body{grid-template-rows:1fr}
.ft-body > div{overflow:hidden}
.ft-body h3{font-weight:400;font-size:15px;line-height:1.45;letter-spacing:.02em;color:#f4f1ea;padding:0 20px 10px}
.ft-body p{font-size:11.5px;line-height:1.9;color:rgba(244,241,234,.66);padding:0 20px 14px}
.ft-for{display:flex;flex-wrap:wrap;gap:6px;padding:0 20px 20px}
.ft-for span{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:rgba(244,241,234,.6);border-radius:99px;padding:5px 10px;background:rgba(244,241,234,.06)}
.ft-bar{height:2px;background:rgba(244,241,234,.06)}
.ft-bar i{display:block;height:100%;width:0;background:#4fa8a4}
.ft-step.on.run .ft-bar i{animation:ft-fill var(--ft-dur,8s) linear forwards}
.ft-grid.hold .ft-step.on .ft-bar i{animation-play-state:paused}
@keyframes ft-fill{to{width:100%}}

/* the screen: a parchment panel on the black desk */
.ft-screen{position:sticky;top:110px;border-radius:20px;background:linear-gradient(160deg,#efeae2,#e4ded3 60%,#ded7ca);color:#171512;box-shadow:0 34px 80px rgba(0,0,0,.42);overflow:hidden;min-height:470px}
.fx-sc-bar{display:flex;align-items:center;gap:10px;padding:14px 20px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#8a8377;box-shadow:inset 0 -1px 0 rgba(23,21,18,.08)}
.fx-sc-bar img{width:16px;height:16px}
.fx-sc-bar b{font-weight:400;color:#171512}
.fx-sc-bar .fx-live{margin-left:auto;display:inline-flex;align-items:center;gap:6px}
.fx-sc-bar .fx-live::before{content:'';width:6px;height:6px;border-radius:50%;background:#3f8f8c;box-shadow:0 0 0 3px rgba(63,143,140,.18)}
.fx-sc{display:none;padding:22px 22px 26px}
.fx-sc.on{display:block;animation:sc-in 500ms var(--ease)}
@keyframes sc-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.fx-sc-t{font-size:12px;letter-spacing:.06em;margin-bottom:4px}
.fx-sc-s{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#8a8377;margin-bottom:18px}
.fx-sc-note{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#8a8377;margin-top:16px}

.fx-rows{display:flex;flex-direction:column;gap:8px}
.fx-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.62);font-size:10.5px;line-height:1.5;opacity:0;transform:translateY(6px)}
.fx-sc.on .fx-row{animation:row-in 500ms var(--ease) forwards}
.fx-sc.on .fx-row:nth-child(2){animation-delay:120ms}.fx-sc.on .fx-row:nth-child(3){animation-delay:240ms}.fx-sc.on .fx-row:nth-child(4){animation-delay:360ms}.fx-sc.on .fx-row:nth-child(5){animation-delay:480ms}
@keyframes row-in{to{opacity:1;transform:none}}
.fx-row small{display:block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#8a8377;margin-top:2px}
.fx-pill{margin-left:auto;flex-shrink:0;font-size:8px;letter-spacing:.12em;text-transform:uppercase;border-radius:99px;padding:5px 9px;background:rgba(23,21,18,.06);color:#55504a}
.fx-pill.fx-ok{background:#e4f1f0;color:#2b6765}
.fx-pill.fx-go{background:#3f8f8c;color:#fff}
.fx-dot{width:26px;height:26px;border-radius:50%;flex-shrink:0;display:grid;place-content:center;background:#171512}
.fx-dot img{width:15px;height:15px}
.fx-dot.fx-t{background:#e4f1f0}
.fx-dot.fx-t svg{width:12px;height:12px;stroke:#2b6765;stroke-width:2.2;fill:none}

/* 02 the call */
.fx-call{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fx-say{display:flex;flex-direction:column;gap:8px}
.fx-say p{font-size:10px;line-height:1.6;padding:10px 12px;border-radius:12px;background:#171512;color:#f4f1ea;max-width:92%;opacity:0}
.fx-say p.fx-me{align-self:flex-end;background:rgba(255,255,255,.7);color:#171512}
.fx-sc.on .fx-say p{animation:row-in 450ms var(--ease) forwards}
.fx-sc.on .fx-say p:nth-child(2){animation-delay:500ms}.fx-sc.on .fx-say p:nth-child(3){animation-delay:1000ms}.fx-sc.on .fx-say p:nth-child(4){animation-delay:1500ms}
.fx-cap{border-radius:12px;background:rgba(255,255,255,.62);padding:14px}
.fx-cap dl{display:grid;grid-template-columns:auto 1fr;gap:9px 12px;font-size:10px;line-height:1.5}
.fx-cap dt{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#8a8377;padding-top:2px}
.fx-cap dd{opacity:0}
.fx-sc.on .fx-cap dd{animation:row-in 400ms var(--ease) forwards}
.fx-sc.on .fx-cap dd:nth-of-type(1){animation-delay:700ms}.fx-sc.on .fx-cap dd:nth-of-type(2){animation-delay:1200ms}.fx-sc.on .fx-cap dd:nth-of-type(3){animation-delay:1700ms}.fx-sc.on .fx-cap dd:nth-of-type(4){animation-delay:2300ms}
.fx-cap dd .fx-pill{margin-left:0}

/* 04 the tracker */
.fx-trk{display:flex;gap:6px;margin-bottom:18px}
.fx-trk span{flex:1;font-size:8px;letter-spacing:.1em;text-transform:uppercase;color:#8a8377;padding-top:12px;position:relative}
.fx-trk span::before{content:'';position:absolute;left:0;right:0;top:0;height:4px;border-radius:99px;background:rgba(23,21,18,.1)}
.fx-trk span.fx-done{color:#171512}
.fx-trk span.fx-done::before{background:#3f8f8c}
.fx-trk span.fx-now{color:#171512}
.fx-trk span.fx-now::before{background:linear-gradient(90deg,#3f8f8c 55%,rgba(23,21,18,.1) 55%)}
.fx-views{display:flex;gap:6px;margin-bottom:12px}
.fx-views span{font-size:10px;letter-spacing:.12em;text-transform:uppercase;padding:6px 10px;border-radius:99px;background:rgba(23,21,18,.06);color:#55504a}
.fx-views span.on{background:#171512;color:#f4f1ea}

/* 05 the chart */
.fx-chart{border-radius:12px;background:rgba(255,255,255,.62);padding:16px 16px 12px}
.fx-chart .fx-q{font-size:10px;line-height:1.6;margin-bottom:14px}
.fx-bars{display:flex;align-items:flex-end;gap:12px;height:150px;padding-bottom:4px;box-shadow:inset 0 -1px 0 rgba(23,21,18,.12)}
.fx-bars i{flex:1;border-radius:6px 6px 2px 2px;background:#a08a5c;height:0;transition:height 900ms var(--ease)}
.fx-bars i:last-child{background:#171512}
.fx-sc.on .fx-bars i{height:var(--h)}
.fx-bars-x{display:flex;gap:12px;margin-top:8px}
.fx-bars-x span{flex:1;text-align:center;font-size:8px;letter-spacing:.12em;color:#8a8377}
.fx-ans{margin-top:12px;font-size:10px;line-height:1.6;padding:10px 12px;border-radius:12px;background:#171512;color:#f4f1ea}

/* the flow: first call to close */
.fl{max-width:1240px;margin:0 auto;padding:10vh 48px 4vh}
.fl-head{max-width:720px;margin-bottom:44px}
.fl-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;position:relative;padding-top:30px}
.fl-node{position:relative;z-index:2;border-radius:14px;background:rgba(244,241,234,.05);box-shadow:0 0 0 1px rgba(244,241,234,.11);padding:20px 18px 22px}
.fl-node .fx-k{display:block;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#f8ed43;margin-bottom:12px}
.fl-node b{display:block;font-weight:400;font-size:12px;line-height:1.5;letter-spacing:.03em;margin-bottom:12px}
.fl-node ul{list-style:none;display:flex;flex-direction:column;gap:6px}
.fl-node li{font-size:10px;line-height:1.5;color:rgba(244,241,234,.62);padding-left:12px;position:relative}
.fl-node li::before{content:'';position:absolute;left:0;top:.6em;width:4px;height:4px;border-radius:50%;background:#4fa8a4}
.fl-wire{position:absolute;left:0;right:0;top:8px;height:2px;z-index:1;background:linear-gradient(90deg,rgba(79,168,164,0),rgba(79,168,164,.45) 8%,rgba(79,168,164,.45) 92%,rgba(79,168,164,0))}
.fl-wire i{position:absolute;top:-3px;left:0;width:8px;height:8px;border-radius:50%;background:#f8ed43;box-shadow:0 0 12px rgba(248,237,67,.7);animation:fl-run 5s linear infinite}
.fl-wire i:nth-child(2){animation-delay:1.7s}.fl-wire i:nth-child(3){animation-delay:3.4s}
@keyframes fl-run{0%{left:0;opacity:0}6%{opacity:1}94%{opacity:1}100%{left:100%;opacity:0}}
.fl-foot{margin-top:28px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:rgba(244,241,234,.55)}
.fl-foot b{font-weight:400;color:#f4f1ea}

@media(max-width:980px){
  .ft-grid{grid-template-columns:1fr;gap:28px}
  .ft-screen{position:relative;top:0;min-height:0;order:-1}
  .fl-row{grid-template-columns:1fr 1fr}
  .fl-wire{display:none}
  .fl-row{padding-top:0}
}
@media(max-width:760px) and (orientation:portrait),(max-width:760px) and (min-height:501px){
  .ft{padding:12vh 16px 4vh}
  .fl{padding:8vh 16px 2vh}
  .ft-head{margin-bottom:32px}
  .ft-step button{padding:16px}
  .ft-body h3,.ft-body p,.ft-for{padding-left:16px;padding-right:16px}
  .fx-sc{padding:18px 14px 20px}
  .fx-call{grid-template-columns:1fr}
  .fl-row{grid-template-columns:1fr;gap:34px}
  /* phones: no boxes, each step hangs off its diamond on the pipe, its points
     as pills across the width (Ollie, 6 Nov 2026: too much black space in the box) */
  .fl-node{background:none;box-shadow:none;border-radius:0;padding:0 0 0 2px}
  .fl-node .fx-k{font-size:10px;margin-bottom:8px}
  .fl-node b{font-size:18px;line-height:1.3;letter-spacing:.02em;margin-bottom:14px}
  .fl-node ul{flex-direction:row;flex-wrap:wrap;gap:8px}
  .fl-node li{font-size:11.5px;line-height:1.3;color:rgba(244,241,234,.78);padding:7px 12px;border-radius:999px;background:rgba(244,241,234,.07)}
  .fl-node li::before{display:none}
}
@media(prefers-reduced-motion:reduce){
  .fx-sc.on,.fx-sc.on .fx-row,.fx-sc.on .fx-say p,.fx-sc.on .fx-cap dd{animation:none;opacity:1;transform:none}
  .fl-wire i{animation:none;display:none}
  .ft-step.on.run .ft-bar i{animation:none}
}
