/* Features page (features.html), on top of site.css. */
/* top of the page */
.fx-intro{max-width:1280px;margin:0 auto;padding:72px 24px 48px}
.fx-intro h1{margin:12px 0 0;max-width:860px;font-size:clamp(34px,4.6vw,52px);line-height:1.06;font-weight:700;letter-spacing:-.025em;color:var(--text);text-wrap:balance}
.fx-intro p{margin:16px 0 0;max-width:640px;font-size:18px;line-height:1.55;color:var(--n600);text-wrap:pretty}
.fx-intro .fx-btn{margin-top:28px}

/* the packages, with Your build held beside them */
.fx-wrap{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:32px;align-items:start;max-width:1280px;margin:0 auto;padding:0 24px 72px}
.fx-list{display:flex;flex-direction:column;gap:20px}
.fx-card{border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden}
.fx-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 20px;padding:24px 24px 20px}
.fx-head h2{margin:0;font-size:22px;line-height:30px;font-weight:700;color:var(--text)}
.fx-head p{margin:0;font-size:14px;line-height:21px;color:var(--n600)}
.fx-head .fx-pr{font-weight:600;color:var(--n700)}
.fx-head .fx-pkb{grid-column:2;grid-row:1 / span 2}

/* a tick box: empty, ticked, or a dash when a package has some of its modules in */
[aria-checked="true"] > .fx-tk,[aria-checked="mixed"] > .fx-tk{background:var(--primary);border-color:var(--primary)}
[aria-checked="true"] > .fx-tk .i-ok,[aria-checked="mixed"] > .fx-tk .i-dash{opacity:1}
/* in every build: ticked, pale, and not a control */
.fx-locked[aria-checked="true"] > .fx-tk{background:var(--primary-50);border-color:var(--primary-50);color:var(--primary)}
.fx-pkb{display:inline-flex;align-items:center;justify-content:safe center;gap:10px;height:40px;padding:0 14px;border:0;border-radius:10px;background:var(--primary-50);color:var(--primary);font-size:14px;line-height:22px;font-weight:600;white-space:nowrap;transition:background-color .16s}

/* a module: the whole row ticks it */
.fx-row{display:grid;grid-template-columns:22px 136px minmax(0,1fr) auto;grid-template-areas:"tk sh tx pr";align-items:center;gap:18px;width:100%;padding:16px 24px;border:0;border-top:1px solid var(--line);background:#fff;text-align:left;transition:background-color .16s}
.fx-row .fx-tk{grid-area:tk}
/* holding a row presses it: never a text selection or the phone's Save Image menu */
.fx-row{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.fx-shot{grid-area:sh;width:136px;height:auto;aspect-ratio:560/350;border-radius:8px;outline:1px solid var(--line);outline-offset:-1px;background:var(--page)}
.fx-tx{grid-area:tx;min-width:0}
.fx-tx b{display:block;font-size:16px;line-height:24px;font-weight:600;color:var(--text)}
.fx-tx > span{display:block;margin-top:4px;font-size:13.5px;line-height:20px;color:var(--n600)}
.fx-always{display:inline-block;margin-left:8px;padding:0 8px;border-radius:9999px;background:var(--primary-50);color:var(--primary);font-size:11.5px;line-height:20px;font-weight:600;font-style:normal;white-space:nowrap;vertical-align:1px}
.fx-p{grid-area:pr;font-size:15px;line-height:24px;font-weight:600;color:var(--text);white-space:nowrap}
.fx-inc{color:var(--primary)}
.fx-locked{cursor:default}
.fx-row.fx-pressed{background:var(--primary-50)}

/* Your build */
.fx-side{position:sticky;top:calc(var(--nav) + 24px)}
.fx-rc{display:flex;flex-direction:column;max-height:calc(100vh - var(--nav) - 48px);padding:24px;border:1px solid var(--line);border-radius:20px;background:#fff}
.fx-rh{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px}
.fx-rc h2{margin:0;font-size:20px;line-height:28px;font-weight:700;color:var(--text)}
/* Clear's words line up with the prices under it */
.fx-clear{height:32px;margin-right:-10px;padding:0 10px;border:0;border-radius:8px;background:none;color:var(--n600);font-size:13px;line-height:21px;font-weight:500;transition:background-color .16s,color .16s}
.fx-rlist{flex:0 1 auto;min-height:0;margin-top:12px;overflow-y:auto;scrollbar-width:thin}
.fx-g + .fx-g{margin-top:12px}
.fx-gn{margin-bottom:4px;font-size:11.5px;line-height:17px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--n500)}
.fx-i{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px;line-height:21px;color:var(--n700)}
.fx-i b{font-weight:600;color:var(--text);white-space:nowrap}
.fx-i .fx-inc{color:var(--primary)}
.fx-sum{flex:none;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.fx-line{display:flex;justify-content:space-between;gap:12px;font-size:14px;line-height:22px;color:var(--n600)}
.fx-tot{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:8px}
.fx-tot span{font-size:14px;line-height:22px;font-weight:600;color:var(--text)}
.fx-tot b{font-size:28px;line-height:36px;font-weight:700;color:var(--text)}
.fx-acts{flex:none;display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:18px}
.fx-terms{margin-bottom:4px;font-size:13px;line-height:22px}
.fx-terms.fx-miss .fx-tk{border-color:var(--bad)}
/* the fork: buy it, or book a call about it */
.fx-or{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;font-size:12.5px;line-height:18px;color:var(--n500)}
.fx-or::before,.fx-or::after{content:"";height:1px;background:var(--line)}
/* the note's room is the error's room, held at the longest error's height, so nothing moves when one shows */
.fx-say{flex:none;display:grid;margin-top:12px}
.fx-say p{grid-area:1/1;margin:0;font-size:13px;line-height:19px;color:var(--n600);transition:opacity .16s}
.fx-say .fx-bad{opacity:0;font-weight:500;color:var(--bad)}
.fx-say .fx-room{visibility:hidden;font-weight:500}
.fx-say.on p{opacity:0}
.fx-say.on .fx-bad{opacity:1}

/* the total's bar, where Your build isn't in view */
.fx-bar{display:none;position:sticky;bottom:0;z-index:20;background:#fff;border-top:1px solid var(--line)}
.fx-bar-in{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:10px 16px}
.fx-bar b{display:block;font-size:17px;line-height:25px;font-weight:700;color:var(--text)}
.fx-bar span{display:block;font-size:12.5px;line-height:18px;color:var(--n600);text-wrap:balance}
.fx-bar .fx-btn{flex:none;height:40px;padding:0 16px;font-size:14px;line-height:22px}

/* a window too short for the whole of Your build: the card scrolls as one */
@media (min-width:1001px) and (max-height:680px){
  .fx-rc{overflow-y:auto;scrollbar-width:thin}
  .fx-rlist{flex:none;overflow:visible}
}

@media (hover:hover){
  .fx-pkb:hover{background:var(--primary-100)}
  button.fx-row:hover{background:var(--hover)}
  .fx-clear:hover{background:var(--page);color:var(--text)}
}

@media (max-width:1000px){
  html{scroll-padding-bottom:92px}
  .fx-wrap{display:block;padding-bottom:24px}
  .fx-side{position:static;margin-top:16px}
  .fx-rc{max-height:none}
  .fx-rlist{overflow:visible}
  .fx-bar{display:block}
}
@media (max-width:640px){
  .fx-intro{padding:40px 20px 32px}
  .fx-intro h1{margin-top:10px;line-height:1.1}
  .fx-intro p{margin-top:12px;font-size:16px}
  .fx-intro .fx-btn{margin-top:22px}
  .fx-wrap{padding:0 12px 24px}
  .fx-list{gap:12px}
  .fx-head{grid-template-columns:minmax(0,1fr);padding:20px 16px 16px;gap:4px}
  .fx-head h2{grid-row:1;font-size:20px;line-height:28px}
  .fx-head p{grid-row:2}
  .fx-head .fx-pkb{grid-column:1;grid-row:3;justify-self:start;margin-top:10px}
  .fx-row{grid-template-columns:22px minmax(0,1fr) 96px;grid-template-areas:"tk tx sh" "tk pr sh";align-items:start;gap:4px 12px;padding:16px}
  .fx-shot{width:96px;border-radius:6px}
  .fx-tx b{font-size:15.5px;line-height:23px}
  .fx-p{justify-self:start;font-size:14px;line-height:22px}
  .fx-always{display:table;margin:4px 0 0}
  .fx-rc{padding:20px}
}
