/* =========================================================
   ClueBolt FAQ page
   ========================================================= */

:root {
  --navy: #07164b;
  --blue: #1675e8;
  --blue-dark: #0b5fc8;
  --sky: #eef8ff;
  --sky-2: #e4f3ff;
  --yellow: #ffd52f;
  --text-soft: #54739b;
  --white: #ffffff;
  --border: rgba(23, 117, 232, 0.10);
  --shadow: 0 12px 35px rgba(36, 111, 180, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--navy);
  background:
    radial-gradient(circle at 75% 16%, rgba(182, 226, 255, 0.42), transparent 25%),
    linear-gradient(180deg, #f7fcff 0%, #edf8ff 52%, #f7fcff 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.faq-page {
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto;
}

/* Header */

.faq-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.faq-logo {
  display: block;
  width: 185px;
  flex: 0 0 auto;
}

.faq-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.faq-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 38px;
}

.faq-nav a {
  position: relative;
  padding: 12px 0;
  color: #274d7c;
  font-size: 15px;
  font-weight: 500;
}

.faq-nav a.active {
  color: var(--navy);
}

.faq-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
}

.faq-header-cta,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 13px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(255, 213, 47, 0.22);
}

.faq-header-cta {
  min-height: 52px;
  padding: 0 22px;
  white-space: nowrap;
  font-size: 14px;
}

.faq-header-cta span {
  font-size: 22px;
  line-height: 1;
}

/* Hero */

.faq-hero {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  align-items: center;
  gap: 30px;
  padding: 48px 8px 34px;
}

.eyebrow,
.cta-eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 4px;
}

.faq-hero h1 {
  margin: 13px 0 14px;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 0.96;
  letter-spacing: -3.5px;
  font-weight: 850;
}

.faq-hero h1 span {
  color: var(--blue);
}

.faq-hero-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.48;
  font-weight: 500;
}

/* CSS illustration */

.faq-hero-art {
  position: relative;
  height: 290px;
  overflow: hidden;
}

.art-glow {
  position: absolute;
  border-radius: 50%;
  background: rgba(206, 237, 255, 0.68);
}

.art-glow-one {
  width: 220px;
  height: 220px;
  left: 115px;
  top: 15px;
}

.art-glow-two {
  width: 125px;
  height: 125px;
  right: 35px;
  bottom: 15px;
}

.speech {
  position: absolute;
  z-index: 5;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(41, 105, 161, 0.10);
  font-weight: 800;
}

.speech-main {
  width: 158px;
  padding: 28px 25px 24px;
  left: 32px;
  top: 30px;
  background: var(--white);
  transform: rotate(-7deg);
  font-family: "Trebuchet MS", ui-sans-serif, sans-serif;
  font-size: 21px;
  line-height: 1.15;
}

.speech-main i {
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 10px;
  background: var(--navy);
  transform: rotate(-7deg);
  border-radius: 99px;
}

.speech-play {
  left: 8px;
  bottom: 48px;
  padding: 14px 19px;
  background: #ffc9cf;
  transform: rotate(-12deg);
}

.speech-learn {
  right: 12px;
  top: 55px;
  padding: 14px 22px;
  background: #bceecf;
  transform: rotate(8deg);
}

.speech-fun {
  right: 4px;
  bottom: 68px;
  padding: 14px 19px;
  background: #d8c9ff;
  transform: rotate(-8deg);
}

.question-bubble {
  position: absolute;
  z-index: 4;
  width: 112px;
  height: 112px;
  right: 82px;
  top: 6px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: linear-gradient(145deg, #238df2, #0963c9);
  box-shadow: 0 18px 30px rgba(22, 117, 232, 0.20);
  transform: rotate(-6deg);
}

.question-bubble::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 42px;
  border: 13px solid transparent;
  border-top-color: #0963c9;
}

.question-bubble span {
  color: white;
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
}

.lightbulb {
  position: absolute;
  z-index: 3;
  left: 188px;
  bottom: 35px;
  width: 57px;
  height: 78px;
  transform: rotate(-10deg);
}

.bulb-glass {
  width: 57px;
  height: 57px;
  border-radius: 50% 50% 45% 45%;
  background: #ffd943;
  box-shadow: 0 0 0 12px rgba(255, 217, 67, 0.10);
}

.bulb-base {
  width: 31px;
  height: 21px;
  margin: -2px auto 0;
  border-radius: 0 0 8px 8px;
  background: #6c7888;
}

.mini-globe {
  position: absolute;
  z-index: 2;
  width: 125px;
  height: 125px;
  left: 152px;
  bottom: 45px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #58c9ff, #1776e7);
  box-shadow: 0 14px 30px rgba(22, 117, 232, 0.20);
}

.mini-globe::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid rgba(255,255,255,.24);
  border-radius: 50%;
}

.globe-land {
  position: absolute;
  background: #75d18d;
  border-radius: 50%;
}

.land-one {
  width: 62px;
  height: 45px;
  left: 15px;
  top: 26px;
  transform: rotate(-25deg);
}

.land-two {
  width: 48px;
  height: 73px;
  right: 17px;
  top: 15px;
  transform: rotate(22deg);
}

.land-three {
  width: 40px;
  height: 29px;
  left: 45px;
  bottom: 12px;
  transform: rotate(15deg);
}

.spark {
  position: absolute;
  z-index: 6;
  color: var(--yellow);
  font-size: 30px;
}

.spark-one { top: 0; left: 3px; }
.spark-two { right: 54px; top: 0; transform: rotate(25deg); }
.spark-three { right: 0; bottom: 30px; transform: rotate(-20deg); }

/* FAQ list */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 8px 52px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 15px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 5px 18px rgba(32, 108, 165, 0.055);
}

.faq-question {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 54px 1fr 28px;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 18px;
  border: 0;
  background: transparent;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.faq-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e0f0ff;
  color: var(--blue);
  font-size: 19px;
  font-weight: 800;
}

.faq-question-text {
  font-size: 18px;
  font-weight: 750;
}

.faq-chevron {
  color: var(--blue);
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.faq-answer {
  display: none;
  margin: -1px 20px 18px 84px;
  padding: 15px 18px;
  border-radius: 11px;
  background: #eaf6ff;
  color: #45678f;
  font-size: 16px;
  line-height: 1.5;
}

.faq-answer p {
  margin: 0;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-chevron {
  transform: translateY(2px);
}

/* CTA */

.faq-cta {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  margin: 0 0 42px;
  padding: 42px 48px;
  border-radius: 22px;
  background: linear-gradient(110deg, #0c61b9 0%, #2588d9 100%);
  color: white;
}

.cta-eyebrow {
  color: #dceeff;
  margin-bottom: 13px;
}

.faq-cta h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -2px;
}

.faq-cta h2 span {
  color: var(--yellow);
}

.faq-cta p {
  margin: 13px 0 20px;
  font-size: 16px;
  color: #e5f3ff;
}

.cta-button {
  min-height: 52px;
  padding: 0 19px;
  gap: 14px;
  font-size: 15px;
}

.play-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--yellow);
  font-size: 10px;
}

.cta-arrow {
  margin-left: 12px;
  font-size: 23px;
}

.cta-art {
  position: relative;
  height: 180px;
}

.cta-trophy {
  position: absolute;
  left: 43%;
  top: 12px;
  width: 76px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 18px 18px 28px 28px;
  background: linear-gradient(145deg, #ffe65d, #ffbb1f);
  color: #fff7a9;
  font-size: 37px;
  box-shadow: 0 14px 25px rgba(4, 43, 93, 0.18);
}

.cta-trophy::before,
.cta-trophy::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 30px;
  top: 12px;
  border: 7px solid #ffcf35;
}

.cta-trophy::before {
  left: -19px;
  border-right: 0;
  border-radius: 20px 0 0 20px;
}

.cta-trophy::after {
  right: -19px;
  border-left: 0;
  border-radius: 0 20px 20px 0;
}

.cta-books {
  position: absolute;
  left: 39%;
  bottom: 4px;
  width: 170px;
}

.cta-books span {
  display: block;
  height: 19px;
  margin-top: 3px;
  border-radius: 7px;
}

.cta-books span:nth-child(1) { width: 135px; margin-left: 24px; background: #f1b83b; }
.cta-books span:nth-child(2) { width: 155px; background: #e8edf4; }
.cta-books span:nth-child(3) { width: 170px; margin-left: -10px; background: #4389d2; }

.cta-speech {
  position: absolute;
  padding: 9px 14px;
  border-radius: 13px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 15px rgba(0,0,0,.08);
}

.speech-history { right: 2px; top: 16px; background: #bcdcff; transform: rotate(8deg); }
.speech-science { left: 4px; top: 56px; background: #bff0d0; transform: rotate(-8deg); }
.speech-geo { right: 3px; bottom: 38px; background: #ffb7c3; transform: rotate(6deg); }
.speech-pop { left: 25px; bottom: 7px; background: #d5c8ff; transform: rotate(-6deg); }

.cta-spark {
  position: absolute;
  right: 34%;
  top: 0;
  color: var(--yellow);
  font-size: 27px;
}

/* Footer */

.faq-footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 20px;
  color: #58779a;
  font-size: 13px;
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand strong {
  color: var(--navy);
}

.footer-bolt {
  color: var(--yellow);
  font-size: 27px;
  font-weight: 900;
}

.footer-divider {
  width: 1px;
  height: 18px;
  background: #aac5dd;
}

.footer-links {
  gap: 26px;
}

/* Responsive */

@media (max-width: 900px) {
  .faq-page {
    width: min(100% - 36px, 700px);
  }

  .faq-header {
    gap: 18px;
  }

  .faq-nav {
    gap: 18px;
  }

  .faq-nav a:nth-child(1),
  .faq-nav a:nth-child(3) {
    display: none;
  }

  .faq-header-cta {
    padding: 0 15px;
  }

  .faq-hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .faq-hero-art {
    height: 230px;
    margin-top: -10px;
  }

  .faq-list {
    margin-left: 0;
    margin-right: 0;
  }

  .faq-cta {
    grid-template-columns: 1fr;
  }

  .cta-art {
    display: none;
  }
}

@media (max-width: 600px) {
  .faq-page {
    width: calc(100% - 28px);
  }

  .faq-header {
    min-height: 78px;
  }

  .faq-logo {
    width: 125px;
  }

  .faq-nav {
    display: none;
  }

  .faq-header-cta {
    margin-left: auto;
    min-height: 44px;
    padding: 0 13px;
    font-size: 12px;
  }

  .faq-header-cta span {
    font-size: 18px;
  }

  .faq-hero {
    padding: 28px 2px 18px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 2.5px;
  }

  .faq-hero h1 {
    margin-top: 10px;
    font-size: 48px;
    letter-spacing: -2.6px;
  }

  .faq-hero-copy p {
    font-size: 15px;
  }

  .desktop-only {
    display: none;
  }

  .faq-hero-art {
    height: 205px;
    transform: scale(.88);
    transform-origin: center top;
    margin-bottom: -25px;
  }

  .faq-question {
    min-height: 66px;
    grid-template-columns: 43px 1fr 24px;
    gap: 9px;
    padding: 7px 11px;
  }

  .faq-number {
    width: 37px;
    height: 37px;
    font-size: 16px;
  }

  .faq-question-text {
    font-size: 14px;
    line-height: 1.25;
  }

  .faq-chevron {
    font-size: 22px;
  }

  .faq-answer {
    margin: -2px 11px 12px 62px;
    padding: 12px;
    font-size: 13px;
  }

  .faq-cta {
    min-height: 250px;
    margin-bottom: 25px;
    padding: 30px 25px;
    border-radius: 18px;
  }

  .faq-cta h2 {
    font-size: 34px;
  }

  .faq-cta p {
    font-size: 14px;
  }

  .faq-footer {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
    padding-bottom: 25px;
  }

  .footer-links {
    display: none;
  }
}
