/* ============================================================
   ClearView Customer Experience
   Responsive public-page layout for desktop, tablet, and mobile.
   ============================================================ */

.cx-hero {
  position: relative;
  padding: clamp(52px, 6vw, 78px) 0 clamp(42px, 5vw, 58px);
  border-bottom: 1px solid var(--hair);
}

.cx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      660px 340px at 14% 0%,
      color-mix(in srgb, var(--accent) 10%, transparent),
      transparent 72%
    ),
    radial-gradient(
      520px 320px at 92% 10%,
      color-mix(in srgb, var(--accent-2) 8%, transparent),
      transparent 72%
    );
}

.cx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.cx-hero-grid > *,
.cx-intro > *,
.cx-grid > *,
.cx-steps > *,
.cx-related > * {
  min-width: 0;
}

.cx-hero h1 {
  margin-top: 18px;
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.25vw, 60px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-strong);
  overflow-wrap: normal;
  word-break: normal;
}

.cx-hero h1 span {
  color: var(--accent);
}

.cx-hero .lead {
  margin-top: 22px;
  max-width: 68ch;
  color: var(--sub);
  font-size: 15px;
}

.cx-panel {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  padding: clamp(20px, 2.5vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.cx-panel-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--sub);
  font-size: 12.5px;
}

.cx-panel-row:last-child {
  border-bottom: 0;
}

.cx-panel-row strong {
  font-family: var(--font-display);
  color: var(--accent);
}

.cx-main {
  padding-top: clamp(44px, 5vw, 64px);
  padding-bottom: clamp(64px, 7vw, 88px);
}

.cx-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-bottom: 30px;
}

.cx-intro h2,
.cx-section h2 {
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-strong);
  overflow-wrap: normal;
  word-break: normal;
}

.cx-intro p,
.cx-section p {
  color: var(--sub);
  font-size: 13px;
}

.cx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}

.cx-card {
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: clamp(22px, 2vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.cx-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 800;
  color: var(--accent);
}

.cx-card h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--text-strong);
  overflow-wrap: normal;
  word-break: normal;
}

.cx-card p {
  margin-top: 12px;
  color: var(--sub);
  font-size: 12.5px;
}

.cx-card a {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.cx-section {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
}

.cx-checks {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  list-style: none;
}

.cx-checks li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  color: var(--sub);
  font-size: 12.5px;
}

.cx-checks strong {
  font-family: var(--font-display);
  color: var(--accent);
}

.cx-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.cx-step {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.cx-step strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
}

.cx-step h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
}

.cx-step p {
  margin-top: 8px;
}

.cx-faq {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.cx-faq details {
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.cx-faq summary {
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cx-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.cx-related a {
  display: block;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
  text-transform: uppercase;
}

.cx-related span {
  display: block;
  margin-top: 8px;
  color: var(--sub);
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.6;
  text-transform: none;
}

/* Collapse the public navigation before tablet widths become crowded. */
@media (max-width: 1180px) {
  body.adms-public header .nav {
    display: none;
  }

  body.adms-public header .ham {
    display: flex;
  }

  .cx-hero-grid {
    grid-template-columns: 1fr;
  }

  .cx-panel {
    max-width: none;
    justify-self: stretch;
  }
}

/* Narrow desktop and landscape tablet: use two cards instead of squeezing three. */
@media (max-width: 1279px) {
  .cx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cx-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .cx-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cx-intro h2,
  .cx-section h2 {
    max-width: 24ch;
  }
}

/* Portrait tablet and phones: one clear content column. */
@media (max-width: 820px) {
  .cx-grid,
  .cx-related {
    grid-template-columns: 1fr;
  }

  .cx-card {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .cx-hero {
    padding-top: 46px;
    padding-bottom: 38px;
  }

  .cx-main {
    padding-top: 40px;
    padding-bottom: 62px;
  }

  .cx-hero h1 {
    max-width: none;
    font-size: clamp(32px, 10.5vw, 46px);
  }

  .cx-hero .lead {
    font-size: 13px;
  }

  .cx-hero .cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cx-hero .cta-row .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .cx-panel {
    padding: 18px;
  }

  .cx-panel-row,
  .cx-checks li {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .cx-intro h2,
  .cx-section h2 {
    max-width: none;
    font-size: clamp(26px, 8vw, 34px);
  }

  .cx-steps {
    grid-template-columns: 1fr;
  }

  .cx-card,
  .cx-section {
    padding: 20px;
  }

  .cx-card h2 {
    font-size: clamp(19px, 6vw, 24px);
  }

  .cx-related a {
    font-size: 15px;
  }
}

@media (max-width: 440px) {
  .cx-hero,
  .cx-main {
    overflow-x: clip;
  }

  .cx-card,
  .cx-section,
  .cx-panel {
    padding: 18px;
  }

  .cx-panel-row,
  .cx-checks li {
    font-size: 12px;
  }

  .cx-step {
    padding: 17px;
  }
}

/* Customer Experience header safeguards for small screens. */
@media (max-width: 700px) {
  body.adms-public .status .fw {
    justify-content: flex-start;
  }

  body.adms-public .status .fw > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.adms-public .status .r {
    display: none;
  }

  body.adms-public header .bar {
    gap: 10px;
  }

  body.adms-public header .logo {
    min-width: 0;
    gap: 8px;
  }

  body.adms-public header .logo-copy strong {
    font-size: 18px;
  }

  body.adms-public header .logo-copy small,
  body.adms-public header .login,
  body.adms-public header .bar-right > .btn {
    display: none;
  }

  body.adms-public header .bar-right {
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
  }
}
