/* =========================================================
   Company Profiles catalog — /company-profiles
   ========================================================= */
.cpl { max-width: var(--maxw); margin: clamp(1.5rem,4vw,3rem) auto clamp(4rem,8vw,7rem); padding: 0 1.5rem; }

.cpl__hero { text-align: center; margin-bottom: clamp(2rem,4vw,3rem); }
.cpl__eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); }
.cpl__title { font-family: var(--font-head); font-weight: 500; letter-spacing: -.03em; font-size: clamp(1.9rem,4.8vw,3.1rem); line-height: 1.05; margin: .8rem 0 .6rem; }
.cpl__sub { color: var(--ink-soft); font-size: clamp(1rem,2vw,1.15rem); max-width: 720px; margin: 0 auto; line-height: 1.5; }
.cpl__sub b { color: var(--ink); }

.cpl__search { display: flex; align-items: center; gap: .6rem; max-width: 640px; margin: 1.8rem auto 0;
  background: #fff; border: 1.5px solid rgba(58,54,224,.4); border-radius: 14px; padding: .55rem .6rem .55rem 1.1rem; box-shadow: 0 12px 34px rgba(16,18,60,.07); }
.cpl__search:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(58,54,224,.12); }
.cpl__search svg { color: #9499b0; flex: none; }
.cpl__search input { flex: 1; border: none; outline: none; background: none; font: inherit; font-size: 1.02rem; }

.cpl__chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.4rem; }
.cpl__chip { font-size: .85rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; transition: .15s var(--ease); }
.cpl__chip:hover { border-color: var(--indigo); color: var(--indigo); }
.cpl__chip.is-active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

.cpl__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; color: var(--ink-soft); font-size: .95rem; }
.cpl__clear { color: var(--indigo); }

.cpl__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ccprof { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.ccprof:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d6d4f5; }
.ccprof__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.ccprof__logo { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 500; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--indigo), #6a4bff); }
.ccprof__id { min-width: 0; }
.ccprof__id h2 { font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; line-height: 1.2; color: var(--ink); }
.ccprof__mkt { font-size: .8rem; color: var(--muted); }
.ccprof__snip { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; flex: 1; }
.ccprof__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1rem 0 1.2rem; }
.ccprof__tags li { font-size: .72rem; color: var(--ink-soft); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: .22rem .6rem; }
.ccprof__buy { width: 100%; justify-content: center; }

.cpl__empty { text-align: center; padding: clamp(3rem,8vw,6rem) 1rem; color: var(--ink-soft); }
.cpl__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.4rem; }
.cpl__pg { min-width: 40px; text-align: center; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft); font-size: .92rem; transition: .15s var(--ease); }
.cpl__pg:hover { border-color: var(--indigo); color: var(--indigo); }
.cpl__pg.is-active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* News */
.cpnews { margin-top: clamp(3rem,7vw,5rem); }
.cpnews__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.cpnews__head h2 { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.4rem,3vw,2rem); letter-spacing: -.02em; }
.cpnews__head a { color: var(--indigo); font-weight: 500; font-size: .92rem; }
.cpnews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cpnews__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.cpnews__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cpnews__cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--indigo); }
.cpnews__card h3 { font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; line-height: 1.25; margin: .6rem 0 .5rem; color: var(--ink); }
.cpnews__card p { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; flex: 1; }
.cpnews__date { color: var(--muted); font-size: .78rem; margin-top: 1rem; }

/* Buy email modal */
.cpmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.2rem; }
.cpmodal[hidden] { display: none; }
.cpmodal__bd { position: absolute; inset: 0; background: rgba(10,13,34,.55); backdrop-filter: blur(4px); }
.cpmodal__panel { position: relative; width: min(440px,100%); background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem,4vw,2.4rem); box-shadow: var(--shadow-lg); }
.cpmodal__x { position: absolute; right: 1rem; top: .8rem; background: none; border: none; font-size: 1.6rem; color: var(--muted); cursor: pointer; }
.cpmodal__panel h3 { font-family: var(--font-head); font-weight: 500; font-size: 1.4rem; }
.cpmodal__panel p { color: var(--ink-soft); margin: .5rem 0 1.2rem; }
.cpmodal__panel input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem; font: inherit; outline: none; }
.cpmodal__panel input:focus { border-color: var(--indigo); }
.cpmodal__panel .btn { width: 100%; justify-content: center; margin-top: 1rem; }
.cpmodal__err { color: #d6334b; font-size: .85rem; margin-top: .5rem; }

@media (max-width: 900px) { .cpl__grid, .cpnews__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .cpl__grid, .cpnews__grid { grid-template-columns: 1fr; } .cpl__search { flex-wrap: wrap; } .cpl__search .btn { width: 100%; justify-content: center; } }
