/* ==========================================================================
   ADPOS — Who It's For (/solutions). Builds on site.css + features.css.
   Order follows the brief: hero → categories → challenges → why ADPOS → CTA.
   ========================================================================== */

/* ---------- Hero: centred copy, then four jump links to the categories ---------- */
.sx-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 1000px; margin-top: clamp(40px, 5vw, 60px); }
.sx-picks a {
  display: flex; align-items: center; gap: 12px; height: 100%; text-decoration: none; color: inherit; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s var(--ease);
}
.sx-picks a:hover, .sx-picks a:focus-visible { transform: translateY(-3px); border-color: #F3C894; box-shadow: 0 18px 34px -24px rgba(226, 126, 20, .55); }
.sx-tab__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(160deg, #FFF1E2, #FFE5C8); color: var(--orange-600); transition: background-color .25s, color .25s; }
.sx-tab__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sx-picks a:hover .sx-tab__icon { background: var(--orange); color: #fff; }
.sx-picks strong { color: var(--ink); font-size: .95rem; line-height: 1.3; }

/* ---------- Business categories: tabbed explorer ---------- */
/* No section menu on this page, so jumps only clear the header; land titles ~28px below it */
html:has(.page-solutions) { scroll-padding-top: var(--header-h); }
.sx-explorer { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(14px, 2vw, 20px); box-shadow: 0 40px 80px -60px rgba(18, 20, 22, .45); }
.sx-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 6px; background: var(--stone); border-radius: 16px; }
.sx-tabs button {
  display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.25;
  color: var(--muted); background: transparent; border: 0; border-radius: 12px; padding: 12px 14px; cursor: pointer;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.sx-tabs button:hover { color: var(--ink); }
.sx-tabs button small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--orange-600); margin-bottom: 2px; }
.sx-tabs .sx-tab__icon { background: rgba(255, 255, 255, .75); color: var(--muted); }
.sx-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(18, 20, 22, .3); }
.sx-tabs button[aria-selected="true"] .sx-tab__icon { background: var(--orange); color: #fff; }
.sx-panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(22px, 3.5vw, 44px) clamp(8px, 2vw, 24px) clamp(14px, 2vw, 20px); }
.sx-panel[hidden] { display: none; }
.sx-panel:not([hidden]) { animation: sxPanelIn .45s var(--ease); }
@keyframes sxPanelIn { from { opacity: 0; transform: translateY(10px); } }
.sx-panel__copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.025em; }
.sx-panel__for { margin-top: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.sx-panel__copy > p:not(.sx-panel__for) { color: var(--body); margin-top: 14px; }
.sx-panel__copy .checks { margin-top: 22px; gap: 12px; }
.sx-panel__copy .checks li { align-items: flex-start; font-weight: 600; line-height: 1.45; }
.sx-panel__copy .checks li::before { margin-top: 1px; }

/* ---------- Everyday challenges ---------- */
.sx-problems { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sx-problem {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px 26px;
  display: grid; gap: 10px; align-content: start; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.sx-problem:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -30px rgba(18, 20, 22, .4); }
.sx-problem__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #E5F1EF; color: var(--teal); margin-bottom: 6px; }
.sx-problem__icon svg, .sx-why svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sx-problem h3 { font-size: 1.08rem; line-height: 1.35; font-style: italic; }
.sx-problem p { color: var(--muted); font-size: .95rem; }

/* ---------- Why businesses choose ADPOS ---------- */
.sx-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.sx-why li { padding: 30px 26px 8px 0; display: grid; gap: 10px; align-content: start; }
.sx-why li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.sx-why h3 { font-size: 1.1rem; margin-top: 8px; }
.sx-why p { color: var(--muted); font-size: .95rem; }
.sx-why__si { font-family: var(--font-si); font-size: 24px; font-weight: 600; line-height: 1; padding-bottom: 2px; }

/* ---------- Final CTA: charcoal, white text, orange CTA, a little teal ---------- */
.sx-cta { background: var(--charcoal); }
.sx-cta::before { background: radial-gradient(closest-side, rgba(45, 107, 107, .45), transparent); }
.sx-cta__eyebrow { color: #F7B267; }
.sx-cta h2 { max-width: 18ch; }
.sx-cta__help { margin-top: 26px; font-size: .95rem; color: #BFC3C8; max-width: 36em; }
.sx-cta__help a { color: #fff; font-weight: 700; text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sx-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-why li:nth-child(3) { padding-left: 0; border-left: 0; }
  .sx-why li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 899px) {
  .sx-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sx-picks a { flex-direction: column; text-align: center; padding: 14px 10px; gap: 8px; }
  .sx-picks strong { font-size: .86rem; }
  .sx-tabs button { flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: .82rem; padding: 12px 6px; }
  .sx-problems, .sx-why { grid-template-columns: 1fr; }
  .sx-why li, .sx-why li + li { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--line); }
  .sx-why li:first-child { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-problem:hover, .sx-picks a:hover, .sx-picks a:focus-visible { transform: none; }
}
