
/* ==============================================
   ADGUARDDNS.ORG
   FAQ SECTION — CLEAN FINAL STYLESHEET
   Desktop / Tablet / Mobile
============================================== */

.adg-faq,
.adg-faq * {
  box-sizing: border-box;
}

.adg-faq {
  --faq-purple: #7025bb;
  --faq-dark: #191139;
  --faq-muted: #615876;
  --faq-border: #e7daf6;

  position: relative;
  isolation: isolate;
  overflow: hidden;

  width: 100%;
  padding: 65px 0 78px;

  scroll-margin-top: 110px;

  font-family: "Inter", sans-serif;
  color: var(--faq-dark);

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(225, 205, 255, 0.48),
      transparent 57%
    ),
    linear-gradient(
      180deg,
      #fbf9ff 0%,
      #ffffff 56%,
      #f5edff 100%
    );
}

/* CONTAINER */

.adg-faq__container {
  width: min(1260px, calc(100% - 56px));
  margin-inline: auto;
}

.adg-faq__sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ==============================================
   SECTION HEADING
============================================== */

.adg-faq__heading {
  max-width: 900px;
  margin: 0 auto 20px;
  text-align: center;
}

.adg-faq__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  padding: 7px 16px 7px 8px;

  border-radius: 50px;
  background: #ffffff;

  color: var(--faq-purple);
  font-size: 13px;
  font-weight: 800;

  box-shadow:
    0 8px 24px rgba(79, 33, 125, 0.08);
}

.adg-faq__eyebrow span {
  display: grid;
  place-items: center;

  width: 29px;
  height: 29px;

  background:
    linear-gradient(145deg, #9943e7, #651bb2);

  color: #ffffff;
  border-radius: 50%;

  font-size: 18px;
}

.adg-faq__heading h2 {
  margin: 15px 0 12px;

  font-family:
    "Plus Jakarta Sans", "Inter", sans-serif;

  font-size: clamp(32px, 3.65vw, 49px);
  font-weight: 800;

  letter-spacing: -0.045em;
  line-height: 1.18;

  color: var(--faq-dark);
}

.adg-faq__heading h2 span {
  color: var(--faq-purple);
}

.adg-faq__heading p {
  max-width: 750px;
  margin: 0 auto;

  font-size: 15px;
  line-height: 1.7;
  color: var(--faq-muted);
}

/* ==============================================
   THREE INFORMATION CHIPS
============================================== */

.adg-faq__chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 12px;
  margin: 23px auto 35px;
}

.adg-faq__chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;
  min-height: 43px;

  padding: 9px 18px;

  border-radius: 100px;
  background: #f0e3fc;

  color: #37135b;
  font-size: 12px;
  font-weight: 750;
}

.adg-faq__chips svg {
  display: block;
  width: 20px;
  height: 20px;

  fill: none;
  stroke: var(--faq-purple);
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==============================================
   DESKTOP TWO-COLUMN LAYOUT
============================================== */

.adg-faq__layout {
  display: grid;

  grid-template-columns:
    minmax(0, 0.84fr)
    minmax(0, 1.16fr);

  gap: clamp(25px, 3.2vw, 48px);

  align-items: center;
  width: 100%;
}

/* ==============================================
   LEFT: CENTERED ILLUSTRATION
============================================== */

.adg-faq__visual {
  display: flex;
  align-items: center;
  justify-content: center;

  align-self: center;

  min-width: 0;
  width: 100%;

  margin: 0;
  padding: 0;
}

.adg-faq__visual-stage {
  position: relative;

  width: min(100%, 355px);
  max-width: 355px;

  margin: 0 auto;

  /* Small optical adjustment, not bottom alignment */
  top: -22px;
}

.adg-faq__visual img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
  border-radius: 0;
  background: transparent;

  /* No mask on the transparent image */
  -webkit-mask-image: none;
  mask-image: none;

  animation:
    adgFaqFloat 6s ease-in-out infinite;
}

/* QUESTION MARK BUBBLE */

.adg-faq__bubble {
  position: absolute;

  top: 4%;
  right: 5%;

  display: grid;
  place-items: center;

  width: 35px;
  height: 35px;

  border: 2px solid #ffffff;
  border-radius: 12px;

  background:
    linear-gradient(145deg, #a64bea, #681fb8);

  color: #ffffff;
  font-size: 21px;
  font-weight: 800;

  box-shadow:
    0 7px 16px rgba(93, 32, 158, 0.2);

  animation:
    adgFaqBubble 4s ease-in-out infinite;
}

/* REACTION ON QUESTION CLICK */

.adg-faq__visual.is-reacting
.adg-faq__bubble {
  animation:
    adgFaqReact 0.55s
    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==============================================
   RIGHT: FAQ ACCORDION
============================================== */

.adg-faq__list {
  display: grid;
  gap: 10px;

  width: 100%;
  min-width: 0;
}

.adg-faq__item {
  width: 100%;
  min-width: 0;
  overflow: hidden;

  border: 1px solid var(--faq-border);
  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 7px 19px rgba(61, 28, 102, 0.06);

  transition:
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.adg-faq__item.is-open {
  border-color: #9945e4;

  background:
    linear-gradient(
      120deg,
      #fffaff,
      #f6edff
    );

  box-shadow:
    0 0 0 1px rgba(153, 69, 228, 0.24),
    0 10px 24px rgba(98, 40, 154, 0.11);
}

.adg-faq__item h3 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}

/* ==============================================
   FAQ QUESTION BUTTON
============================================== */

.adg-faq__question {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 64px;

  gap: 13px;
  padding: 11px 15px;

  border: 0;
  border-radius: 0;

  background: transparent;
  color: var(--faq-dark);

  text-align: left;

  font-family:
    "Plus Jakarta Sans", "Inter", sans-serif;

  cursor: pointer;
}

.adg-faq__question:focus-visible {
  outline: 3px solid #c83824;
  outline-offset: -4px;
}

.adg-faq__icon {
  display: grid;
  place-items: center;

  flex: 0 0 43px;
  width: 43px;
  height: 43px;

  border-radius: 12px;

  background: #f3e9fd;
  color: var(--faq-purple);
}

.adg-faq__icon svg {
  display: block;

  width: 23px;
  height: 23px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.adg-faq__question-text {
  flex: 1;
  min-width: 0;

  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 800;
  line-height: 1.4;

  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

/* ==============================================
   PLUS TO X ANIMATION
============================================== */

.adg-faq__toggle {
  position: relative;

  flex: 0 0 34px;
  width: 34px;
  height: 34px;

  border-radius: 50%;
  background: #f3e7ff;
  color: #7825c7;

  transform: rotate(0deg);

  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
}

.adg-faq__toggle::before,
.adg-faq__toggle::after {
  content: "";

  position: absolute;
  left: 50%;
  top: 50%;

  background: currentColor;
  border-radius: 3px;

  transform: translate(-50%, -50%);
}

.adg-faq__toggle::before {
  width: 17px;
  height: 2.4px;
}

.adg-faq__toggle::after {
  width: 2.4px;
  height: 17px;
}

.adg-faq__item.is-open
.adg-faq__toggle {
  transform: rotate(45deg);
  background: #ead6ff;
}

/* ==============================================
   SMOOTH AUTO-HEIGHT ACCORDION
   CSS GRID: 0FR TO 1FR
============================================== */

.adg-faq__answer {
  display: grid;
  grid-template-rows: 0fr;

  opacity: 0;

  transition:
    grid-template-rows 0.36s
      cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
}

.adg-faq__item.is-open
.adg-faq__answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.adg-faq__answer-inner {
  min-height: 0;
  overflow: hidden;
}

.adg-faq__answer-content {
  padding: 0 22px 21px 71px;
}

.adg-faq__answer p {
  margin: 0;

  padding-left: 13px;
  border-left: 3px solid #8a33da;

  font-size: 13.5px;
  line-height: 1.7;
  color: #473b59;
}

.adg-faq__answer a {
  color: #7127b3;
  font-weight: 700;
  text-underline-offset: 3px;
}

.adg-faq__answer a:focus-visible {
  outline: 2px solid #c83824;
  outline-offset: 3px;
}

/* ==============================================
   STAGGERED SCROLL REVEAL
============================================== */

.adg-faq.has-reveal:not(.is-inview)
.adg-faq__item {
  opacity: 0;
  transform: translateY(15px);
}

.adg-faq.has-reveal.is-inview
.adg-faq__item {
  opacity: 1;
  transform: translateY(0);

  transition:
    opacity 0.48s ease,
    transform 0.48s
      cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;

  transition-delay:
    calc(var(--order) * 65ms),
    calc(var(--order) * 65ms),
    0ms, 0ms, 0ms;
}

/* ==============================================
   ILLUSTRATION ANIMATIONS
============================================== */

@keyframes adgFaqFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes adgFaqBubble {
  0%, 100% {
    transform: translateY(0) rotate(8deg);
  }

  50% {
    transform: translateY(-6px) rotate(3deg);
  }
}

@keyframes adgFaqReact {
  0%, 100% {
    transform: scale(1) rotate(8deg);
  }

  50% {
    transform: scale(1.18) rotate(-8deg);
  }
}

/* ==============================================
   SMALL LAPTOP — 1024 TO 1199PX
============================================== */

@media (min-width: 1024px) and (max-width: 1199px) {

  .adg-faq__container {
    width: calc(100% - 44px);
  }

  .adg-faq__layout {
    grid-template-columns:
      minmax(0, 0.75fr)
      minmax(0, 1.25fr);

    gap: 22px;
  }

  .adg-faq__visual-stage {
    width: min(100%, 305px);
    top: -14px;
  }

  .adg-faq__question {
    gap: 10px;
    padding: 10px 12px;
  }

  .adg-faq__question-text {
    font-size: 14px;
  }

  .adg-faq__answer-content {
    padding-left: 62px;
    padding-right: 16px;
  }
}

/* ==============================================
   TABLET — 761 TO 1023PX
============================================== */

@media (min-width: 761px) and (max-width: 1023px) {

  .adg-faq {
    padding: 52px 0 65px;
  }

  .adg-faq__container {
    width: calc(100% - 40px);
  }

  .adg-faq__layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .adg-faq__visual {
    width: 100%;
  }

  .adg-faq__visual-stage {
    width: min(100%, 290px);
    top: 0;
  }

  .adg-faq__list {
    width: 100%;
    max-width: 780px;
  }
}

/* ==============================================
   MOBILE — UP TO 760PX
============================================== */

@media (max-width: 760px) {

  .adg-faq {
    padding: 42px 0 55px;
  }

  .adg-faq__container {
    width: calc(100% - 28px);
  }

  /* Mobile heading */

  .adg-faq__heading {
    margin-bottom: 14px;
  }

  .adg-faq__heading h2 {
    font-size: clamp(27px, 6.6vw, 36px);
    line-height: 1.25;
    margin: 12px 0 9px;
  }

  .adg-faq__heading p {
    font-size: 12.5px;
    line-height: 1.65;
  }

  /* Three stacked chips */

  .adg-faq__chips {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 6px;

    width: min(100%, 390px);
    margin: 16px auto 15px;
  }

  .adg-faq__chips span {
    width: 100%;
    min-height: 38px;

    padding: 8px 12px;
    font-size: 11.5px;
  }

  .adg-faq__chips svg {
    width: 18px;
    height: 18px;
  }

  /* Illustration above questions */

  .adg-faq__layout {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;
  }

  .adg-faq__visual {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    margin: 0;
  }

  .adg-faq__visual-stage {
    width: min(100%, 240px);
    max-width: 240px;
    top: 0;
  }

  .adg-faq__visual img {
    width: 100%;
    height: auto;
  }

  .adg-faq__bubble {
    width: 28px;
    height: 28px;

    font-size: 17px;
    border-radius: 9px;
  }

  /* Mobile accordion */

  .adg-faq__list {
    width: 100%;
    gap: 8px;
  }

  .adg-faq__item {
    border-radius: 14px;
  }

  .adg-faq__question {
    min-height: 58px;
    padding: 9px 10px;
    gap: 9px;
  }

  .adg-faq__icon {
    flex: 0 0 37px;
    width: 37px;
    height: 37px;

    border-radius: 10px;
  }

  .adg-faq__icon svg {
    width: 20px;
    height: 20px;
  }

  .adg-faq__question-text {
    font-size: clamp(12px, 3.5vw, 15px);
    line-height: 1.45;
  }

  .adg-faq__toggle {
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
  }

  .adg-faq__answer-content {
    padding: 0 13px 17px 55px;
  }

  .adg-faq__answer p {
    font-size: 12.5px;
    line-height: 1.65;
    padding-left: 10px;
  }
}

/* ==============================================
   SMALL MOBILE — UP TO 360PX
============================================== */

@media (max-width: 360px) {

  .adg-faq__container {
    width: calc(100% - 20px);
  }

  .adg-faq__visual-stage {
    width: min(100%, 210px);
  }

  .adg-faq__question {
    gap: 7px;
    padding: 8px;
  }

  .adg-faq__question-text {
    font-size: 12px;
  }

  .adg-faq__answer-content {
    padding-left: 47px;
  }
}

/* ==============================================
   REDUCED MOTION
============================================== */

@media (prefers-reduced-motion: reduce) {

  .adg-faq *,
  .adg-faq *::before,
  .adg-faq *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .adg-faq.has-reveal
  .adg-faq__item {
    opacity: 1 !important;
    transform: none !important;
  }
}
