/* ============================================================
   CTN USA -- contact page, 2026 redesign.
   Same language as the product, Insights and events pages: a Polar Night
   head with the brand edge pattern, ruled columns, the spectrum only as a
   thin light edge, square corners. Every rule is scoped under main.cx.
   Mobile first. PURE ASCII ONLY in this file.
   ============================================================ */

.cx { --cx-edge: linear-gradient(90deg, #99B2FA 0%, #5C81F1 33%, #F05E60 66%, #F18A64 100%); }

/* ---- head ---- */
.cx-hero { position: relative; overflow: hidden; background: var(--polar-night); color: #fff; padding: 48px 0; }
.cx-hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; height: 100%; width: auto; aspect-ratio: 494 / 604; max-width: 46%;
  background: url("/images/brand/edge-c.svg") left center / auto 100% no-repeat; opacity: .06; pointer-events: none; }
.cx-hero > .wrap { position: relative; z-index: 1; }
.cx-hero h1 { color: #fff; font-size: clamp(36px, 8.4vw, 60px); line-height: 1.05; margin: 0 0 20px; max-width: 18ch; }
.cx-lede { color: var(--on-dark-muted); font-size: var(--fs-lede); font-weight: 400; line-height: 1.6; max-width: 56ch; margin: 0; }

/* ---- the three ways to reach us: a ruled list on phones, ruled columns wider ---- */
.cx-ways { padding-top: 40px; padding-bottom: 48px; }
.cx-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--polar-night); }
.cx-way { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--silver-light); color: inherit; text-decoration: none; }
.cx-icon { grid-row: 1 / span 3; display: flex; width: 36px; height: 36px; }
.cx-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--signal-blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-way h2 { margin: 4px 0 10px; font-family: var(--body); font-size: var(--fs-sub); font-weight: 600; color: var(--polar-night); }
.cx-way p { margin: 8px 0 0; font-size: var(--fs-sub); line-height: 1.6; color: var(--silver-dark); }
.cx-link { display: block; font-family: var(--head); font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; color: var(--polar-night); overflow-wrap: anywhere; transition: color .2s var(--ease-out); }
a.cx-way:hover .cx-link, a.cx-way:focus-visible .cx-link { color: var(--signal-blue); }
a.cx-way:focus-visible { outline: 2px solid var(--signal-blue); outline-offset: 4px; }
/* the spectrum edge slides in along the top of the one under the pointer */
a.cx-way::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--cx-edge);
  transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease-out); }
a.cx-way:hover::before, a.cx-way:focus-visible::before { transform: scaleX(1); }

/* ---- send us a message ---- */
.cx-msg-in { display: grid; gap: 24px; }
.cx-msg h2 { margin: 0 0 12px; }
.cx-msg p { margin: 0; max-width: 52ch; font-size: var(--fs-body); line-height: 1.6; color: var(--silver-dark); }
.cx-msg .btn { width: 100%; }

@media (min-width: 760px) {
  .cx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cx-way { display: block; padding: 32px 32px 36px; border-bottom: 0; }
  .cx-way:first-child { padding-left: 0; }
  .cx-way + .cx-way { border-left: 1px solid var(--silver-light); }
  .cx-way:first-child::before { left: 0; }
  .cx-icon { margin-bottom: 20px; }
  .cx-link { font-size: var(--fs-h3); }
  .cx-msg-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
  .cx-msg .btn { width: auto; }
}
@media (min-width: 900px) {
  .cx-hero { padding: 88px 0 80px; }
  .cx-lede { font-size: var(--fs-lede); }
  .cx-ways { padding-top: 64px; padding-bottom: 80px; }
}
@media (min-width: 1000px) {
  /* one line each for the email, number and street, so the three columns match */
  .cx-link { font-size: var(--fs-h3); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  a.cx-way::before, .cx-link { transition: none; }
}

/* ---- existing customers: service and billing, a smaller ruled pair ---- */
.cx-more { margin-top: 40px; }
.cx-more-h { margin: 0 0 16px; font-size: var(--fs-h3); color: var(--polar-night); }
.cx-more-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--silver-light); }
.cx-alt { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--silver-light); color: inherit; text-decoration: none; }
.cx-alt-l { font-family: var(--body); font-size: var(--fs-micro); font-weight: 600; color: var(--silver-dark); }
.cx-alt-p { font-size: var(--fs-sub); line-height: 1.6; color: var(--silver-dark); }
.cx-alt-e { margin-top: 4px; font-size: 18px; font-weight: 600; color: var(--polar-night); overflow-wrap: anywhere; transition: color .2s var(--ease-out); }
.cx-alt:hover .cx-alt-e, .cx-alt:focus-visible .cx-alt-e { color: var(--signal-blue); }
.cx-alt:focus-visible { outline: 2px solid var(--signal-blue); outline-offset: 4px; }
@media (min-width: 760px) {
  .cx-more { margin-top: 56px; }
  .cx-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* ---- hierarchy pass (Nov 2026) ---- */
/* "Already a CTN customer?": the team name leads, then what it covers, then the address */
.cx-alt-l { font-family: var(--head); font-size: var(--fs-h4); font-weight: 600; color: var(--polar-night); }
.cx-alt-p { font-size: var(--fs-small); }
/* "Send us a message": the button sits under its words, not across the page */
.cx-msg .cx-msg-in { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 24px; }
