/* Features page (features.html): built from the home page's paper pieces (style.css), only the new blocks are here. */
.fx-hero { min-height: 820px; }
.fx-back { display: inline-flex; margin-bottom: 18px; color: #6b6356; font-size: 12px; font-weight: 800; }
.fx-back:hover { color: var(--coral); }
.fx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fx-center { justify-content: center; }
.button.fx-ghost { color: var(--ink); background: rgba(255, 255, 255, .62); box-shadow: 0 10px 22px rgba(20, 41, 61, .1), inset 0 0 0 1px rgba(20, 41, 61, .12); }

/* How it works: a paper band like the home page's .signal, three steps and the flow picture. */
.fx-flow { position: relative; z-index: 8; width: min(1180px, calc(100% - 42px)); margin: -60px auto 40px; padding: 34px 36px 26px; color: var(--ink); background: #f1dfbd url('/assets/paper-bg.png') center/700px auto; box-shadow: 0 28px 58px rgba(62, 43, 27, .22); transform: rotate(-.8deg); clip-path: polygon(1% 5%, 17% 1%, 34% 4%, 53% 0, 73% 4%, 99% 2%, 98% 49%, 100% 96%, 81% 99%, 63% 96%, 46% 100%, 27% 97%, 1% 99%); }
.fx-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fx-steps li { position: relative; padding: 16px 16px 16px 58px; border: 1px dashed rgba(68, 55, 38, .22); border-radius: 16px; background: rgba(255, 250, 240, .45); }
.fx-steps span { position: absolute; left: 14px; top: 15px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); background: var(--cyan); font: 800 16px "Tektur", sans-serif; }
.fx-steps li:nth-child(2) span { color: #fff; background: var(--coral); }
.fx-steps li:nth-child(3) span { color: #fff; background: var(--violet); }
.fx-flow .console-label { color: #6b6356; }
.fx-steps b { display: block; font: 800 17px/1.15 "Tektur", sans-serif; letter-spacing: -.02em; }
.fx-steps small { display: block; margin-top: 5px; color: #5f5a50; font-size: 12px; line-height: 1.45; font-weight: 600; }
.fx-flow-art { display: block; width: min(760px, 100%); margin: 14px auto 0; filter: drop-shadow(0 18px 22px rgba(61, 43, 28, .2)); }

/* A feature section: paper title, feature slips and screenshots in phone frames. */
.fx-section { position: relative; width: min(1260px, calc(100% - 42px)); margin: 0 auto; padding: 70px 0 40px; isolation: isolate; }
.fx-title { width: min(640px, 92%); }
.fx-section.is-flip .fx-title { margin-left: auto; transform: rotate(2deg); --final-rotate: 2deg; }
.fx-body { margin-top: -26px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.fx-section.is-flip .fx-cards { order: 2; }
.fx-cards { position: relative; z-index: 6; align-self: center; padding-top: 52px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fx-card { padding: 16px 18px; display: grid; gap: 5px; align-content: start; background: #f2dcae url('/assets/paper-bg.png') center/430px auto; box-shadow: 0 10px 22px rgba(62, 43, 27, .16); transform: rotate(-.6deg); }
.fx-card:nth-child(even) { transform: rotate(.7deg) translateY(10px); }
.fx-card b { font: 800 16px/1.15 "Tektur", sans-serif; letter-spacing: -.02em; }
.fx-card b::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 3px; background: var(--coral); vertical-align: 2px; }
.fx-card:nth-child(3n+2) b::before { background: var(--cyan); }
.fx-card:nth-child(3n) b::before { background: var(--violet); }
.fx-card small { color: #5f5a50; font-size: 12px; line-height: 1.45; font-weight: 700; }
.fx-shots { position: relative; z-index: 5; display: flex; justify-content: center; align-items: flex-start; gap: 0; padding-top: 10px; }
.fx-shot { position: relative; width: min(300px, 62%); margin: 0; }
.fx-shots-1 .fx-shot { width: min(330px, 80%); }
.fx-shots-2 .fx-shot:first-child { z-index: 2; transform: rotate(-3deg); }
.fx-shots-2 .fx-shot:last-child { margin: 70px 0 0 -14%; transform: rotate(3deg); }
.fx-shot img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border: 7px solid var(--ink); border-radius: 30px; background: #f3e6cc; box-shadow: 0 26px 46px rgba(54, 39, 27, .28); }
.fx-shot figcaption { width: max-content; max-width: 100%; margin: -14px auto 0; position: relative; padding: 6px 12px 8px; color: #fff; background: var(--coral); font: 800 12px/1.2 "Tektur", sans-serif; transform: rotate(-1.5deg); }
.fx-shot:nth-child(2) figcaption { color: var(--ink); background: var(--cyan); transform: rotate(1.5deg); }
.fx-safe-art { margin: 0; align-self: center; }
.fx-safe-art img { width: 100%; max-width: 100%; }
.features-page .finale { margin-top: 40px; }

@media (max-width: 1100px) {
  .fx-hero { min-height: auto; }
  .fx-body { grid-template-columns: 1fr; gap: 24px; }
  .fx-section.is-flip .fx-cards { order: 0; }
  .fx-section.is-flip .fx-title { margin-left: auto; }
}
@media (max-width: 700px) {
  .fx-flow { width: calc(100% - 20px); margin-top: -20px; padding: 26px 18px 20px; }
  .fx-steps { grid-template-columns: 1fr; gap: 10px; }
  .fx-section { width: calc(100% - 20px); padding: 46px 0 26px; }
  .fx-title { width: 96%; }
  .fx-cards { grid-template-columns: 1fr; padding-top: 40px; gap: 10px; }
  .fx-card, .fx-card:nth-child(even) { transform: none; }
  .fx-card b { font-size: 15px; }
  .fx-shot { width: 64%; }
  .fx-shots-1 .fx-shot { width: 74%; }
  .fx-shots-2 .fx-shot:last-child { margin-top: 50px; }
  .fx-actions .button { flex: 1 1 auto; }
}

html[data-theme="dark"] .fx-card, html[data-theme="dark"] .fx-flow { background-blend-mode: multiply; }
html[data-theme="dark"] .fx-card { color: #efe5d4; background-color: #302d26; }
html[data-theme="dark"] .fx-card small, html[data-theme="dark"] .fx-back { color: #b9b0a1; }
html[data-theme="dark"] .fx-flow { color: #f2eadc; background-color: #252722; }
html[data-theme="dark"] .fx-steps li { background: rgba(255, 255, 255, .04); border-color: rgba(241, 233, 218, .16); }
html[data-theme="dark"] .fx-steps small, html[data-theme="dark"] .fx-flow .console-label { color: #b9b0a1; }
html[data-theme="dark"] .button.fx-ghost { color: #f1e9da; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(241, 233, 218, .2); }
html[data-theme="dark"] .fx-shot img { border-color: #11161a; }
