:root {
  --cdg-green: #123d32;
  --cdg-green-2: #286b58;
  --cdg-mint: #ddf5e9;
  --cdg-ink: #10241f;
  --cdg-muted: #62746e;
  --cdg-line: rgba(18, 61, 50, .10);
}

body.clinessy-demo-selector-page { margin: 0; }

.cdg-selector,
.cdg-selector * { box-sizing: border-box; }

.cdg-selector {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 32px 22px 40px;
  background:
    radial-gradient(circle at 50% -12%, rgba(211, 255, 234, .78), transparent 38%),
    linear-gradient(180deg, #fbfdfc 0%, #f5f8f7 100%);
  color: var(--cdg-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif !important;
}

.cdg-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
  opacity: .38;
  animation: cdg-float 9s ease-in-out infinite;
}

.cdg-orb-one { top: 10%; left: -220px; background: rgba(127, 224, 186, .19); }
.cdg-orb-two { right: -240px; bottom: 4%; background: rgba(113, 176, 246, .12); animation-delay: -4s; }

.cdg-selector-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  text-align: center;
}

.cdg-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-bottom: 22px;
  color: var(--cdg-ink);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.cdg-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 7px 14px rgba(45, 26, 98, .10));
}

.cdg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #35735f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .17em;
}

.cdg-kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #59b995;
  box-shadow: 0 0 0 5px rgba(89, 185, 149, .12);
  content: "";
}

.cdg-selector h1 {
  max-width: 820px;
  margin: 0 auto !important;
  color: var(--cdg-ink) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", sans-serif !important;
  font-size: clamp(42px, 5vw, 66px) !important;
  font-weight: 580 !important;
  line-height: .99 !important;
  letter-spacing: -.055em !important;
}

.cdg-selector h1 span {
  color: #315e51;
  font: inherit !important;
}

.cdg-lead {
  max-width: 660px;
  margin: 16px auto 0 !important;
  color: var(--cdg-muted) !important;
  font-family: inherit !important;
  font-size: clamp(16px, 1.5vw, 19px) !important;
  font-weight: 400 !important;
  line-height: 1.48 !important;
}

.cdg-trust {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 20px auto 0;
}

.cdg-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(18, 61, 50, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: #536a62;
  font-size: 12px;
  font-weight: 520;
  box-shadow: 0 4px 16px rgba(18, 61, 50, .035);
}

.cdg-trust i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--cdg-mint);
  color: var(--cdg-green);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.cdg-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(420px, 92%);
  margin: 26px auto 14px;
  color: #60736c;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cdg-choice span { height: 1px; flex: 1; background: var(--cdg-line); }
.cdg-choice strong { font: inherit !important; font-weight: 720 !important; white-space: nowrap; }

.cdg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
}

.cdg-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: 1fr auto;
  gap: 14px 16px;
  min-height: 178px;
  margin: 0 !important;
  padding: 23px !important;
  overflow: hidden;
  appearance: none;
  border: 1px solid var(--cdg-line) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .86) !important;
  color: var(--cdg-ink) !important;
  box-shadow: 0 10px 28px rgba(18, 61, 50, .055) !important;
  font-family: inherit !important;
  text-align: left !important;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .3s ease, background .3s ease !important;
}

.cdg-card::after {
  position: absolute;
  inset: auto -40px -70px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(187, 238, 217, .26);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s ease, transform .4s ease;
  content: "";
}

.cdg-card:hover,
.cdg-card:focus-visible {
  z-index: 2;
  transform: translateY(-6px) scale(1.008);
  border-color: rgba(30, 107, 84, .27) !important;
  background: #fff !important;
  box-shadow: 0 22px 46px rgba(18, 61, 50, .12) !important;
  outline: 0;
}

.cdg-card:hover::after,
.cdg-card:focus-visible::after { opacity: 1; transform: scale(1); }

.cdg-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: var(--cdg-mint);
  color: var(--cdg-green);
  transition: transform .32s cubic-bezier(.2,.8,.2,1), background .3s ease, color .3s ease;
}

.cdg-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cdg-icon svg path:first-child:last-child { fill: none; }
.cdg-card:hover .cdg-icon { transform: rotate(-4deg) scale(1.08); background: var(--cdg-green); color: #fff; }

.cdg-card-copy { align-self: center; min-width: 0; }

.cdg-card strong {
  display: block;
  color: var(--cdg-ink) !important;
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em !important;
}

.cdg-card em {
  display: block;
  margin-top: 7px;
  color: #6b7c76;
  font-family: inherit !important;
  font-size: 13px;
  font-style: normal;
  font-weight: 420;
  line-height: 1.35;
}

.cdg-card small {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #356b5a;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 650 !important;
}

.cdg-card small b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #edf7f2;
  font-family: inherit !important;
  font-size: 16px;
  transition: transform .3s ease, background .3s ease, color .3s ease;
}

.cdg-card:hover small b { transform: translateX(4px); background: var(--cdg-green); color: #fff; }

.cdg-modules {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: #687a74;
  font-size: 11px;
}

.cdg-modules > span { font-weight: 650; }
.cdg-modules > div { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cdg-modules b { padding: 5px 8px; border-radius: 7px; background: rgba(226, 240, 234, .72); color: #41695c; font-weight: 580; }
.cdg-modules p { margin: 0 !important; padding-left: 14px; border-left: 1px solid var(--cdg-line); color: #71827c !important; font-size: 11px !important; }
.cdg-modules p i { margin-right: 5px; padding: 4px 7px; border-radius: 999px; background: #f0ecff; color: #6654a7; font-style: normal; font-weight: 650; }

.cdg-return {
  max-width: 600px;
  margin: 80px auto;
  padding: 40px;
  text-align: center;
  border-radius: 24px;
  background: #fff;
}

.cdg-return a { display: inline-block; padding: 13px 22px; border-radius: 999px; background: var(--cdg-green); color: #fff; text-decoration: none; }

.cdg-banner {
  position: fixed;
  z-index: 999999;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 28px);
  padding: 9px 10px 9px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(13,44,36,.94);
  box-shadow: 0 16px 42px rgba(0,0,0,.22);
  backdrop-filter: blur(15px);
  color: #fff;
  font: 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cdg-banner-copy { display: flex; flex-direction: column; margin-right: 8px; }
.cdg-banner b { font-weight: 650; }
.cdg-banner small { color: rgba(255,255,255,.68); font-size: 10px; }
.cdg-banner a,
.cdg-banner button { min-height: 34px; padding: 7px 11px; border: 0; border-radius: 10px; background: rgba(255,255,255,.11); color: #fff; font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.cdg-banner .cdg-commercial { display: inline-flex; align-items: center; background: #fff; color: var(--cdg-green); }
.cdg-banner .cdg-change { display: inline-flex; align-items: center; background: transparent; color: rgba(255,255,255,.78); }

.cdg-modal-open { overflow: hidden; }

.cdg-welcome[hidden],
.cdg-context-tip[hidden] { display: none !important; }

.cdg-welcome {
  position: fixed;
  z-index: 1000002;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.cdg-welcome-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 22, 18, .58);
  backdrop-filter: blur(16px);
  animation: cdg-fade-in .28s ease both;
}

.cdg-welcome-card {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 0%, rgba(195, 240, 221, .64), transparent 30%),
    #fbfdfc;
  box-shadow: 0 36px 100px rgba(0, 20, 14, .34);
  color: var(--cdg-ink);
  animation: cdg-welcome-in .42s cubic-bezier(.2,.8,.2,1) both;
}

.cdg-welcome-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(18,61,50,.07);
  color: var(--cdg-green);
  font-size: 23px;
  cursor: pointer;
}

.cdg-welcome-brand { display: flex; align-items: center; gap: 10px; }
.cdg-welcome-brand img { width: 36px; height: 36px; object-fit: contain; }
.cdg-welcome-brand span { color: #4b7568; font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.cdg-welcome-eyebrow { margin: 28px 0 8px !important; color: #4b7568 !important; font-size: 12px !important; font-weight: 650 !important; }
.cdg-welcome h2 { margin: 0 !important; color: var(--cdg-ink) !important; font-size: clamp(34px, 5vw, 52px) !important; font-weight: 570 !important; line-height: 1.02 !important; letter-spacing: -.045em !important; }
.cdg-welcome-lead { max-width: 620px; margin: 14px 0 24px !important; color: #60736c !important; font-size: 15px !important; line-height: 1.55 !important; }

.cdg-welcome-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cdg-welcome-actions a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1px 12px;
  padding: 16px;
  border: 1px solid rgba(18,61,50,.09);
  border-radius: 16px;
  background: #fff;
  color: var(--cdg-ink);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.cdg-welcome-actions a:hover { transform: translateY(-2px); border-color: rgba(18,61,50,.22); box-shadow: 0 12px 24px rgba(18,61,50,.08); }
.cdg-welcome-actions a.is-primary { background: var(--cdg-green); color: #fff; }
.cdg-welcome-actions span { grid-row: 1 / 3; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: rgba(18,61,50,.07); color: #4c7569; font-size: 10px; font-weight: 750; }
.cdg-welcome-actions .is-primary span { background: rgba(255,255,255,.14); color: #fff; }
.cdg-welcome-actions b { font-size: 13px; font-weight: 680; }
.cdg-welcome-actions small { color: #71827c; font-size: 10px; }
.cdg-welcome-actions .is-primary small { color: rgba(255,255,255,.7); }

.cdg-welcome-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.cdg-welcome-footer a { color: var(--cdg-green); font-size: 13px; font-weight: 700; text-decoration: none; }
.cdg-welcome-footer a span { margin-left: 5px; transition: margin .2s ease; }
.cdg-welcome-footer a:hover span { margin-left: 9px; }
.cdg-welcome-footer button { padding: 9px 13px; border: 0; background: transparent; color: #6c7d77; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; cursor: pointer; }

.cdg-context-tip {
  position: fixed;
  z-index: 999998;
  right: 18px;
  bottom: 88px;
  width: min(310px, calc(100vw - 30px));
  padding: 15px 42px 15px 16px;
  border: 1px solid rgba(18,61,50,.11);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 38px rgba(18,61,50,.14);
  color: var(--cdg-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: cdg-tip-in .35s ease both;
}
.cdg-context-tip span { color: #3d7967; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.cdg-context-tip p { margin: 5px 0 0 !important; color: #5f716b !important; font-size: 12px !important; line-height: 1.45 !important; }
.cdg-context-tip button { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #edf4f1; color: #45695e; font-size: 17px; cursor: pointer; }
.clinessy-nav-coming-soon,
.cdg-demo-hidden { display: none !important; }

@keyframes cdg-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -14px, 0); }
}

@keyframes cdg-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cdg-welcome-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cdg-tip-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 840px) {
  .cdg-selector { padding: 28px 16px 34px; }
  .cdg-grid { grid-template-columns: repeat(2, 1fr); }
  .cdg-modules p { flex-basis: 100%; border-left: 0; padding-left: 0; }
}

@media (max-width: 560px) {
  .cdg-brand { margin-bottom: 18px; }
  .cdg-brand img { width: 38px; height: 38px; }
  .cdg-selector h1 { font-size: 40px !important; }
  .cdg-lead { max-width: 360px; font-size: 15px !important; }
  .cdg-trust { gap: 6px; }
  .cdg-trust span { padding: 6px 9px; font-size: 10px; }
  .cdg-choice { margin-top: 22px; }
  .cdg-grid { grid-template-columns: 1fr; gap: 10px; }
  .cdg-card { min-height: 150px; padding: 19px !important; }
  .cdg-card:hover { transform: translateY(-3px); }
  .cdg-modules { margin-top: 16px; }
  .cdg-banner { bottom: 76px; width: calc(100vw - 24px); font-size: 12px; box-sizing: border-box; }
  .cdg-banner-copy { flex: 1; }
  .cdg-banner .cdg-change { display: none; }
  .cdg-welcome { padding: 12px; }
  .cdg-welcome-card { max-height: calc(100vh - 24px); padding: 27px 19px 22px; border-radius: 22px; }
  .cdg-welcome-eyebrow { margin-top: 22px !important; }
  .cdg-welcome h2 { font-size: 36px !important; }
  .cdg-welcome-actions { grid-template-columns: 1fr; }
  .cdg-welcome-footer { align-items: flex-start; flex-direction: column; }
  .cdg-welcome-footer button { padding-left: 0; }
  .cdg-context-tip { right: 12px; bottom: 142px; }
}

@media (prefers-reduced-motion: reduce) {
  .cdg-orb,
  .cdg-card,
  .cdg-card::after,
  .cdg-icon,
  .cdg-card small b,
  .cdg-welcome-backdrop,
  .cdg-welcome-card,
  .cdg-context-tip { animation: none !important; transition: none !important; }
}
