/* Skillvio /connect — digital business card landing page.
   Uses tokens from style.css; all selectors are prefixed .cx so nothing else is affected. */

.cx-body { background: var(--black); color: var(--white); margin: 0; min-height: 100vh; }
.cx { max-width: 560px; margin: 0 auto; background: var(--black); position: relative; }

/* ---------- HERO ---------- */
.cx-hero {
  position: relative;
  text-align: center;
  padding: 36px 20px 34px;
  overflow: hidden;
  isolation: isolate;
}
.cx-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  /* Swap in a real project photo:  background: linear-gradient(...), url("../assets/connect-hero.jpg") center/cover; */
  background:
    linear-gradient(180deg, rgba(19,19,19,.50), rgba(19,19,19,.94)),
    url("../images/skillvio-hero-truck.jpg") center 35% / cover no-repeat,
    var(--black-soft);
}
.cx-logo-plate {
  display: inline-block;
  background: var(--white);
  padding: 18px 26px;
  margin-bottom: 22px;
  position: relative;
}
.cx-logo-plate img { display: block; width: min(220px, 56vw); height: auto; }
.cx-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: .04em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.cx-title span { display: block; color: var(--red); font-size: .62em; letter-spacing: .22em; margin-top: 4px; }
.cx-tagline { font-size: 1.05rem; font-weight: 500; margin: 0 0 6px; color: var(--white); }
.cx-area { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #c9c9c9; margin: 0; }

/* ---------- TICKER ---------- */
.cx-ticker { background: var(--red); overflow: hidden; white-space: nowrap; }
.cx-ticker__track { display: inline-flex; animation: cx-scroll 38s linear infinite; }
.cx-ticker__track span {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em;
  font-size: .82rem; padding: 10px 0; color: var(--white);
}
.cx-ticker__track span::after { content: "\2605"; margin: 0 18px; opacity: .8; }
@keyframes cx-scroll { to { transform: translateX(-50%); } }

/* ---------- STACK ---------- */
.cx-stack { padding: 26px 18px 8px; display: flex; flex-direction: column; gap: 14px; }

.cx-section-label {
  display: flex; align-items: center; gap: 12px; margin: 10px 0 0;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: #bdbdbd;
}
.cx-section-label::before, .cx-section-label::after { content: ""; flex: 1; height: 1px; background: var(--line-on-dark); }

/* ---------- REVIEW (most prominent) ---------- */
.cx-review {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--white); color: var(--black);
  border: 3px solid var(--red); border-radius: 6px;
  padding: 24px 18px 22px; text-decoration: none;
  box-shadow: 0 0 0 4px rgba(211,30,37,.25), 0 14px 30px rgba(0,0,0,.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cx-review:hover, .cx-review:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(211,30,37,.45), 0 18px 34px rgba(0,0,0,.55); }
.cx-review__stars { display: flex; gap: 4px; }
.cx-review__stars svg { width: clamp(34px, 11vw, 46px); height: auto; fill: #fbbc04; stroke: #e0a100; stroke-width: .6; }
.cx-review__label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.4rem, 6.4vw, 1.8rem); line-height: 1.1; color: var(--red); }
.cx-review__sub { font-size: .92rem; color: var(--steel); max-width: 30ch; }

/* ---------- ESTIMATE ---------- */
.cx-estimate { background: var(--red); border-radius: 6px; padding: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.45); text-align: center; }
.cx-estimate__main {
  display: block; text-decoration: none; color: var(--white);
  background: var(--black); border: 2px solid var(--white); border-radius: 4px; padding: 18px 12px;
  transition: background .15s ease, color .15s ease;
}
.cx-estimate__main:hover, .cx-estimate__main:focus-visible { background: var(--white); color: var(--black); }
.cx-estimate__label { display: block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(1.35rem, 6vw, 1.7rem); }
.cx-estimate__sub { display: block; font-size: .9rem; margin-top: 2px; opacity: .85; }
.cx-estimate__calls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cx-estimate__calls a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  background: var(--white); color: var(--black); text-decoration: none; border-radius: 4px;
  font-family: var(--font-mono); font-weight: 500; font-size: .92rem;
}
.cx-estimate__calls a:hover, .cx-estimate__calls a:focus-visible { background: var(--black); color: var(--white); }
.cx-estimate__calls svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.cx-hours { margin: 12px 0 0; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; color: var(--white); }

/* ---------- LINK BUTTONS ---------- */
.cx-btn {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px;
  background: var(--black-soft); color: var(--white); text-decoration: none;
  border: 1px solid var(--line-on-dark); border-left: 4px solid var(--red); border-radius: 4px;
  transition: background .15s ease, transform .15s ease;
}
.cx-btn:hover, .cx-btn:focus-visible { background: #262626; transform: translateX(2px); }
.cx-btn__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--white); border-radius: 50%; }
.cx-btn__icon svg { width: 24px; height: 24px; fill: var(--red); }
.cx-btn__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cx-btn__text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; }
.cx-btn__text small { font-size: .82rem; color: #c4c4c4; }
.cx-btn__arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- PENDING STATE ---------- */
.is-pending { cursor: not-allowed; }
.is-pending:not(.cx-review) { opacity: .85; border-style: dashed; border-left-style: solid; }
.cx-pending-chip {
  flex: none; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  background: #ffd84d; color: #131313; padding: 4px 8px; border-radius: 3px; font-weight: 500;
}
.cx-review .cx-pending-chip { position: absolute; top: 8px; right: 8px; }

/* ---------- FOOTER ---------- */
.cx-footer { text-align: center; padding: 36px 20px 40px; margin-top: 18px; border-top: 1px solid var(--line-on-dark); }
.cx-footer__logo { display:block; margin:0 auto; background: var(--white); padding: 10px 16px; width: 150px; height: auto; border-radius: 3px; }
.cx-footer__name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; margin: 12px 0 16px; font-size: 1rem; color: var(--white); }
.cx-social { list-style: none; display: flex; justify-content: center; gap: 14px; padding: 0; margin: 0 0 20px; }
.cx-social a { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-on-dark); border-radius: 50%; }
.cx-social a:hover:not(.is-pending), .cx-social a:focus-visible { background: var(--red); border-color: var(--red); }
.cx-social svg { width: 22px; height: 22px; fill: var(--white); }
.cx-social .is-pending { opacity: .5; border-style: dashed; }
.cx-copy, .cx-credit { font-size: .8rem; color: #bdbdbd; margin: 4px 0; }
.cx-credit a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.cx-credit a:hover { color: var(--red); }

/* ---------- FOCUS ---------- */
.cx a:focus-visible { outline: 3px solid #ffd84d; outline-offset: 3px; }

/* ---------- DESKTOP: card centered on a blueprint backdrop ---------- */
@media (min-width: 768px) {
  .cx-body {
    background:
      repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 40px),
      repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 40px),
      #0b0b0b;
    padding: 40px 0;
  }
  .cx { border: 1px solid var(--line-on-dark); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
}

@media (prefers-reduced-motion: reduce) {
  .cx-ticker__track { animation: none; }
  .cx-review, .cx-btn { transition: none; }
}
