/* ============================================================
   inqelo marketing site — FAQ page
   @docs [[docs/Systems/Marketing Website/Patterns/inqelo Marketing Site Design Standard]]
   Page-specific rules only; tokens, buttons, header/nav and footer
   live in the shared static/site.css (loaded first by the base
   template). The page is composed from the site's existing
   sections: the contact page's dark hero and closing band. The
   questions are fold-outs grouped by topic, under a row of topic
   chips on a narrow screen and beside a topic column on a wide one.
   Mobile-first.
   ============================================================ */

.accent-light { color: var(--green-300); }

[data-reveal] { transition: opacity .62s var(--ease-out), transform .62s var(--ease-out); }
[data-reveal].is-hidden { opacity: 0; transform: translateY(20px); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal].is-hidden { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---- Illustrations -----------------------------------------
   A cut-out scene with a transparent background. It sits above
   the backdrop circle and carries a soft shadow, so it belongs
   to the page. */
.hero__art img, .cta__art img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}
.hero__art img { filter: drop-shadow(0 24px 26px rgba(0, 0, 0, .4)); }
.cta__art img { filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .35)); }

/* ---- Hero (dark green) -------------------------------------- */
.hero { background: linear-gradient(180deg, #123f20, #0e3317); position: relative; overflow: hidden; }
.hero .kicker { color: var(--green-300); }
.hero__tri-a { right: 40px; top: 20px; border-left: 12px solid transparent; border-right: 12px solid transparent; border-bottom: 20px solid var(--green-400); z-index: 0; }
.hero__tri-b { right: 24px; bottom: 46px; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 19px solid var(--amber-500); transform: rotate(20deg); z-index: 0; }
.hero__dots { right: 16px; top: 8px; width: 66px; height: 84px; background-image: radial-gradient(rgba(255,255,255,.4) 1.6px, transparent 1.7px); background-size: 16px 16px; opacity: .3; z-index: 0; }
.hero__blob { left: -70px; bottom: -70px; width: 210px; height: 210px; border-radius: 50%; background: rgba(255,255,255,.05); z-index: 0; }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 36px;
  padding-bottom: 32px;
  align-items: center;
}
.hero__copy { order: 1; position: relative; z-index: 1; }
.hero__title { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: #fff; margin: 12px 0 0; }
.hero__lede { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.82); margin: 16px 0 0; max-width: 460px; }
.hero__art { order: 2; position: relative; z-index: 1; max-width: 860px; width: 100%; margin: 20px auto 0; }
.hero__art-circle { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.06); z-index: 0; }

/* ---- The questions (paper): the topics, then fold-out
   questions by topic ----------------------------------------- */
.faq { background: #fbf9f7; border-top: 1px solid #ece8df; --rule: #e4dfd3; }
.faq__inner { display: grid; grid-template-columns: 1fr; gap: 30px; padding-top: 32px; padding-bottom: 52px; }
/* The topic list: each topic links to its group and shows how many questions it
   holds. On a narrow screen the topics are chips that wrap in a row. */
.faq__index { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.faq__index a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-900);
}
.faq__index a:hover { border-color: var(--green-200); color: var(--green-700); }
.faq__index span {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--green-50);
  color: var(--green-700);
  font-size: 12.5px;
  text-align: center;
}
.faq__group { scroll-margin-top: 90px; }
.faq__group + .faq__group { margin-top: 34px; }
.faq__group h2 {
  font-size: clamp(23px, 5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.026em;
  line-height: 1.14;
  color: var(--ink-900);
}
/* The questions of a topic are plain rows under hairlines, as the site's other
   lists are. A row is a fold-out: its question is the handle. */
.faq__items { margin-top: 14px; border-bottom: 1px solid var(--rule); }
.faq__item { border-top: 1px solid var(--rule); }
/* The question is the fold-out's handle; the mark on its right turns when it opens.
   An open question, and one under the pointer, is green. */
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 4px 17px 0;
}
.faq__item summary:hover h3, .faq__item[open] h3 { color: var(--green-700); }
.faq__item summary:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 4px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--green-700);
  border-bottom: 2px solid var(--green-700);
  transform: rotate(45deg);
  transition: transform .2s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item h3 { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--text-strong); }
.faq__item p { font-size: 16.5px; line-height: 1.6; color: var(--ink-700); padding: 0 40px 22px 0; max-width: 760px; }
/* The link at the end of a topic, to the page that holds its detail. */
.faq__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15.5px; font-weight: 700; color: var(--green-700); }
.faq__link svg { flex: none; transition: transform .18s ease; }
.faq__link:hover { color: var(--green-500); }
.faq__link:hover svg { transform: translateX(4px); }
.faq__more { font-size: 16px; line-height: 1.6; color: var(--ink-700); margin-top: 40px; }
.faq__more a { color: var(--green-700); font-weight: 600; }
.faq__more a:hover { color: var(--green-500); }

/* ---- Closing CTA ------------------------------------------- */
.cta { background: var(--green-800); position: relative; overflow: hidden; }
.cta__dots { right: 40px; top: 30px; width: 84px; height: 48px; background-image: radial-gradient(rgba(255,255,255,.6) 1.4px, transparent 1.5px); background-size: 15px 15px; opacity: .18; z-index: 0; }
.cta__tri-a { left: 44%; top: 34px; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 18px solid var(--green-400); opacity: .5; z-index: 0; }
.cta__tri-b { left: 20px; bottom: 40px; border-left: 13px solid transparent; border-right: 13px solid transparent; border-bottom: 22px solid var(--amber-500); opacity: .85; z-index: 0; }
.cta__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 8px; padding-top: 44px; padding-bottom: 44px; align-items: center; }
.cta__copy { position: relative; z-index: 1; order: 1; }
.cta__title { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; color: #fff; margin: 0; }
.cta__actions { display: flex; gap: 13px; margin-top: 26px; flex-wrap: wrap; }
.cta__trust { display: inline-flex; align-items: flex-start; gap: 9px; margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.45; }
.cta__trust svg { flex: none; margin-top: 1px; color: var(--green-300); }
.cta__art { order: 2; position: relative; z-index: 1; width: 100%; max-width: 295px; margin: 16px auto 0; }
.cta__art-circle { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 108%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.06); z-index: 0; }


/* ---- Desktop ------------------------------------------------ */
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: .8fr 1.2fr; gap: 20px; min-height: var(--hero-screen); padding-top: 28px; padding-bottom: 0; }
  .hero__title { font-size: 48px; line-height: 1.04; margin: 16px 0 0; }
  .hero__lede { font-size: 16.5px; max-width: 440px; margin: 20px 0 0; }
  /* The picture stands on the hero's bottom edge, sized and placed by its
     drawing: see the hero picture rule in [[website/static/site.css]]. */
  .hero__art { justify-self: start; align-self: end; width: var(--hero-art); max-width: none; margin: 0 0 0 var(--hero-art-left); }
  .hero__dots { right: 320px; top: 60px; width: 84px; height: 104px; opacity: .35; }
  .hero__tri-a { right: 150px; top: 40px; }

  /* The topics are a narrow column that stays in view while the questions scroll
     past it. Each topic is a plain row under a hairline, with its count at the right. */
  .faq__inner { grid-template-columns: 264px minmax(0, 1fr); gap: 72px; padding-top: 64px; padding-bottom: 80px; align-items: start; }
  .faq__side { position: sticky; top: 104px; }
  .faq__index { display: block; margin-top: 16px; border-bottom: 1px solid var(--rule); }
  .faq__index a { display: flex; padding: 12px 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: none; font-size: 15.5px; }
  .faq__item h3 { font-size: 19px; }
  .faq__item summary { padding: 19px 4px 19px 0; }

  .cta__grid { grid-template-columns: 1.15fr .85fr; gap: 40px; padding-top: 44px; padding-bottom: 24px; }
  .cta__title { font-size: 40px; line-height: 1.06; }
  .cta__art { max-width: 426px; margin: 0 auto; align-self: end; }
}
