:root {
  --cs-blue: #0080af;
  --cs-blue-dk: #006a92;
  --cs-navy: #0a1220;
  --cs-text: #4a5568;
  --cs-radius: 14px;
}

.cs-hero {
  padding: 2.5rem 0;
  background: #EDF2FC;
  color: var(--cs-navy);
  overflow: hidden;
}

.cs-hero h1 {
  margin-bottom: .75rem;
  color: var(--cs-navy);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
}

.cs-hero p {
  max-width: 480px;
  margin: 0 auto 1.25rem;
  color: var(--cs-text);
  font-size: 1rem;
  line-height: 1.65;
}

.cs-hero-visual {
  max-width: 520px;
  margin: 0 auto;
  padding: .4rem;
  background: #fff;
  border: 1px solid #d9e2f3;
  border-radius: var(--cs-radius);
  box-shadow: 0 12px 28px rgba(10, 18, 32, .12);
}

.cs-hero-visual img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

@media (min-width: 992px) {
  .cs-hero p {
    margin-left: 0;
  }

  .cs-hero-visual {
    margin-right: 0;
  }
}

/* ── SHARED ── */
.cs-heading {
  max-width: 720px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.cs-heading h2,
.cs-access-title {
  position: relative;
  padding-bottom: .9rem;
  margin-bottom: .75rem;
  color: var(--cs-navy);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
}

.cs-heading h2::after,
.cs-access-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--cs-blue);
  transform: translateX(-50%);
}

.cs-access-title {
  margin-bottom: 1.5rem;
}

.cs-access-title::after {
  left: 0;
  transform: none;
}

.cs-heading p {
  margin: 0;
  color: var(--cs-text);
}

.cs-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #EDF2FC;
  color: var(--cs-blue);
  font-size: 1.3rem;
}

/* ── WHY CHOOSE ── */
.cs-why {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0a1220 0%, #111c33 100%);
}

.cs-why .cs-heading h2 {
  color: #fff;
}

.cs-why .cs-heading p {
  color: rgba(255, 255, 255, .8);
}

.card-why {
  height: 100%;
  padding: 1.25rem 1.25rem 1.1rem;
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: var(--cs-radius);
  box-shadow: 0 2px 8px rgba(10, 18, 32, .04);
  transition: transform .2s, box-shadow .2s;
}

.card-why:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(10, 18, 32, .12);
}

.card-why .cs-icon {
  width: 40px;
  height: 40px;
  margin-bottom: .7rem;
  border-radius: 10px;
}

.card-why .cs-icon img {
  width: 65%;
  height: 65%;
}

.card-why h3 {
  margin-bottom: .35rem;
  color: var(--cs-navy);
  font-size: 1rem;
  font-weight: 700;
}

.card-why p {
  margin: 0;
  color: var(--cs-text);
  font-size: .875rem;
  line-height: 1.55;
}

/* ── PRIVILEGED ACCESS ── */
.cs-access {
  padding: 4rem 0;
  background: #fff;
}

.cs-video {
  padding: .5rem;
  background: #fff;
  border: 1px solid #d9e2f3;
  border-radius: var(--cs-radius);
  box-shadow: 0 12px 28px rgba(10, 18, 32, .12);
}

.cs-video iframe {
  border-radius: 8px;
}

.cs-point {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cs-point:last-child {
  margin-bottom: 0;
}

.cs-point .cs-icon {
  background: #fff;
}

.cs-point h3 {
  margin-bottom: .3rem;
  color: var(--cs-navy);
  font-size: 1.1rem;
  font-weight: 700;
}

.cs-point p {
  margin: 0;
  color: var(--cs-text);
  line-height: 1.65;
}

.cs-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

/* ── PASSWORDSTATE OVERVIEW ── */
.cs-overview {
  padding: 2.5rem 0;
  background: #EDF2FC;
  color: var(--cs-navy);
  text-align: center;
}

.cs-overview h2 {
  margin-bottom: 1rem;
  color: var(--cs-navy);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
}

.cs-overview p {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  color: var(--cs-text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cs-tags li {
  padding: .4rem 1rem;
  border: 1px solid #d9e2f3;
  border-radius: 999px;
  background: #fff;
  color: var(--cs-blue-dk);
  font-size: .9rem;
  font-weight: 600;
}

/* ── CORE FEATURES ── */
.cs-products {
  padding: 4rem 0;
  background: #fff;
}

.cs-tabs {
  gap: .5rem;
  margin-bottom: 1.75rem;
  border: 0;
}

.cs-tabs .nav-link {
  padding: .55rem 1.2rem;
  border: 1px solid #d9e2f3;
  border-radius: 999px;
  background: #fff;
  color: var(--cs-navy);
  font-size: .95rem;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s;
}

.cs-tabs .nav-link:hover {
  border-color: var(--cs-blue);
  color: var(--cs-blue);
}

.cs-tabs .nav-link.active {
  border-color: var(--cs-blue);
  background: var(--cs-blue);
  color: #fff;
}

.cs-product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem 1.1rem 1rem;
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(10, 18, 32, .04);
  transition: transform .2s, box-shadow .2s;
}

.cs-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(10, 18, 32, .12);
}

.cs-product .cs-icon {
  width: 40px;
  height: 40px;
  margin-bottom: .7rem;
  border-radius: 10px;
  font-size: 1.05rem;
}

.cs-product h4 {
  margin-bottom: .35rem;
  color: var(--cs-navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.cs-product p {
  flex-grow: 1;
  margin-bottom: .75rem;
  color: var(--cs-text);
  font-size: .875rem;
  line-height: 1.55;
}

.cs-product-actions {
  display: flex;
}


/* ── PASSWORD RESET PORTAL ── */
.cs-reset {
  padding: 4rem 0;
  background: #fff;
}

.cs-reset-hero p {
  margin-bottom: 0;
}

.cs-caps {
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.cs-caps-title {
  margin-bottom: 1.25rem;
  color: var(--cs-navy);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
}

.cs-cap {
  display: flex;
  align-items: center;
  gap: .9rem;
  height: 100%;
  padding: .9rem 1.1rem;
  background: #f7fafe;
  border: 1px solid #e4e8f0;
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}

.cs-cap:hover {
  border-color: var(--cs-blue);
  box-shadow: 0 8px 20px rgba(10, 18, 32, .08);
}

.cs-cap .cs-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d9e2f3;
  font-size: 1.05rem;
}

.cs-cap-text {
  color: var(--cs-navy);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.4;
}

.cs-steps-heading {
  margin-bottom: 2.25rem;
}

.cs-steps {
  max-width: 960px;
  margin: 0 auto;
}

.cs-step {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: .75rem;
  background: #f7fafe;
  border: 1px solid #e4e8f0;
  border-radius: 12px;
  transition: box-shadow .2s, border-color .2s;
}

.cs-step:hover {
  border-color: #c9d7ee;
  box-shadow: 0 8px 20px rgba(10, 18, 32, .08);
}

.cs-step-img {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #fff;
  cursor: zoom-in;
}

.cs-step-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, 0);
  transition: background .2s;
}

.cs-step-img:hover::after,
.cs-step-img:focus-visible::after {
  background: rgba(10, 18, 32, .18);
}

.cs-step-img:focus-visible {
  outline: 3px solid var(--cs-blue);
  outline-offset: 2px;
}

.cs-zoom {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cs-blue);
  color: #fff;
  font-size: .85rem;
  box-shadow: 0 4px 10px rgba(10, 18, 32, .3);
  transition: transform .2s;
}

.cs-step-img:hover .cs-zoom {
  transform: scale(1.12);
}

.cs-step-img img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top;
}

.cs-step-body {
  flex-grow: 1;
  padding: .85rem .35rem .35rem;
}

.cs-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: .5rem;
  border-radius: 50%;
  background: var(--cs-blue);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}

.cs-step h3 {
  margin-bottom: .3rem;
  color: var(--cs-navy);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.cs-step p {
  margin: 0;
  color: var(--cs-text);
  font-size: .875rem;
  line-height: 1.55;
}

/* ── LIGHTBOX ── */
.cs-lightbox .modal-dialog {
  width: fit-content;
  max-width: calc(100vw - 2rem);
  margin: 1rem auto;
}

.cs-lightbox .modal-content {
  position: relative;
  align-items: center;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 2rem);
  padding: .5rem;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: var(--cs-radius);
}

.cs-lightbox .modal-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 3rem - 1rem);
  object-fit: contain;
  border-radius: 8px;
}

.cs-lightbox-close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background-color: #fff;
  background-size: .8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  opacity: 1;
}

/* ── REMOTE SITE LOCATIONS ── */
.cs-remote-hero p {
  margin-bottom: 0;
}

.cs-remote {
  padding: 4rem 0;
  background: #fff;
}

.cs-remote .cs-heading {
  max-width: 860px;
}

.cs-remote-title {
  margin-bottom: 1.25rem;
  color: var(--cs-navy);
  font-size: 1.3rem;
  font-weight: 700;
}

.cs-remote-title-center {
  text-align: center;
}

.cs-remote-caps {
  max-width: 960px;
  margin: 0 auto 4rem;
}

.cs-remote-diagram p {
  margin: 0;
  color: var(--cs-text);
  line-height: 1.7;
}

.cs-diagram-title {
  margin-bottom: .75rem;
  color: var(--cs-navy);
  font-size: 1rem;
  font-weight: 700;
}

.cs-diagram-img {
  padding: .5rem;
  border: 1px solid #e4e8f0;
  border-radius: var(--cs-radius);
  background: #fff;
}

.cs-diagram-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.cs-remote-diagram .cs-diagram-caption {
  margin-top: .75rem;
  color: var(--cs-text);
  font-size: .85rem;
  font-style: italic;
}

/* ── HERO ACTIONS ── */
html {
  scroll-behavior: smooth;
}

#passwordstate-overview {
  scroll-margin-top: 90px;
}

.cs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

@media (min-width: 992px) {
  .cs-hero-actions {
    justify-content: flex-start;
  }
}

.btn-cs-outline,
.btn-cs-outline:visited {
  border: 2px solid var(--cs-blue);
  background: transparent;
  color: var(--cs-blue);
  font-weight: 600;
}

.btn-cs-outline:hover,
.btn-cs-outline:focus {
  border-color: var(--cs-blue);
  background: var(--cs-blue);
  color: #fff;
}

/* ── COMPACT BUTTONS ── */
.cs-btn-sm {
  padding: .65rem 1.6rem;
  border-radius: 8px;
  font-size: 1rem;
}

.cs-btn-xs {
  padding: .55rem 1.3rem;
  border-radius: 8px;
  font-size: .92rem;
}

.cs-overview .cs-btn-sm {
  margin-top: 1.25rem;
}

/* ── CLICKABLE FEATURE CARDS ── */
.cs-product {
  cursor: pointer;
}

.cs-product h4 a {
  color: inherit;
  text-decoration: none;
}

.cs-product:hover h4 a,
.cs-product h4 a:focus-visible {
  color: var(--cs-blue);
}

.cs-product-actions {
  position: relative;
  z-index: 2;
}

.cs-diagram-img {
  max-width: 380px;
}

.cs-remote-diagram .cs-diagram-title,
.cs-remote-diagram .cs-diagram-caption {
  max-width: 380px;
}

/* Hero logo */
.cs-hero-logo {
  display: block;
  width: auto;
  height: 40px;
  margin: 0 auto 1.5rem;
}

@media (min-width: 992px) {
  .cs-hero-logo {
    margin-left: 0;
  }
}
