/* Blixtflow – Fortnox-integrationens sida (prefix fn-; fx- används redan av funktionssidan i inner.css).
   Hjälten visar ett ärende med Fortnox-panelen bredvid – samma uppställning som i appen, så att den
   som granskar integrationen (Fortnox) ser exakt vad kunden får. Bygger på ai.css. */

/* ==========================================================================
   1. Hjälten – ärendet och panelen
   ========================================================================== */
.fn-show { position: relative; display: grid; place-items: center; }
.fn-app {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); width: min(560px, 100%);
  border-radius: 18px; overflow: hidden; color: var(--ink); background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -30px rgba(0, 0, 0, .85);
}
.fn-thread { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.fn-thread__h { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fn-thread__h b { font-size: .95rem; }
.fn-thread__h small, .fn-cust small, .fn-inv small { font-size: .74rem; color: var(--muted); }
.fn-msg { padding: 12px 14px; border-radius: 4px 14px 14px 14px; font-size: .84rem; line-height: 1.5; background: var(--soft); }
.fn-reply { display: grid; gap: 6px; margin-top: auto; padding: 12px 14px; border-radius: 12px; font-size: .82rem; font-weight: 600; border: 1px dashed var(--line-2); }
.fn-reply__l { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primar-ink); }
.fn-panel { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border-left: 1px solid var(--line); background: #fbfafc; }
.fn-panel__h { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 750; }
.fn-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: .64rem; font-weight: 800; color: #fff; background: #1d6b3a; }
.fn-cust { display: grid; gap: 1px; }
.fn-cust b { font-size: .86rem; }
.fn-sum { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--muted); }
.fn-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.fn-sum--bad b { color: var(--bad); }
.fn-inv { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.fn-inv__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; }
.fn-pill { padding: 2px 8px; border-radius: 999px; font-size: .66rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.fn-pill--ok { color: #17663a; background: #e3f5ea; }
.fn-pill--warn { color: #8a5a00; background: #fdf1d6; }
.fn-pill--bad { color: #a8281e; background: #fde4e1; }
.fn-btn { margin-top: 4px; padding: 9px 10px; border-radius: 10px; font-size: .78rem; font-weight: 700; text-align: center; color: var(--natt); background: var(--gnista); }
.motion .fn-app { animation: pop-in .9s .2s var(--spring) backwards; }
.motion .fn-inv { animation: chp-pop .6s var(--spring) backwards; animation-delay: calc(.9s + var(--i) * .15s); }
.motion .fn-reply { animation: chp-pop .6s 1.6s var(--spring) backwards; }
@media (max-width: 599px) {
  .fn-app { grid-template-columns: 1fr; }
  .fn-panel { border-left: 0; border-top: 1px solid var(--line); }
}

/* ==========================================================================
   2. Funktionerna
   ========================================================================== */
.fn-feats { background: var(--soft); }
.fn-grid { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 700px) { .fn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .fn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fn-card { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: var(--r-3); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.fn-card__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--primar-ink); background: var(--ton); }
.fn-card__ic .ic { width: 20px; height: 20px; }
.fn-card h3 { font-size: 1.05rem; font-weight: 750; }
.fn-card p { color: var(--ink-2); line-height: 1.6; }

/* ==========================================================================
   3. Säkerhet, behörigheter och krav
   ========================================================================== */
.fn-sec .lp-split { align-items: start; }
.fn-sec .h2 + .lead { margin-top: 16px; }
.fn-points, .fn-req { display: grid; gap: 12px; margin-top: 26px; }
.fn-points li, .fn-req li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; color: var(--ink-2); }
.fn-points .ic, .fn-req .ic { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--primar-ink); }
.fn-scopes { padding: 28px; border-radius: var(--r-3); background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.fn-scopes h3 { font-size: 1.05rem; font-weight: 750; }
.fn-scopes dl { display: grid; gap: 14px; margin-top: 16px; }
.fn-scopes dl > div { padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.fn-scopes dt { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.fn-scopes dt .ic { width: 16px; height: 16px; color: var(--primar-ink); }
.fn-scopes dd { margin-top: 4px; font-size: .92rem; color: var(--ink-2); line-height: 1.55; }
.fn-req__h { margin-top: 28px; }
.fn-req { margin-top: 14px; gap: 9px; }

/* ==========================================================================
   4. Hjälp
   ========================================================================== */
.fn-help { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 24px; border-radius: var(--r-3); background: var(--soft); box-shadow: 0 0 0 1px var(--line); }
.fn-help__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--natt); background: var(--gnista); }
.fn-help__ic .ic { width: 20px; height: 20px; }
.fn-help h3 { font-size: 1.05rem; font-weight: 750; }
.fn-help p { margin-top: 4px; color: var(--ink-2); line-height: 1.6; }
.fn-help a { color: var(--primar-ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
