:root {
  /* Brand palette */
  --cream: #fbf5f0;
  --purple: #4b2189;
  --pink: #df2a6d;
  --orange: #f58737;
  --yellow: #f8c843;
  --charcoal: #2a272a;
  --gray: #6e686d;
  --oatmeal: #efe6e0;
  --navy: #1d3557;
  --teal: #2a9d8f;
  --lavender: #e0d7f4;
  --peach: #fce2d1;
  --white: #fff;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 2vw, 2.5rem);
  --header-h: 4.5rem;
  --text-lg: clamp(1.05rem, 1.6vw, 1.9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--oatmeal);
}

.hero__frame {
  position: relative;
  width: max(100%, 44rem);
  aspect-ratio: 1584 / 672;
}

.hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.is-missing { display: none; }

.hero__cta {
  position: absolute;
  left: 5.68%;
  top: 57.6%;
  width: 12.8%;
  height: 6.85%;
  overflow: hidden;
  white-space: nowrap;
  text-indent: -999px;
  border-radius: 2px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.hero__cta:hover {
  background: rgba(223, 42, 109, 0.12);
  box-shadow: inset 0 0 0 2px var(--pink);
}
.hero__cta:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* ---------- Header & Nav ---------- */
.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: clamp(0.75rem, 1.2vw, 1.5rem);
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.4rem, 0.6vw, 0.75rem);
  margin-left: clamp(0.75rem, 1.5vw, 1.8rem);
}

.logo__icon {
  width: 16rem;  
  min-width: 8rem;
  max-width: 100%;
  height: auto;
  flex: none;
  margin-top: -1rem;
}

.site-nav {
  margin-top: calc(var(--header-h) * 0.3);
  height: var(--header-h);
  padding: 0 3.2vw 0 2vw;
  background: rgba(251, 245, 240, 0.82);
  backdrop-filter: blur(6px);
  border-radius: 0.6rem 0 0 0.6rem;
  display: flex;
  align-items: center;
}

.site-nav__list {
  display: flex;
  gap: clamp(1.25rem, 3.5vw, 4.25rem);
}

.site-nav__link {
  display: block;
  padding: 0.4rem 0;
  color: var(--charcoal);
  font-size: clamp(0.85rem, 1.1vw, 1.3rem);
  font-weight: 500;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--pink);
  border-bottom-color: var(--pink);
}

.nav-toggle { display: none; }

/* ---------- Shared ---------- */
.heading {
  margin: 0;
  text-align: center;
  color: var(--purple);
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.25;
}

.heading--narrow { max-width: 62rem; margin-inline: auto; }

.lead {
  max-width: 62rem;
  margin: 0 auto;
  margin-top: 2rem;
  text-align: center;
  color: var(--charcoal);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.lead--wide { max-width: 88rem; }

.btn {
  display: inline-block;
  min-width: 9rem;
  padding: 1.7rem 3.2rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--purple);
  color: var(--white);
  font: 500 clamp(1.1rem, 1.5vw, 1.75rem)/1 var(--font);
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { background: var(--pink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Partners ---------- */
.partners {
  padding: 1.5rem var(--gutter) 1.5rem;
  text-align: center;
}
.partners .lead { margin: 0 auto; text-align: center; }

/* Marquee logic left intact */
.marquee {
  margin: clamp(1.5rem, 2.5vw, 3rem) 0 clamp(2.5rem, 4vw, 5rem);
  height: clamp(7rem, 9.2vw, 11rem);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--oatmeal);
  border-radius: 999px;
}
.marquee__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(12rem, 18.3vw, 22rem);
  color: var(--gray);
  font-size: clamp(1.6rem, 2.8vw, 3.4rem);
  font-weight: 600;
  filter: grayscale(1);
}
.marquee__item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  height: 52%;
  width: 3px;
  transform: translateY(-50%);
  background: var(--oatmeal);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Accordion Section ---------- */
.accordion-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem var(--gutter);
  background-color: var(--white);
  box-shadow: 0 0 40px rgba(75, 33, 137, 0.08);
  margin: 0 1%;
}

.accordion-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

#edge-title{
  max-width: 80%;
}

.accordion-container {
  display: flex;
  width: 100%;
  max-width: 1100px;
  height: 400px;
  gap: 1rem;
  margin: 0 auto;
}

.panel {
  position: relative;
  border-radius: 2rem;
  flex: 1; 
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease;
  box-shadow: 0 10px 20px rgba(75, 33, 137, 0.05);
}

.panel:hover, .panel.is-active {
  flex: 5; 
  box-shadow: 0 20px 40px rgba(75, 33, 137, 0.2);
}

/* Gradients */
.panel:nth-child(1) { background: linear-gradient(145deg, #3a196b, var(--purple)); }
.panel:nth-child(2) { background: linear-gradient(145deg, var(--pink), var(--purple)); }
.panel:nth-child(3) { background: linear-gradient(145deg, var(--orange), var(--pink)); }
.panel:nth-child(4) { background: linear-gradient(145deg, var(--yellow), var(--orange)); }
.panel:nth-child(5) { background: linear-gradient(145deg, #4A154B , #E01E5A); }
.panel:nth-child(6) { background: linear-gradient(145deg, #1E1233, #BF55EC); }

.panel:nth-child(4) .expanded-view h3, 
.panel:nth-child(4) .expanded-view p,
.panel:nth-child(4) .collapsed-view span {
  color: var(--charcoal);
}

.panel-icon {
  font-size: 2rem;
  line-height: 1;
}

.collapsed-view .panel-icon { margin-bottom: 2rem; }
.expanded-view .panel-icon { font-size: 3rem; margin-bottom: 1.5rem; }

.collapsed-view,
.expanded-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
}

.collapsed-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2.5rem;
  opacity: 1;
  transition: opacity 0.3s ease 0.1s; 
}
.collapsed-view span {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 1px;
}

.expanded-view {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
  opacity: 0;
  transition: opacity 0.3s ease 0s; 
  width: 400px; 
}
.expanded-view h3 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem 0;
}
.expanded-view p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.panel:hover .collapsed-view, .panel.is-active .collapsed-view { opacity: 0; transition-delay: 0s; }
.panel:hover .expanded-view, .panel.is-active .expanded-view { opacity: 1; transition-delay: 0.3s; }

/* ---------- Features / Hover Section ---------- */
#reports {
  background-color: var(--oatmeal);
}

.features {
  padding: clamp(2rem, 4vw, 5rem) var(--gutter);
}
.features__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem) auto;
}
.features__main-title {
  margin: 0 0 1rem 0;
  color: var(--charcoal);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.highlight-text-1 { color: #0d031c; }
.highlight-text-2 { color: var(--purple); }
.highlight-text-3 { color: #9d0636; }

.features__sub-title {
  margin: 0;
  color: var(--gray);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
}

.feat-container {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 105rem;
  margin: 0 auto;
}
.feat-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feat-item {
  display: flex;
  align-items: center; 
  justify-content: space-between;
  padding: clamp(1.2rem, 2vw, 1.5rem) 1.5rem; 
  border-bottom: 1px solid var(--oatmeal);
  cursor: pointer;
  opacity: 1 !important; 
  border-radius: 0.75rem; 
  transition: all 0.3s ease;
  margin-bottom: 4px;
}
.feat-item:hover { border-color: transparent; }

.feat-text { padding-right: clamp(1.5rem, 3vw, 2rem); }
.feat-text h3 {
  margin: 0 0 0.5rem;
  color: var(--charcoal); 
  font-size: clamp(1.1rem, 1.35vw, 1.6rem);
  font-weight: 600;
}
.feat-text p {
  margin: 0;
  color: var(--gray);
  font-size: clamp(0.85rem, 0.95vw, 1.05rem);
  line-height: 1.45;
}

.arrow-btn {
  min-width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

/* Hover background accents */
.feat-item:nth-of-type(1):hover { background-color: var(--lavender); }
.feat-item:nth-of-type(1):hover .arrow-btn { background: var(--purple); border-color: var(--purple); color: var(--white); }
.feat-item:nth-of-type(2):hover { background-color: rgba(223, 42, 109, 0.08); }
.feat-item:nth-of-type(2):hover .arrow-btn { background: var(--pink); border-color: var(--pink); color: var(--white); }
.feat-item:nth-of-type(3):hover { background-color: rgba(248, 200, 67, 0.15); }
.feat-item:nth-of-type(3):hover .arrow-btn { background: var(--yellow); border-color: var(--yellow); color: var(--charcoal); }
.feat-item:nth-of-type(4):hover { background-color: var(--lavender); }
.feat-item:nth-of-type(4):hover .arrow-btn { background: var(--purple); border-color: var(--purple); color: var(--white); }
.feat-item:nth-of-type(5):hover { background-color: rgba(223, 42, 109, 0.08); }
.feat-item:nth-of-type(5):hover .arrow-btn { background: var(--pink); border-color: var(--pink); color: var(--white); }

.feat-img-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.showcase-container {
  position: relative;
  width: 100%;
  max-width: 45rem;
  aspect-ratio: 1/1; 
}
.showcase-pic {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 1.1rem;
  box-shadow: 0 10px 30px rgba(75, 33, 137, 0.12);
  object-fit: cover;
  opacity: 0; 
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out; 
}

/* Feature image crossfades */
.feat-list:not(:hover) ~ .feat-img-wrap .pic-1 { opacity: 1; visibility: visible; }
.feat-list:has(.feat-item:nth-of-type(1):hover) ~ .feat-img-wrap .pic-1 { opacity: 1; visibility: visible; }
.feat-list:has(.feat-item:nth-of-type(2):hover) ~ .feat-img-wrap .pic-2 { opacity: 1; visibility: visible; }
.feat-list:has(.feat-item:nth-of-type(3):hover) ~ .feat-img-wrap .pic-3 { opacity: 1; visibility: visible; }
.feat-list:has(.feat-item:nth-of-type(4):hover) ~ .feat-img-wrap .pic-4 { opacity: 1; visibility: visible; }
.feat-list:has(.feat-item:nth-of-type(5):hover) ~ .feat-img-wrap .pic-5 { opacity: 1; visibility: visible; }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(2rem, 3vw, 4rem) var(--gutter) clamp(3rem, 5vw, 6rem);
}
.contact__title {
  margin: 0 0 clamp(1.5rem, 2vw, 2.5rem);
  color: var(--purple);
  font-size: clamp(2.25rem, 3.4vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}
.contact__layout {
  display: grid;
  grid-template-columns: 1.95fr 1fr;
  gap: clamp(2rem, 5.4vw, 6.4rem);
  align-items: center;
  justify-content: center;
  margin-left: 5%;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.2vw, 2.6rem);
}
.form__field--full,
.form__actions { grid-column: 1 / -1; }
.form__label {
  display: block;
  margin-bottom: 1rem;
  color: var(--charcoal);
  font-size: clamp(1.1rem, 1.5vw, 1.75rem);
  font-weight: 600;
}
.form__input {
  width: 100%;
  height: clamp(4rem, 5vw, 6rem);
  padding: 0 1.8rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(75, 33, 137, 0.08);
  color: var(--charcoal);
  font: 400 clamp(1rem, 1.35vw, 1.6rem) var(--font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form__input--area {
  height: clamp(12rem, 15.6vw, 18.75rem);
  padding-top: 1.7rem;
  resize: vertical;
}
.form__input::placeholder { color: var(--gray); }
.form__input:hover { box-shadow: 0 10px 30px rgba(75, 33, 137, 0.16); }
.form__input:focus-visible {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(75, 33, 137, 0.25);
}
.form__input.is-invalid { border-color: var(--pink); }

.form__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.form__status { margin: 0; color: var(--teal); font-size: 1rem; font-weight: 500; }

/* ---------- Footer ---------- */
.footer__copy {
  margin-top: 2rem;
  text-align: right;
  font-size: clamp(0.95rem, 1.35vw, 1.6rem);
  font-weight: 300;
}

/* Old footer elements left intact in case they get re-added to HTML */
.subscribe { display: flex; align-items: center; max-width: 47rem; height: clamp(3.75rem, 4.7vw, 5.6rem); margin: 0 auto clamp(2rem, 3.5vw, 4rem); padding: 0 1.2rem 0 2.3rem; background: var(--white); border-radius: 0.9rem; }
.subscribe__input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--charcoal); font: 400 clamp(1rem, 1.4vw, 1.6rem) var(--font); }
.subscribe__btn { width: 3.5rem; height: 3.5rem; border: 0; background: transparent; cursor: pointer; transition: transform 0.2s ease; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0; font-size: clamp(0.85rem, 1.15vw, 1.4rem); letter-spacing: 0.06em; text-transform: uppercase; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 51rem; margin: 0 auto; background: var(--white); border-radius: 0.4rem; color: var(--purple); }


/* =========================================
   MEDIA QUERIES (CONSOLIDATED)
========================================= */

/* Tablet & Smaller */
@media (max-width: 900px) {
  /* Nav Header */
  .logo__icon { width: 3rem; }
  .logo__word { font-size: 3.2rem; }
  .logo__sub { font-size: 0.6rem; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 2.75rem; height: 2.75rem; margin-right: var(--gutter);
    padding: 0.7rem; background: rgba(251, 245, 240, 0.85); border: 0;
    border-radius: 0.5rem; cursor: pointer;
  }
  .nav-toggle__bar { display: block; height: 2px; background: var(--purple); border-radius: 2px; }

  .site-nav {
    position: absolute; top: 4.75rem; left: 0; right: 0; height: auto;
    margin: 0; padding: 1rem var(--gutter) 1.5rem; background: var(--cream);
    border-radius: 0; box-shadow: 0 12px 24px rgba(75, 33, 137, 0.15); display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: 0.5rem; }
  .site-nav__link { font-size: 1.1rem; padding: 0.6rem 0; }

  /* Layout tweaks */
  .features, .feat-container { flex-direction: column; }
  .features__media { max-width: 28rem; margin-inline: auto; }
  .contact__layout { grid-template-columns: 1fr; }
  .contact__media { max-width: 26rem; }
  .marquee { border-radius: 4rem; }
  .btn { padding: 1.3rem 2.2rem; }

  /* Accordion mobile fix */
  .accordion-container {
    flex-direction: column;
    height: 750px; 
  }
  .panel:hover, .panel.is-active { flex: 3; }
  
  .collapsed-view {
    flex-direction: row; justify-content: flex-start; align-items: center;
    padding: 0 1.5rem; height: 100%;
  }
  .collapsed-view .panel-icon { margin-bottom: 0; margin-right: 1rem; font-size: 1.5rem; }
  .collapsed-view span { writing-mode: horizontal-tb; transform: none; font-size: 1rem; }
  
  .expanded-view { width: 100%; padding: 1.5rem; justify-content: center; }
}

/* Mobile Phones only */
@media (max-width: 600px) {
  .form { grid-template-columns: 1fr; }
  .form__actions { flex-direction: column; align-items: flex-start; }
  .footer__links li:not(:last-child)::after { margin: 0 0.6rem; }
  
  /* tighter accordion spacing on tiny screens */
  .accordion-section { padding: 3rem 1rem; }
  .accordion-container { height: 850px; }
  .expanded-view .panel-icon { font-size: 2rem; margin-bottom: 0.75rem; }
  .expanded-view h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .expanded-view p { font-size: 0.9rem; line-height: 1.4; }
}