/* Homepage questions (#faq-title), after Louis's mockup, toned down: soft glass
   cards whose edge is lit at the top and fades down the sides (no bottom line),
   a lime "+" ring, the "?" glyph in dotted rings, and one line of light below.
   Selectors are deliberately more specific than home-immersive.css and styles.css. */

.jdi-home .home-faq { position: relative; overflow: hidden; }
.jdi-home .home-faq > .home-wrap { position: relative; z-index: 1; }

/* ---- intro ---- */
.jdi-home .home-faq .faq-intro { position: relative; padding-left: 132px; }
.jdi-home .home-faq .faq-intro h2 { padding-left: 0; font-size: clamp(32px, 3.05vw, 46px); line-height: 1.08; letter-spacing: -.035em; max-width: none; }
.jdi-home .home-faq .faq-intro h2::before { display: none; }
.jdi-home .home-faq .faq-intro h2 span { color: #cbf879; font-family: 'Source Serif 4', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.03em; }
.jdi-home .home-faq .faq-layout > .faq-intro > p { margin: 22px 0 0; max-width: 30ch; font: 400 clamp(15px, 1.15vw, 17px)/1.6 Inter, sans-serif; color: #c3c6cd; }
/* The shared particle glyph lands in the middle of this box; the rings are ours. */
.jdi-home .home-faq .faq-glyph { position: absolute; left: 0; top: calc(clamp(32px, 3.05vw, 46px) * 1.08 - 46px); width: 92px; height: 92px; pointer-events: none; }
.jdi-home .home-faq .faq-glyph::before, .jdi-home .home-faq .faq-glyph::after { content: ''; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.jdi-home .home-faq .faq-glyph::before { width: 128px; height: 128px; border: 1px dotted #cbf87924; background: radial-gradient(circle, #cbf8790f, transparent 68%); }
.jdi-home .home-faq .faq-glyph::after { width: 182px; height: 182px; border: 1px dotted #cbf87912; }

/* ---- cards ---- */
.jdi-home .home-faq .faq-list { display: grid; gap: 14px; border: 0; }
.jdi-home .home-faq .faq-list .faq-item { position: relative; border: 0; border-radius: 18px; background: linear-gradient(180deg, #ffffff06, #ffffff02 55%, #ffffff00); transition: background .35s; }
/* The edge: lit along the top, fading out down both sides, so the card never closes. */
.jdi-home .home-faq .faq-list .faq-item::before { content: ''; position: absolute; inset: 0; width: auto; padding: 1px; border-radius: inherit; opacity: 1; transform: none; pointer-events: none;
  background: linear-gradient(180deg, #ffffff24 0%, #ffffff12 38%, #ffffff00 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: background .35s; }
/* A thread of lime light across the top of the open card. */
.jdi-home .home-faq .faq-list .faq-item::after { content: ''; position: absolute; left: 14%; right: 14%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #dcff9e, transparent); box-shadow: 0 0 12px #cbf87966; opacity: 0; transition: opacity .35s; pointer-events: none; }
.jdi-home .home-faq .faq-list .faq-item:hover { background: linear-gradient(180deg, #ffffff09, #ffffff02 55%, #ffffff00); }
.jdi-home .home-faq .faq-list .faq-item.open { background: linear-gradient(180deg, #cbf8790a, #ffffff03 50%, #ffffff00); }
.jdi-home .home-faq .faq-list .faq-item.open::before { background: linear-gradient(180deg, #cbf87955 0%, #cbf8791c 40%, #cbf87900 92%); }
.jdi-home .home-faq .faq-list .faq-item.open::after { opacity: .7; }

.jdi-home .home-faq .faq-list .faq-q,
.jdi-home .home-faq .faq-list .faq-item.open .faq-q { min-height: 0; padding: 26px 28px; gap: 24px; font: 500 clamp(16px, 1.2vw, 18.5px)/1.4 'Space Grotesk', sans-serif; letter-spacing: -.2px; color: #eef2e8; }
.jdi-home .home-faq .faq-list .faq-q:hover { color: #fff; }
.jdi-home .home-faq .faq-list .faq-icon { width: 30px; height: 30px; min-width: 30px; border: 1.5px solid #cbf879b3; border-radius: 50%; background: transparent; box-shadow: none; transition: border-color .25s, background .25s, transform .35s; }
.jdi-home .home-faq .faq-list .faq-q:hover .faq-icon { border-color: #cbf879; background: #cbf87912; }
.jdi-home .home-faq .faq-list .faq-icon::before { inset: auto 8px; top: calc(50% - .75px); height: 1.5px; background: #cbf879; }
.jdi-home .home-faq .faq-list .faq-icon::after { inset: 8px auto; left: calc(50% - .75px); width: 1.5px; background: #cbf879; }
.jdi-home .home-faq .faq-list .faq-a p,
.jdi-home .home-faq .faq-list .faq-item.open .faq-a p { margin: 0; padding: 0 28px 26px; max-width: 62ch; font: 400 14.5px/1.8 Inter, sans-serif; color: #b9bec4; }

/* ---- the line of light ---- */
.jdi-home .home-faq .faq-sweep { position: absolute; pointer-events: none; overflow: visible; }
.jdi-home .home-faq .faq-sweep path { fill: none; stroke: url(#faq-ink); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.jdi-home .home-faq .faq-sweep .faq-sweep-glow { stroke-width: 6; opacity: .45; }
.jdi-home .home-faq .faq-sweep-wide { left: 0; bottom: 4%; width: 58%; height: 46%; opacity: .72; }
.jdi-home .home-faq .faq-sweep-phone { display: none; }
.jdi-home .home-faq .faq-sweep-phone path { stroke: url(#faq-ink-phone); }

@media (max-width: 760px) {
  /* One screen on a phone: the "?" sits left of the title, as on desktop, and
     the line of light is left out so nothing crosses the cards. */
  .jdi-home:not(.jdi-demos) .home-faq.home-faq { padding-block: 76px 18px; }
  .jdi-home:not(.jdi-demos) .home-faq .faq-layout.faq-layout { gap: 18px; }
  .jdi-home .home-faq .faq-intro { padding: 0 0 0 96px; text-align: left; }
  .jdi-home .home-faq .faq-glyph { left: 18px; top: calc(clamp(26px, 7.2vw, 30px) * 1.08 - 30px); width: 60px; height: 60px; }
  .jdi-home .home-faq .faq-glyph::before { width: 74px; height: 74px; }
  .jdi-home .home-faq .faq-glyph::after { width: 88px; height: 88px; }
  .jdi-home:not(.jdi-demos) .home-faq .faq-intro h2 { padding-left: 0; margin: 0; max-width: none; font-size: clamp(26px, 7.2vw, 30px); line-height: 1.08; }
  .jdi-home:not(.jdi-demos) .home-faq .faq-layout > .faq-intro > p { margin: 10px 0 0; max-width: none; font-size: 14px; line-height: 1.5; }
  .jdi-home .home-faq .faq-sweep-wide { display: none; }
  .jdi-home .home-faq .faq-sweep-phone { display: none; }
  .jdi-home .home-faq .faq-list { gap: 8px; margin-inline: -16px; }
  .jdi-home .home-faq .faq-list .faq-item { border-radius: 16px; }
  .jdi-home:not(.jdi-demos) .home-faq .faq-list .faq-q,
  .jdi-home:not(.jdi-demos) .home-faq .faq-list .faq-item.open .faq-q { min-height: 0; padding: 13px 10px 13px 16px; gap: 10px; font-size: 14px; letter-spacing: -.3px; line-height: 1.4; }
  .jdi-home .home-faq .faq-list .faq-icon { width: 24px; height: 24px; min-width: 24px; }
  .jdi-home .home-faq .faq-list .faq-icon::before { inset: auto 7px; }
  .jdi-home .home-faq .faq-list .faq-icon::after { inset: 7px auto; }
  .jdi-home:not(.jdi-demos) .home-faq .faq-list .faq-a p,
  .jdi-home:not(.jdi-demos) .home-faq .faq-list .faq-item.open .faq-a p { padding: 0 16px 20px; font-size: 14px; line-height: 1.75; }
}
@media (max-width: 370px) {
  .jdi-home:not(.jdi-demos) .home-faq .faq-list .faq-q,
  .jdi-home:not(.jdi-demos) .home-faq .faq-list .faq-item.open .faq-q { font-size: 13px; padding-left: 14px; }
}

