/* Features hub: a list of shop problems; the open one's answer sits in a sticky column on wide screens and right
   under its question on phones. Then every feature, grouped in columns. */

.fx-hero { padding-top: 140px; padding-bottom: 34px }
.fx-hero .h-xl { max-width: 14ch }

.fx-pick { position: relative; padding-bottom: clamp(60px, 9vh, 110px) }
.fx-qh { width: 46%; margin: 0; font-size: inherit }
.fx-q { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 4px 17px 18px; border-top: 1px solid var(--border); border-left: 4px solid transparent;
  font: 700 clamp(18px, 1.45vw, 22px)/1.3 var(--font); letter-spacing: -0.01em; color: var(--muted); transition: color .15s, border-color .15s, background .15s }
.fx-qh:last-of-type .fx-q { border-bottom: 1px solid var(--border) }
.fx-q:hover { color: var(--ink) } .fx-q:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: -3px }
.fx-q .ic { flex: none; color: var(--link); opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .15s }
.fx-q[aria-expanded="true"] { color: var(--ink); border-left-color: var(--sky); background: linear-gradient(90deg, #EAF6FE, rgba(234,246,254,0)) }
.fx-q[aria-expanded="true"] .ic { opacity: 1; transform: none }

/* wide screens: the open answer fills the right column beside the whole list, and its card sticks while you scroll */
.fx-p { position: absolute; top: 0; bottom: clamp(60px, 9vh, 110px); right: var(--gl); width: calc((100% - 2 * var(--gl)) * .5) }
.fx-pin { position: sticky; top: 104px; padding: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: 0 40px 80px -60px rgba(0,49,91,.45) }
.fx-p:not([hidden]) .fx-pin { animation: fx-in .3s cubic-bezier(.2,.7,.2,1) } @keyframes fx-in { from { opacity: 0; transform: translateY(8px) } }
.fx-a { margin: 0; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; color: var(--ink) }
.fx-note { width: 46%; margin: 14px 0 0 }

/* the sample, drawn small in the app's words */
.fx-s { margin: 22px 0 0; padding: 16px 18px; border-radius: 16px; background: #F3F7FD; border: 1px solid #E3ECF8 }
.fx-s figcaption { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px }
.fx-s dl { margin: 0; display: grid; gap: 2px }
.fx-s dl div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed #D9E4F2; font-size: 15px } .fx-s dl div:last-child { border-bottom: 0 }
.fx-s dt { color: var(--muted) } .fx-s dd { margin: 0; font-weight: 800; color: var(--ink); white-space: nowrap }
.fx-s-owe dl div:first-child { padding: 10px 12px; margin-bottom: 4px; border: 0; border-radius: 12px; background: linear-gradient(150deg, #0B2545, #13315C) }
.fx-s-owe dl div:first-child dt { color: rgba(255,255,255,.8); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; align-self: center } .fx-s-owe dl div:first-child dd { color: #fff; font-size: 19px }
.fx-s-galla dl div:first-child dd { color: #00795C; font-size: 19px }
.fx-msg { margin: 0; max-width: 34em; padding: 11px 14px; border-radius: 4px 14px 14px 14px; background: #fff; box-shadow: 0 1px 2px rgba(31,35,40,.08); font-size: 15px; line-height: 1.5; color: #1B2733 }
.fx-s-ask { background: #E9E2D6; border-color: #E0D7C7 } .fx-s-ask figcaption { color: #5B5446 }
.fx-s-stock .fx-msg { border-left: 4px solid #FF8A00; border-radius: 10px; font-weight: 600 }
.fx-s-time .fx-msg { margin-left: auto; width: fit-content; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #fff }
.fx-card { margin: 10px 0 0; width: fit-content; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1.5px solid var(--sky); font-size: 14.5px; color: var(--ink) }
.fx-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.fx-ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600 }
.fx-ticks li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #B8CBE2; background: #fff }
.fx-ticks li.done { color: var(--faint); text-decoration: line-through }
.fx-ticks li.done::before { border-color: var(--teal); background: var(--teal) }
.fx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px }
.fx-chips li { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1.5px solid var(--border); font-size: 14px; font-weight: 600; color: var(--ink) }
.fx-chips li:first-child { background: var(--ink); border-color: var(--ink); color: #fff }

.fx-links { list-style: none; margin: 20px 0 0; padding: 0; border-bottom: 1px solid var(--border) }
.fx-links li { border-top: 1px solid var(--border) }
.fx-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 14px 2px; text-decoration: none; color: inherit }
.fx-links b { font-size: 18px; color: var(--link) } .fx-links span { grid-column: 1; color: var(--muted); font-size: 15px }
.fx-links .ic { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--link); transition: transform .2s }
.fx-links a:hover b { text-decoration: underline } .fx-links a:hover .ic { transform: translateX(4px) }
.fx-links a:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: 2px }

/* every feature */
.fx-index { background: linear-gradient(180deg, var(--bg), #EEF5FE 25%, #EEF5FE 75%, var(--bg)) }
.ix-groups { margin-top: 36px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink) }
.ix-g { padding: 20px 20px 10px 0 } .ix-g + .ix-g { padding-left: 20px; border-left: 1px solid #D5E3F5 }
.ix-g h3 { margin: 0 0 6px; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint) }
.ix-g ul { list-style: none; margin: 0; padding: 0 }
.ix-g a, .ix-g .soon { display: block; padding: 10px 0; text-decoration: none; color: inherit; border-bottom: 1px solid #DDE8F6 }
.ix-g b { display: block; font-size: 16.5px; color: var(--ink) } .ix-g span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted) }
.ix-g a:hover b { color: var(--link); text-decoration: underline } .ix-g a:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: 2px }

@media (max-width: 1180px) { .ix-groups { grid-template-columns: repeat(3, minmax(0, 1fr)) } .ix-g:nth-child(4) { padding-left: 0; border-left: 0 } }
@media (max-width: 900px) {
  .fx-hero { padding-top: 110px }
  .fx-qh, .fx-note { width: auto } .fx-p { position: static; width: auto; margin: 4px 0 18px } .fx-pin { position: static; padding: 18px }
  .fx-q { padding-left: 14px } .fx-q .ic { opacity: 1; transform: rotate(90deg) } .fx-q[aria-expanded="true"] .ic { transform: rotate(-90deg) }
}
@media (max-width: 700px) { .ix-groups { grid-template-columns: minmax(0, 1fr) } .ix-g, .ix-g + .ix-g, .ix-g:nth-child(4) { padding-left: 0; border-left: 0 } }
@media (prefers-reduced-motion: reduce) { .fx-q, .fx-q .ic, .fx-links .ic { transition: none } .fx-p:not([hidden]) .fx-pin { animation: none } }
