/* Features page. Loads after /styles.css and reuses its phone, bento, steps and panel styles. */

/* ── Hero: three real screens, fanned ── */
.fx-stage { margin-top: 64px; -webkit-mask-image: linear-gradient(#000 calc(100% - 150px), transparent 98%); mask-image: linear-gradient(#000 calc(100% - 150px), transparent 98%); }
.fx-stage .fit { width: 900px; height: 640px; }
.fx-stage .phone { top: 0; transform-origin: top center; transition: transform 1s var(--ease); }
.fx-p1 { left: 40px; transform: translateY(78px) rotate(-7deg) scale(.86); }
.fx-p2 { left: 265px; transform: scale(.95); z-index: 2; }
.fx-p3 { left: 490px; transform: translateY(78px) rotate(7deg) scale(.86); }
.fx-stage:hover .fx-p1 { transform: translate(-16px, 70px) rotate(-9deg) scale(.86); }
.fx-stage:hover .fx-p3 { transform: translate(16px, 70px) rotate(9deg) scale(.86); }
.fx-chip { position: absolute; z-index: 5; animation: fxbob 6s ease-in-out infinite; }
@keyframes fxbob { 50% { transform: translateY(-8px); } }

/* ── Regional note ── */
.fx-note { max-width: 820px; margin: 48px auto 0; background: var(--panel); border-radius: var(--radius); padding: clamp(28px, 4.5vw, 56px); }
.fx-note p { color: var(--fg-2); font-size: 16px; line-height: 1.7; }
.fx-note p + p { margin-top: 16px; }
.fx-note p:first-child { color: var(--fg); font-size: clamp(19px, 2vw, 23px); line-height: 1.45; letter-spacing: -.025em; }

/* ── Feature bento ── */
.fx-bento { grid-template-columns: repeat(3, 1fr); }
.fx-tile { min-height: 360px; gap: 26px; justify-content: flex-start; }
.fx-tile > div:last-child { margin-top: auto; }
.fx-tile h3 { font-size: 24px; font-weight: 400; letter-spacing: -.04em; line-height: 1.15; }
.fx-tile p { color: var(--fg-2); font-size: 14px; line-height: 1.55; margin-top: 6px; max-width: 46ch; }
.fx-wide { grid-column: span 2; }
.fx-art { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-family: var(--ios); color: var(--app-ink); }
.fx-wide .fx-art { flex-direction: row; align-items: flex-end; gap: 16px; }

.fx-pdf { background: #fff; border-radius: 10px; padding: 16px 18px 14px; width: min(100%, 380px); box-shadow: 0 1px 2px rgba(16, 29, 46, .05), 0 14px 30px -18px rgba(16, 29, 46, .3); font-family: var(--sans); transform: rotate(-1.5deg); }
.fx-pdf__h { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid var(--navy); padding-bottom: 8px; }
.fx-pdf__h span { display: flex; align-items: center; gap: 6px; font-family: var(--serif); font-size: 16px; color: var(--navy); }
.fx-pdf__h img { width: 13px; }
.fx-pdf__h b { font-size: 11px; font-weight: 600; }
.fx-pdf small { display: block; font-size: 9.5px; color: #6b7380; margin: 7px 0 6px; }
.fx-pdf__r { display: grid; grid-template-columns: 44px 1fr 26px; gap: 8px; font-size: 10.5px; padding: 6px 0; border-bottom: 1px solid #efede8; }
.fx-pdf__r span:first-child { font-weight: 600; }
.fx-pdf__r b { color: var(--navy); font-weight: 600; text-align: right; }
.fx-pdf .edited { margin-top: 8px; }
.fx-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--app-ink); color: #fff; border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 10px 22px -12px rgba(16, 35, 63, .6); }
.fx-btn .i { width: 16px; height: 16px; }

.fx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.fx-field { grid-column: span 2; background: #fff; border-radius: 12px; padding: 9px 12px; }
.fx-field.half { grid-column: span 1; }
.fx-field small { display: block; font-size: 11px; font-weight: 700; color: var(--app-muted); }
.fx-field span { font-size: 14px; font-weight: 600; }

.fx-rw { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.fx-rw__raw { background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; color: #6b7383; }
.fx-rw__mk { align-self: center; width: 30px; height: 30px; border-radius: 50%; background: var(--app-ink); color: #f2c56b; display: grid; place-items: center; }
.fx-rw__mk .i { width: 15px; height: 15px; }
.fx-rw__sug { background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.4; border-left: 3px solid var(--gold); }
.fx-kept { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-family: var(--sans); color: var(--green); font-weight: 500; }
.fx-kept .i { width: 13px; height: 13px; stroke-width: 2.4; }

.fx-tl { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.fx-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 9px 12px; color: #8b93a1; font-size: 13.5px; }
.fx-search .i { width: 15px; height: 15px; }
.fx-chips { display: flex; gap: 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
.fx-chips span { flex: none; background: #fff; border-radius: 9px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.fx-chips span.on { background: var(--app-ink); color: #fff; }
.fx-rec { background: #fff; border-radius: 12px; padding: 9px 12px; }
.fx-rec small { font-size: 10.5px; font-weight: 700; color: #6f7787; letter-spacing: .02em; }
.fx-rec span { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; margin-top: 3px; }
.fx-rec .ci { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; }
.fx-rec .ci .i { width: 12px; height: 12px; }

.fx-ev { background: #fff; border-radius: 16px; padding: 14px; width: 100%; display: flex; flex-direction: column; gap: 4px; }
.fx-ev small { font-size: 10.5px; font-weight: 700; color: #6f7787; letter-spacing: .02em; }
.fx-ev b { font-weight: 800; font-size: 15px; }
.fx-thumbs { display: flex; gap: 8px; margin: 8px 0 4px; }
.fx-thumbs span { width: 58px; height: 72px; border-radius: 10px; background: var(--app-bg); overflow: hidden; display: flex; flex-direction: column; gap: 5px; padding: 10px 7px; }
.fx-thumbs span img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; margin: -10px -7px; width: calc(100% + 14px); height: calc(100% + 20px); }
.fx-thumbs .chat i { display: block; flex: none; height: 6px; border-radius: 3px; background: #dcdce2; width: 76%; }
.fx-thumbs .chat i.me { background: #3b8bf6; align-self: flex-end; width: 60%; }
.fx-thumbs .photo { background: linear-gradient(160deg, #c9d8e8, #e9dcc6 60%, #b9c7a5); }
.fx-ev em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--app-muted); }
.fx-ev em .i { width: 13px; height: 13px; }

.fx-hist { display: flex; flex-direction: column; gap: 8px; width: min(100%, 420px); }
.fx-ver { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 13.5px; }
.fx-ver b { font-weight: 800; }
.fx-ver span { color: var(--app-muted); font-weight: 600; }
.fx-ver em { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: var(--green-soft); color: var(--green); }
.fx-ver.old { margin-left: 18px; opacity: .8; }
.fx-ver.old em { background: var(--gold-soft); color: var(--gold-ink); }
.fx-hist .edited { align-self: flex-start; font-family: var(--sans); font-size: 11px; padding: 4px 9px; border-radius: 7px; }

.fx-lock { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; padding-top: 8px; }
.fx-shield { width: 74px; height: 74px; border-radius: 20px; background: #fff; display: grid; place-items: center; box-shadow: 0 16px 30px -14px rgba(16, 29, 46, .35); }
.fx-shield img { width: 38px; }
.fx-lock .faceid { width: 54px; height: 54px; margin: 0; }
.fx-lock .toast { align-self: center; }
.fx-lock .toast .i { width: 14px; height: 14px; color: var(--green); }

/* ── Workflow minis ── */
.fx-notif { display: grid; grid-template-columns: 34px 1fr; gap: 10px; background: var(--app-bg); border-radius: 14px; padding: 11px 12px; }
.fx-notif .ico { width: 34px; height: 34px; border-radius: 8px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.fx-notif .ico img { width: 18px; }
.fx-notif .top { display: flex; justify-content: space-between; font-size: 13px; }
.fx-notif .top span { color: var(--app-muted); font-size: 12px; }
.fx-notif p { font-size: 13px; line-height: 1.35; margin-top: 1px; }
.fx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-kv { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid #f0eee8; font-size: 13.5px; }
.fx-kv span { color: var(--app-muted); font-weight: 600; }

/* ── Two notes ── */
.fx-notes .h3 { font-size: clamp(26px, 2.6vw, 34px); }
.fx-notes p { color: var(--fg-2); margin-top: 18px; line-height: 1.65; font-size: 15.5px; max-width: 48ch; }

@media (max-width: 960px) {
  .fx-bento { grid-template-columns: 1fr 1fr; }
  .fx-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .fx-bento { grid-template-columns: 1fr; }
  .fx-wide { grid-column: auto; }
  .fx-wide .fx-art { flex-direction: column; align-items: flex-start; }
  .fx-tile { min-height: 0; }
  .fx-chip { display: none; }
}
@media (max-width: 900px) { .fx-chip { display: none; } }
@media (prefers-reduced-motion: reduce) { .fx-chip { animation: none; } }
