/* "Core Features of …" section on industry & module pages (markup: app/Support/CoreFeatures.php, tabs: [data-cf] in site.js).
   Self-contained like home.css: the Tailwind bundle is purged, so nothing here relies on utility classes. */
.cf-sec { padding:56px 16px; background:linear-gradient(180deg,#fff 0%,#faf8ff 55%,#fff 100%); }
.cf { --brand:#271151; --brand2:#57349f; --soft:#f7f5fc; --line:#ebe6f5; --text:#231a3a; --muted:#5d5675; max-width:1180px; margin:0 auto; color:var(--text); }
.cf *, .cf *::before, .cf *::after { box-sizing:border-box; }

.cf-head { max-width:820px; margin:0 auto 32px; text-align:center; }
.cf-eyebrow { display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border-radius:99px; background:#efeaf9; color:var(--brand2); font-weight:800; font-size:12.5px; letter-spacing:.06em; text-transform:uppercase; }
.cf-eyebrow i { width:7px; height:7px; border-radius:50%; background:var(--brand2); box-shadow:0 0 0 4px rgba(87,52,159,.2); }
.cf-head h2 { font-family:hankenGrotesk, Inter, system-ui, sans-serif; font-size:clamp(26px,3.4vw,40px); line-height:1.15; font-weight:800; letter-spacing:-.02em; color:var(--brand); margin:14px 0 12px; text-wrap:balance; }
.cf-head p { margin:0; font-size:16.5px; line-height:1.65; color:var(--muted); }
.cf a { color:var(--brand2); font-weight:600; text-decoration:underline; text-underline-offset:2px; }

.cf-box { display:grid; grid-template-columns:minmax(260px,330px) 1fr; border:1px solid var(--line); border-radius:28px; background:#fff; overflow:hidden; box-shadow:0 30px 60px -40px rgba(39,17,81,.35); }

/* group tabs */
.cf-tabs { display:flex; flex-direction:column; gap:4px; padding:14px; background:var(--soft); border-right:1px solid var(--line); }
.cf-tab { all:unset; box-sizing:border-box; display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px; border-radius:16px; cursor:pointer; color:var(--text); font-weight:700; font-size:14.5px; line-height:1.3; transition:background-color .18s, color .18s, box-shadow .18s; }
.cf-tab:hover { background:#fff; color:var(--brand); }
.cf-tab:focus-visible { outline:3px solid rgba(87,52,159,.45); outline-offset:1px; }
.cf-num { flex:none; display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:10px; background:#fff; border:1px solid var(--line); color:var(--brand2); font-size:12.5px; font-weight:800; transition:.18s; }
.cf-tab-t { flex:1; min-width:0; }
.cf-count { flex:none; min-width:26px; padding:2px 8px; border-radius:99px; background:#ece6fa; color:var(--brand2); font-size:11.5px; font-weight:800; text-align:center; transition:.18s; }
.cf-tab.is-active { background:linear-gradient(135deg,#3a1a78,#271151); color:#fff; box-shadow:0 14px 26px -14px rgba(39,17,81,.7); }
.cf-tab.is-active .cf-num { background:rgba(255,255,255,.14); border-color:transparent; color:#fff; }
.cf-tab.is-active .cf-count { background:rgba(255,255,255,.16); color:#fff; }

/* active group */
.cf-panels { display:flex; padding:30px 34px 28px; min-width:0; }
.cf-panel { display:none; }
.cf-panel.is-active { display:flex; flex-direction:column; width:100%; animation:cfIn .28s ease; }
.cf-panel:focus-visible { outline:none; }
.cf-panel-head { padding-bottom:18px; margin-bottom:8px; border-bottom:1px solid var(--line); }
.cf-panel-num { display:block; margin-bottom:6px; color:var(--brand2); font-size:12px; font-weight:800; letter-spacing:.08em; }
.cf-panel-head h3 { font-family:hankenGrotesk, Inter, system-ui, sans-serif; margin:0; font-size:24px; line-height:1.25; font-weight:800; letter-spacing:-.01em; color:var(--brand); }
.cf-panel-head p { margin:8px 0 0; font-size:15.5px; line-height:1.65; color:var(--muted); }
.cf-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; column-gap:28px; }
.cf-list li { display:flex; align-items:flex-start; gap:11px; padding:12px 2px; border-bottom:1px dashed #e4ddf3; font-size:15px; font-weight:600; line-height:1.45; color:var(--text); }
.cf-list svg { flex:none; width:22px; height:22px; margin-top:-1px; padding:3px; border-radius:50%; background:#efeaf9; color:var(--brand2); }
.cf-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:24px; }
.cf .cf-demo { display:inline-flex; align-items:center; gap:8px; padding:11px 20px; border-radius:99px; background:var(--brand); color:#fff; font-weight:800; font-size:14px; text-decoration:none; box-shadow:0 10px 22px -10px rgba(39,17,81,.6); transition:background-color .18s, transform .18s; }
.cf .cf-demo:hover { background:#3f1b80; color:#fff; transform:translateY(-1px); }
.cf-next { all:unset; box-sizing:border-box; display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:99px; border:1px solid var(--line); color:var(--brand); font-weight:700; font-size:14px; cursor:pointer; transition:border-color .18s, color .18s; }
.cf-next:hover { border-color:var(--brand2); color:var(--brand2); }
.cf-next:focus-visible { outline:3px solid rgba(87,52,159,.45); outline-offset:2px; }
.cf-foot svg { width:16px; height:16px; flex:none; }
@keyframes cfIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

@media (max-width:1023px) {
  .cf-box { grid-template-columns:240px 1fr; }
  .cf-panels { padding:26px 24px 28px; }
  .cf-list { grid-template-columns:1fr; }
}
/* phones & small tablets: tabs become a swipeable chip row above the list */
@media (max-width:767px) {
  .cf-sec { padding:44px 16px; }
  .cf-head { margin-bottom:22px; }
  .cf-head p { font-size:15.5px; }
  .cf-box { display:block; border-radius:22px; }
  .cf-tabs { flex-direction:row; gap:8px; padding:12px; border-right:0; border-bottom:1px solid var(--line); overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
  .cf-tabs::-webkit-scrollbar { display:none; }
  .cf-tabs { -webkit-mask-image:linear-gradient(90deg,#000 82%,transparent); mask-image:linear-gradient(90deg,#000 82%,transparent); }
  .cf-tab { width:auto; flex:none; scroll-snap-align:start; padding:9px 14px; gap:8px; border-radius:99px; background:#fff; border:1px solid var(--line); font-size:13.5px; white-space:nowrap; }
  .cf-tab.is-active { border-color:transparent; }
  .cf-num { display:none; }
  .cf-count { min-width:22px; padding:1px 7px; font-size:11px; }
  .cf-panels { padding:20px 18px 22px; }
  .cf-foot { padding-top:18px; }
  .cf-foot > * { flex:1 1 auto; justify-content:center; }
  .cf-panel-head h3 { font-size:20px; }
  .cf-panel-head p { font-size:15px; }
  .cf-list li { padding:11px 0; font-size:14.5px; }
}
