/* Connect Products — product pages and clickable tours.
 * Uses the Connect Network theme's tokens (--cn-*) with fallbacks, so it also looks right under another theme. */

.cnp {
  --p-navy: var(--cn-navy, #0f1c3f);
  --p-blue: var(--cn-blue, #1a3a8f);
  --p-gold: var(--cn-gold, #f5a623);
  --p-gold-dark: var(--cn-gold-dark, #d4890a);
  --p-ink: var(--cn-ink, #111827);
  --p-muted: var(--cn-muted, #667085);
  --p-soft: var(--cn-soft, #f8f7f4);
  --p-sand: var(--cn-sand, #f0ede8);
  --p-border: var(--cn-border, #e5e7eb);
  --p-radius-lg: var(--cn-radius-lg, 24px);
  --p-radius-md: var(--cn-radius-md, 16px);
  --p-shadow: var(--cn-shadow, 0 24px 55px rgba(15, 28, 63, 0.14));
  color: var(--p-ink);
}
.cnp *, .cnp *::before, .cnp *::after { box-sizing: border-box; }
.cnp--ar { font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; }
.cnp--ar .cn-eyebrow { letter-spacing: 0; }
.cnp .cnp-icon { flex-shrink: 0; }
.cnp img { max-width: 100%; }

/* theme building blocks, for when the plugin runs under another theme */
.cnp .cn-container { width: min(calc(100% - 48px), var(--cn-max, 1180px)); margin-inline: auto; }
.cnp .cn-section { padding: 88px 0; }
.cnp .cn-eyebrow { margin: 0 0 12px; color: var(--p-gold-dark); font-size: 12px; font-weight: 800; letter-spacing: .18em; line-height: 1.4; text-transform: uppercase; }
.cnp .cn-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 13px; background: var(--p-navy); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; transition: background .15s, box-shadow .15s, transform .15s; }
.cnp .cn-button:hover { background: var(--p-blue); box-shadow: 0 10px 22px rgba(15, 28, 63, .16); transform: translateY(-2px); color: #fff; }
.cnp .cn-button--gold { background: var(--p-gold); color: var(--p-navy); }
.cnp .cn-button--gold:hover { background: #e09600; color: var(--p-navy); }
.cnp .cn-button--outline { border: 1px solid rgba(15, 28, 63, .22); background: transparent; color: var(--p-navy); }
.cnp .cn-button--outline:hover { background: rgba(15, 28, 63, .06); color: var(--p-navy); }
.cnp .cn-button:focus-visible, .cnp a:focus-visible, .cnp button:focus-visible { outline: 3px solid rgba(245, 166, 35, .6); outline-offset: 2px; }

.cnp-h2 { margin: 0 0 36px; color: var(--p-navy); font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; }
.cnp--ar .cnp-h2, .cnp--ar .cnp-hero__title { letter-spacing: 0; line-height: 1.3; }

/* ---------------------------------------------------------------- hero */
.cnp-hero { padding: 40px 0 36px; background: linear-gradient(180deg, var(--p-soft), #fff); }
.cnp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 36px; color: var(--p-muted); font-size: 14px; }
.cnp-crumbs a { color: var(--p-blue); font-weight: 700; text-decoration: none; }
.cnp-crumbs a:hover { text-decoration: underline; }
.cnp-lang { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; padding: 6px 12px; border: 1px solid var(--p-border); border-radius: 999px; background: #fff; color: var(--p-navy) !important; font-weight: 700; text-decoration: none !important; }
.cnp-lang:hover { border-color: var(--p-gold); }
.cnp-hero__copy { max-width: 780px; }
.cnp-hero .cn-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cnp-hero__title { margin: 0 0 14px; color: var(--p-navy); font-size: clamp(40px, 6vw, 72px); font-weight: 950; letter-spacing: -.055em; line-height: 1; }
.cnp-hero--index .cnp-hero__title { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.045em; line-height: 1.05; }
.cnp-hero__tagline { margin: 0 0 14px; color: var(--p-blue); font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; line-height: 1.3; }
.cnp-hero__summary { margin: 0 0 28px; color: #4a5568; font-size: 18px; line-height: 1.65; }
.cnp-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cnp-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cnp-badge--available { background: #dcfce7; color: #166534; }
.cnp-badge--soon { background: #fef3c7; color: #92400e; }
.cnp--ar .cnp-badge { letter-spacing: 0; }

.cnp-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.cnp-platforms li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--p-border); border-radius: 999px; background: #fff; color: var(--p-navy); font-size: 13px; font-weight: 700; }

/* ---------------------------------------------------------------- tour */
.cnp-tour-section { padding: 12px 0 72px; }
.cnp-tour { display: grid; gap: 28px; align-items: center; outline: none; }
.cnp-tour--laptop { grid-template-columns: 1fr; }
.cnp-tour--phone { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); justify-content: center; gap: 56px; }

.cnp-device { position: relative; margin-inline: auto; width: 100%; }
.cnp-device__screen { position: relative; overflow: hidden; background: #0b1222; }
.cnp-device__screen img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease; }
.cnp-device__screen.is-changing img { opacity: .35; }

/* laptop: dark bezel, camera dot and a base */
.cnp-device--laptop { max-width: 1100px; padding: 18px 18px 22px; border-radius: 22px 22px 8px 8px; background: #111827; box-shadow: var(--p-shadow); }
.cnp-device--laptop::before { content: ""; position: absolute; top: 7px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #374151; transform: translateX(-50%); }
.cnp-device--laptop::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -16px; height: 16px; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #cbd5e1, #94a3b8); }
.cnp-device--laptop .cnp-device__screen { border-radius: 6px; }

/* phone: rounded body with a camera island */
.cnp-device--phone { max-width: 360px; padding: 12px; border-radius: 48px; background: #0b1222; box-shadow: var(--p-shadow), inset 0 0 0 2px #283247; }
.cnp-device--phone::before { content: ""; position: absolute; z-index: 2; top: 22px; left: 50%; width: 30%; height: 22px; border-radius: 999px; background: #0b1222; transform: translateX(-50%); }
.cnp-device--phone .cnp-device__screen { border-radius: 38px; }

/* hotspots: pulse until the visitor has clicked one */
.cnp-tour__spots { position: absolute; inset: 0; }
.cnp-spot { position: absolute; padding: 0; border: 2px solid var(--p-gold); border-radius: 10px; background: rgba(245, 166, 35, .12); cursor: pointer; animation: cnp-pulse 1.8s ease-out infinite; transition: background .15s; }
.cnp-spot:hover, .cnp-spot:focus-visible { background: rgba(245, 166, 35, .3); animation: none; outline: none; }
.cnp-tour.was-clicked .cnp-spot { animation: none; border-color: rgba(245, 166, 35, .75); background: rgba(245, 166, 35, .06); }
@keyframes cnp-pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, .55); } 70% { box-shadow: 0 0 0 10px rgba(245, 166, 35, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); } }
@media (prefers-reduced-motion: reduce) { .cnp-spot { animation: none; } .cnp-device__screen img { transition: none; } }

.cnp-tour__panel { max-width: 560px; }
.cnp-tour--laptop .cnp-tour__panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 32px; max-width: 1100px; width: 100%; margin: 18px auto 0; }
.cnp-tour--laptop .cnp-tour__count, .cnp-tour--laptop .cnp-tour__title, .cnp-tour--laptop .cnp-tour__text { grid-column: 1; }
.cnp-tour--laptop .cnp-tour__nav { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.cnp-tour--laptop .cnp-tour__hint, .cnp-tour--laptop .cnp-tour__note { grid-column: 1 / -1; }
.cnp-tour__count { margin: 0 0 6px; color: var(--p-gold-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cnp--ar .cnp-tour__count { letter-spacing: 0; }
.cnp-tour__title { margin: 0 0 8px; color: var(--p-navy); font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.02em; line-height: 1.2; }
.cnp-tour__text { margin: 0; color: #4a5568; font-size: 17px; line-height: 1.6; }
.cnp-tour__nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.cnp-tour--laptop .cnp-tour__nav { margin-top: 0; }
.cnp-tour__btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(15, 28, 63, .2); border-radius: 50%; background: #fff; color: var(--p-navy); cursor: pointer; transition: background .15s, border-color .15s; }
.cnp-tour__btn:hover { border-color: var(--p-gold); background: var(--p-soft); }
.cnp-tour__dots { display: flex; flex-wrap: wrap; gap: 7px; max-width: 260px; }
.cnp-tour__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: width .2s, background .2s; }
.cnp-tour__dot.is-active { width: 24px; background: var(--p-navy); }
.cnp-tour__hint { margin: 18px 0 0; color: var(--p-navy); font-size: 14px; font-weight: 700; }
.cnp-tour__hint::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 8px; border: 2px solid var(--p-gold); border-radius: 3px; vertical-align: -1px; }
.cnp-tour:not(.has-spots) .cnp-tour__hint { visibility: hidden; }
.cnp-tour__note { margin: 6px 0 0; color: var(--p-muted); font-size: 12px; }
.cnp-tour:not(.is-ready) .cnp-tour__nav, .cnp-tour:not(.is-ready) .cnp-tour__hint { display: none; }

/* ---------------------------------------------------------------- features */
.cnp-features-section { background: var(--p-soft); }
.cnp-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.cnp-feature { padding: 26px; border: 1px solid var(--p-border); border-radius: var(--p-radius-md); background: #fff; }
.cnp-feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 13px; background: #fef6e7; color: var(--p-gold-dark); }
.cnp-feature h3 { margin: 0 0 6px; color: var(--p-navy); font-size: 18px; font-weight: 800; }
.cnp-feature p { margin: 0; color: var(--p-muted); font-size: 15px; line-height: 1.6; }

/* ---------------------------------------------------------------- product cards */
.cnp-cards-section { padding: 8px 0 80px; }
.cnp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.cnp-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--p-border); border-radius: var(--p-radius-lg); background: #fff; color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.cnp-card:hover { transform: translateY(-4px); border-color: rgba(245, 166, 35, .6); box-shadow: var(--p-shadow); }
.cnp-card__media { display: block; position: relative; height: 230px; overflow: hidden; background: linear-gradient(135deg, var(--p-navy), var(--p-blue)); }
.cnp-card__media img { position: absolute; display: block; }
.cnp-card__media--laptop img { left: 7%; top: 12%; width: 86%; border-radius: 8px 8px 0 0; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.cnp-card__media--phone img { left: 50%; top: 10%; width: 46%; border: 6px solid #0b1222; border-radius: 26px; transform: translateX(-50%); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.cnp-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 22px 24px 24px; }
.cnp-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cnp-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #fef6e7; color: var(--p-gold-dark); }
.cnp-card__kicker { color: var(--p-muted); font-size: 13px; font-weight: 700; }
.cnp-card__name { color: var(--p-navy); font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.cnp-card__tagline { color: #4a5568; font-size: 15px; line-height: 1.55; }
.cnp-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; color: var(--p-blue); font-size: 14px; font-weight: 800; }
.cnp--ar .cnp-card__more .cnp-icon { transform: scaleX(-1); }

.cnp-more { background: var(--p-soft); }

/* ---------------------------------------------------------------- client work */
.cnp-clients { background: var(--p-soft); }
.cnp-clients__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.cnp-client { display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--p-border); border-radius: var(--p-radius-lg); background: #fff; }
.cnp-client__head { display: flex; align-items: center; gap: 14px; }
.cnp-client__logo img { display: block; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.cnp-client__name { margin: 0 0 2px; color: var(--p-gold-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cnp--ar .cnp-client__name { letter-spacing: 0; }
.cnp-client h3 { margin: 0; color: var(--p-navy); font-size: 19px; font-weight: 800; line-height: 1.3; }
.cnp-client__summary { margin: 0; color: #4a5568; font-size: 15px; line-height: 1.6; }
.cnp-client__gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cnp-client__gallery img { width: 100%; height: 120px; border-radius: 10px; object-fit: cover; object-position: top; }
.cnp-client__foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.cnp-client__foot .cnp-platforms { margin: 0; }
.cnp-client__tech { margin: 0; color: var(--p-muted); font-size: 13px; }
.cnp-client__tech span { color: var(--p-navy); font-weight: 700; }

/* ---------------------------------------------------------------- websites */
.cnp-websites__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 24px; }
.cnp-site { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--p-border); border-radius: var(--p-radius-lg); background: #fff; }
.cnp-site__media { position: relative; padding: 28px 28px 0; background: linear-gradient(135deg, var(--p-sand), var(--p-soft)); }
.cnp-site__laptop { display: block; width: 84%; padding: 7px 7px 0; border-radius: 10px 10px 0 0; background: #111827; box-shadow: 0 18px 40px rgba(15, 28, 63, .18); }
.cnp-site__laptop img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 4px 4px 0 0; }
.cnp-site__phone { position: absolute; bottom: 0; inset-inline-end: 24px; width: 24%; padding: 4px; border-radius: 18px 18px 0 0; background: #0b1222; box-shadow: 0 14px 30px rgba(15, 28, 63, .28); }
.cnp-site__phone img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 14px 14px 0 0; }
.cnp-site__body { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 26px; }
.cnp-site__body h3 { margin: 0; color: var(--p-navy); font-size: 19px; font-weight: 800; line-height: 1.3; }

/* ---------------------------------------------------------------- Business OS: the phone app */
.cnp-phone-section { padding-top: 24px; }

/* ---------------------------------------------------------------- call to action */
.cnp-cta { padding: 0 0 88px; }
.cnp-features-section + .cnp-cta { padding-top: 88px; background: linear-gradient(180deg, var(--p-soft) 0, #fff 0); }
.cnp-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 48px; border-radius: var(--p-radius-lg); background: radial-gradient(circle at 85% 20%, rgba(26, 58, 143, .9), transparent 55%), var(--p-navy); color: #fff; }
.cnp-cta h2 { margin: 0 0 6px; color: #fff; font-size: clamp(24px, 2.8vw, 34px); font-weight: 900; letter-spacing: -.02em; }
.cnp-cta p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 16px; }
.cnp-cta .cn-button--outline { border-color: rgba(255, 255, 255, .35); color: #fff; }
.cnp-cta .cn-button--outline:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .cnp-tour--phone { grid-template-columns: 1fr; gap: 28px; }
  .cnp-tour--phone .cnp-tour__panel { margin-inline: auto; text-align: center; }
  .cnp-tour--phone .cnp-tour__nav { justify-content: center; }
  .cnp-tour--laptop .cnp-tour__panel { grid-template-columns: 1fr; }
  .cnp-tour--laptop .cnp-tour__nav { grid-column: 1; grid-row: auto; margin-top: 14px; }
}
@media (max-width: 640px) {
  .cnp .cn-container { width: calc(100% - 32px); }
  .cnp .cn-section { padding: 64px 0; }
  .cnp-hero { padding-top: 24px; }
  .cnp-crumbs { margin-bottom: 24px; }
  .cnp-device--laptop { padding: 8px 8px 10px; border-radius: 12px 12px 4px 4px; }
  .cnp-device--laptop::before { display: none; }
  .cnp-device--laptop::after { bottom: -10px; height: 10px; }
  .cnp-device--phone { max-width: 300px; border-radius: 40px; }
  .cnp-device--phone .cnp-device__screen { border-radius: 30px; }
  .cnp-cards, .cnp-clients__grid, .cnp-websites__grid { grid-template-columns: 1fr; }
  .cnp-site__media { padding: 18px 18px 0; }
  .cnp-cta__inner { padding: 32px 24px; }
  .cnp-actions .cn-button { flex: 1 1 auto; }
}
