/* ===== AI NUDGES PAGE STYLES ===== */

/* Main Container */
.ai-nudges-page {
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 132px;
}

/* ===== HERO SECTION ===== */

.l1 {
  width: 50px;
  height: 50px;
  position: absolute;
  left: 90px;
  bottom: -70px;
  overflow: visible;
  aspect-ratio: 1;
  scale: 1.2;
  filter: blur(2px);
}
.l2 {
  width: 40px;
  height: 40px;
  position: absolute;
  left: 237px;
  top: 38px;
  overflow: visible;
  aspect-ratio: 1;
  filter: blur(2px);
}
.l3 {
  width: 50px;
  height: 50px;
  position: absolute;
  right: 119px;
  top: 80px;
  overflow: visible;
  aspect-ratio: 1;
  filter: blur(2px);
}
.l4 {
  width: 40px;
  height: 40px;
  position: absolute;
  left: 0px;
  top: calc(50% - 40px);
  overflow: visible;
  aspect-ratio: 1;
}
.l5 {
  width: 40px;
  height: 40px;
  position: absolute;
  right: 20px;
  bottom: 0px;
  overflow: visible;
  aspect-ratio: 1;
}
/* ===== HERO BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
/* ===== NUDGE BANNER SECTION ===== */
.nudge-banner-section {
  padding: 0 100px;
  width: 100%;
  box-sizing: border-box;
}

.nudge-banner {
  background: linear-gradient(93.4deg, #1e0059 0%, #290074 100%);
  border-radius: 8px;
  padding: 52px;
  display: flex;
  align-items: center;
  gap: 58px;
  overflow: hidden;
  box-sizing: border-box;
}

.nudge-banner__content {
  flex: 1;
  min-width: 368px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.nudge-banner__title {
  color: #ffffff;
  font-family: "Albert Sans", sans-serif;
  font-size: 42px;
  line-height: 110%;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  max-width: 600px;
}

.nudge-banner__text {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}

.nudge-banner__image {
  border-radius: 8px;
  width: 285px;
  height: 198px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ===== ENGINE SECTION ===== */
.engine-section {
  background: radial-gradient(
    closest-side,
    #eaeae8 0%,
    rgba(234, 234, 232, 0.2) 100%
  );
  padding: 0 100px;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(1px);
}

.engine-wrapper {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.engine-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  flex: 1;
  min-width: 400px;
}

.engine-info {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.engine-title {
  font-family: "Albert Sans", sans-serif;
  font-size: 40px;
  line-height: 110%;
  letter-spacing: -0.02em;
  margin: 0;
}

.engine-title__main {
  color: #290074;
  font-weight: 500;
}

.engine-title__powered {
  color: #290074;
  font-weight: 700;
}

.engine-title__ai {
  color: #4000a9;
  font-weight: 700;
}

.engine-text {
  color: #494948;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  margin: 0;
}

.engine-image {
  width: 440px;
  height: 365px;
  overflow: hidden;
  filter: blur(1px);
  flex-shrink: 0;
}

.engine-img {
  width: 85%;
  height: auto;
}

/* ===== ACCORDION SECTION ===== */
.accordion-section {
  flex: 1;

  display: flex;
  flex-direction: column;
  gap: 40px;
}

.accordion-title {
  font-family: "Albert Sans", sans-serif;
  font-size: 40px;
  line-height: 110%;
  letter-spacing: -0.02em;
  margin: 0;
}

.accordion-title__why {
  color: #290074;
  font-weight: 700;
}

.accordion-title__ai {
  color: #4000a9;
  font-weight: 700;
}

.accordion-title__automation {
  color: #290074;
  font-weight: 500;
}

.accordion {
  border: 1px solid #ccccca;
  border-left: none;
  border-right: none;
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid #ccccca;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-item-header {
  display: flex;
  align-items: center;
  align-items: flex-start;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.accordion-item--active .accordion-item-header {
  opacity: 1;
}

.accordion-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accordion-icon--behavioral {
  width: 40px;
  height: 40px;
  position: relative;
  overflow: hidden;
}

.group,
.group2 {
  position: absolute;
}

.group {
  left: 7.92px;
  top: 8.52px;
}

.group2 {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.accordion-item-title {
  color: #290074;
  font-family: "Inter", sans-serif;
  font-size: 32px;
  line-height: 40px;
  line-height: 55px;
  font-weight: 600;
  margin: 0;
}

.accordion-content {
  color: #494948;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  margin: 0;
  padding: 8px 0 0 0;
  display: none;
}

.accordion-content ul {
  margin-left: 20px;
  padding-top: 10px;
  list-style-type: disc;
}

.accordion-content ul li {
  line-height: 1.8;
  margin-bottom: 8px;
  padding-left: 5px;
}

.accordion-item--active .accordion-content,
.accordion-item.active .accordion-content {
  display: block;
}

/* Ensure all accordion content types use jQuery animations */
.accordion-item__panel,
.accordion-panel,
.accordion-text {
  display: none;
  padding: 8px 0 0 0;
}

.accordion-item--active .accordion-item__panel,
.accordion-item.active .accordion-item__panel,
.accordion-item--active .accordion-panel,
.accordion-item.active .accordion-panel,
.accordion-item--active .accordion-text,
.accordion-item.active .accordion-text {
  display: block;
}

/* ===== NUDGE FEATURE SECTION ===== */
.nudge-feature-section {
  padding: 0 100px;
  width: 100%;
  box-sizing: border-box;
}

.nudge-feature-wrapper {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 8px;
  padding: 80px 60px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  box-sizing: border-box;
  min-height: 600px;
}

.nudge-feature-header {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 892px;
  text-align: center;
}

.nudge-feature-title {
  font-family: "Albert Sans", sans-serif;
  font-size: 40px;
  line-height: 110%;
  letter-spacing: -0.02em;
  margin: 0;
}

.nudge-feature-title__crafted {
  color: #290074;
  font-weight: 700;
}

.nudge-feature-title__highlight {
  color: #4000a9;
  font-weight: 700;
  font-style: italic;
}

.nudge-feature-description {
  color: #494948;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  margin: 0;
}

/* ===== NUDGE FEATURE CARDS ===== */
.nudge-feature-cards {
  display: flex;
  flex-direction: row;
  gap: 40px;
  width: 100%;
  align-items: stretch;
}

.nudge-feature-card-container {
  flex: 1;
  display: flex;
}

.nudge-feature-card-wrapper {
  background: linear-gradient(146.69deg, #290074 0%, #1e0059 100%);
  border-radius: 8px;
  padding: 82px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
  flex: 1;
}

.nudge-feature-icon-wrapper {
  background: #ffffff;
  border-radius: 100px;
  border: 1px solid #290074;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -33px;
  left: 50%;
  transform: translateX(-50%);
  flex-shrink: 0;
}

.nudge-feature-card-icon {
  width: 40px;
  height: auto;
}

.nudge-feature-card-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  flex: 1;
  justify-content: flex-start;
  height: 100%;
}

.nudge-feature-card-title {
  color: #ffffff;
  font-family: "Albert Sans", sans-serif;
  font-size: 32px;
  line-height: 110%;
  font-weight: 600;
  margin: 0;
}

.nudge-feature-card-text {
  color: #ffffff;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 140%;
  font-weight: 400;
  margin: 0;
}

.nudge-feature-footer {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 956px;
  justify-content: center;
}

.nudge-feature-footer-text {
  color: #494948;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.02em;
  font-weight: 400;
  flex: 1;
  max-width: 624px;
  text-align: center;
  margin: 0;
}

/* ===== NUDGE INSIDE OUT SECTION ===== */
.nudge-inside-out-section {
  padding: 0 100px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
}

.nudge-inside-out-title {
  font-family: "Albert Sans", sans-serif;
  font-size: 40px;
  line-height: 110%;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.nudge-inside-out-title__main {
  color: #290074;
}

.nudge-inside-out-title__highlight {
  color: #4000a9;
}

.nudge-inside-out-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nudge-cards-row {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
  align-items: stretch;
}

.nudge-cards-row.full-width {
  justify-content: center;
}

/* Ensure the preview container fills the row width */
.nudge-cards-row.full-width > .nudge-preview {
  flex: 1 1 100%;
  max-width: 100%;
}

.nudge-cards-left,
.nudge-cards-right {
  display: flex;
  gap: 20px;
  flex: 1;
  max-width: 600px;
  align-items: stretch;
}

.nudge-cards-left {
  justify-content: flex-end;
}

.nudge-cards-right {
  justify-content: flex-start;
}

.nudge-card {
  border: 0.5px dashed #7708bf;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nudge-card:hover {
  border-color: #4000a9;
  background-color: rgba(64, 0, 169, 0.05);
}

.nudge-card.active {
  border-color: #4000a9;
  background-color: rgba(64, 0, 169, 0.1);
}

.nudge-cards-row:last-child::after {
  display: none;
}

.nudge-cards-row.full-width::after {
  display: none;
}

.nudge-card-icon-wrapper {
  border-right: 1px solid #ccccca;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  height: 100%;
  justify-content: center;
  flex-shrink: 0;
}

.nudge-card-icon {
  width: 60px;
  height: 60px;
}

.nudge-card-icon-title {
  color: #290074;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 120%;
  font-weight: 600;
  text-align: center;
  width: 148px;
  margin: 0;
}

.nudge-card-text {
  color: #494948;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.nudge-card-text__focus {
  font-weight: 700;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.nudge-card-text__description {
  font-weight: 400;
  display: block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
}

/* Nudge Preview Container */
.nudge-preview {
  width: 100%;
}
.nudge-preview-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  height: 100%;
}

.preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666;
  font-family: "Albert Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
}

.preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Desktop images for screens 768px and above */
@media (min-width: 768px) {
  #preview-initial {
    content: url("images/ai-nudges/nd0.png");
  }

  #preview-prioritization {
    content: url("images/ai-nudges/nd1.png");
  }

  #preview-social {
    content: url("images/ai-nudges/nd2.png");
  }

  #preview-cta {
    content: url("images/ai-nudges/nd3.png");
  }

  #preview-progress {
    content: url("images/ai-nudges/nd4.png");
  }
}

.nudge-card-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
  flex: 1;
  height: 100%;
  max-width: 400px;
  justify-content: center;
  align-items: flex-start;
}

.nudge-card-my-coach {
  border-radius: 40px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid #4000a9;
  box-sizing: border-box;
  height: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 0;
  color: #4000a9;
  width: fit-content;
  min-width: 120px;
  max-width: 200px;
  flex-shrink: 0;
}

.label {
  position: relative;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.nudge-card-sub-title {
  margin: 8px 0;
}

.csat {
  color: #666;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.nudge-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 390px;
}

.nudge-card-inside-out-title {
  color: #393939;
  font-family: "Albert Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 120%;
  margin: 0;
}

.nudge-card-inside-out-text {
  color: #494948;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 140%;
  font-weight: 400;
  margin: 0;
}

.nudge-card-button-group {
  margin-top: 16px;
}

.nudge-inside-out-footer {
  text-align: center;
  max-width: 800px;
}

.nudge-inside-out-footer-text {
  color: #494948;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  margin: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .accordion-item-title {
    font-size: 26px;
  }
  .ai-nudges-page {
    gap: 80px;
  }
  .hero-section {
    padding: 60px 20px;
  }

  .nudge-banner-section {
    padding: 0px 20px;
  }

  .nudge-banner {
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
  }

  .nudge-banner__content {
    min-width: auto;
  }

  .nudge-banner__image {
    width: 100%;
    max-width: 285px;
  }

  .engine-section {
    padding: 0 20px;
  }

  .engine-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  .engine-info {
    gap: 20px;
  }

  .engine-content {
    min-width: auto;
  }

  .engine-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .l1 {
    width: 50px;
    height: 50px;
    position: absolute;
    left: 90px;
    bottom: -0px;
    overflow: visible;
    aspect-ratio: 1;
    scale: 1.2;
    filter: blur(2px);
  }

  .l2 {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 237px;
    top: 10px;
    overflow: visible;
    aspect-ratio: 1;
    filter: blur(2px);
  }

  .l5 {
    width: 40px;
    height: 40px;
    position: absolute;
    right: 20px;
    bottom: 14px;
    overflow: visible;
    aspect-ratio: 1;
  }
  .l3 {
    width: 50px;
    height: 50px;
    position: absolute;
    right: 95px;
    top: 118px;
    overflow: visible;
    aspect-ratio: 1;
    filter: blur(2px);
  }
  .engine-image {
    display: none;
  }

  .accordion-section {
    min-width: auto;
    max-width: none;
  }

  .nudge-feature-section {
    padding: 0px 20px;
  }

  .nudge-feature-wrapper {
    padding: 60px 20px 0px;
  }
  .nudge-card {
    gap: 6px;
    padding: 10px;
  }
  .nudge-card-text {
    font-size: 14px;
  }

  .nudge-feature-cards {
    flex-direction: column;
    gap: 20px;
  }

  .nudge-feature-card-container {
    flex: none;
    margin-top: 45px;
    padding: 0 150px;
  }

  .nudge-feature-card-wrapper {
    padding: 60px 20px 20px;
  }

  .nudge-feature-icon-wrapper {
    top: -45px;
  }

  .nudge-feature-card-content {
    justify-content: flex-start;
  }

  .nudge-feature-footer {
    flex-direction: column;
    gap: 30px;
  }

  .nudge-inside-out-section {
    padding: 0 20px;
  }

  .nudge-inside-out-content {
    flex-direction: column;
    gap: 20px;
  }

  .nudge-cards-row {
    flex-direction: row;
    gap: 20px;
    width: 100%;
  }

  .nudge-cards-left,
  .nudge-cards-right {
    max-width: none;
    width: 45%;
  }

  .nudge-preview {
    width: 100%;
  }

  .preview-placeholder {
    font-size: 16px;
  }

  .nudge-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .nudge-card-icon-wrapper {
    border-right: none;
    border-bottom: 1px solid #ccccca;
    padding-right: 0;
    padding-bottom: 10px;
    height: auto;
    flex-direction: row;
    width: 100%;
  }
  .nudge-card-icon {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ai-nudges-page {
    gap: 80px;
  }

  .nudge-banner__content {
    gap: 30px;
  }

  .engine-section {
    padding: 0 30px 70px;
  }

  .nudge-feature-section {
    padding: 0 30px 70px;
  }

  .nudge-inside-out-section {
    padding: 0 30px 70px;
  }

  .engine-title,
  .accordion-title,
  .nudge-feature-title,
  .nudge-inside-out-title {
    font-size: 36px;
  }

  .nudge-feature-cards {
    flex-direction: row;
    gap: 30px;
  }

  .nudge-feature-card-container {
    flex: 1;
  }

  .nudge-feature-card-wrapper {
    padding: 70px 25px 25px;
  }

  .nudge-feature-card-content {
    justify-content: flex-start;
  }
}

@media (min-width: 1025px) {
  .nudge-feature-cards {
    flex-direction: row;
    gap: 40px;
  }

  .nudge-feature-card-container {
    flex: 1;
  }

  .nudge-feature-card-wrapper {
    padding: 82px 32px 32px;
  }

  .nudge-feature-card-content {
    justify-content: flex-start;
  }
}

/* Extra Small Devices (max-width: 576px) */
@media (max-width: 576px) {
  body {
    font-size: 14px;
  }
  .ai-nudges-page {
    gap: 80px;
    align-items: center;
    text-align: center;
  }
  .l3 {
    display: none;
  }
  .hero-title {
    font-size: 30px;
  }

  .nudge-banner-section {
    padding: 0 15px 0;
    text-align: center;
  }

  .nudge-banner {
    padding: 30px 15px;
  }
  .nudge-banner__title {
    font-size: 30px;
  }

  .nudge-banner__content {
    gap: 30px;
  }

  .engine-section {
    padding: 15px;
  }

  .engine-title {
    font-size: 30px;
  }

  .engine-info {
    gap: 20px;
    align-items: center;
  }
  .engine-content {
    gap: 20px;
  }
  .engine-wrapper {
    align-items: center;
    justify-content: center;
  }
  .accordion-section {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .accordion {
    align-self: center;
    width: 100%;
  }

  .accordion-title {
    font-size: 30px;
  }

  .accordion-item-title {
    font-size: 22px;
    line-height: 35px;
  }
  .nudge-feature-card-title {
    font-size: 26px;
  }

  .nudge-feature-section {
    padding: 15px;
  }
  .nudge-feature-header {
    gap: 20px;
  }
  .nudge-feature-wrapper {
    gap: 40px;
  }

  .nudge-cards-row {
    flex-direction: column;
    gap: 20px;
  }

  .nudge-cards-left,
  .nudge-cards-right {
    width: 100%;
  }

  .nudge-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .nudge-card-icon {
    margin-bottom: 10px;
  }

  .nudge-card-content-wrapper {
    max-width: 100%;
  }

  .nudge-feature-wrapper {
    padding: 30px 15px 15px;
  }
  .nudge-feature-title {
    font-size: 30px;
  }

  .nudge-feature-card-container {
    padding: 0 20px;
  }

  .nudge-inside-out-section {
    padding: 15px;
    gap: 20px;
  }

  .nudge-inside-out-title {
    font-size: 30px;
  }
  .nudge-card-background-image {
    background-size: cover;
  }

  .nudge-cards-row {
    flex-direction: row;
    gap: 15px;
  }

  .nudge-cards-left,
  .nudge-cards-right {
    width: 50%;
    flex: 1;
  }

  .nudge-preview-container {
    padding: 0;
    min-height: 200px;
  }

  .preview-placeholder {
    font-size: 14px;
  }

  .nudge-card-icon-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 5px;
  }

  .nudge-card-icon,
  .nudge-card-icon-title {
    align-items: center;
  }
  .accordion-item-title {
    font-size: 20px;
  }
}
