/* FAQ section (home page, every language). Ported 1:1 from pages/creator-tools-translator-faq.html
   (the .faq block: aside + accordion list + closing CTA). Layout/spacing/colors are kept as in
   the source; its own font stack is dropped so text inherits this site's fonts (CT Oddval/CT
   Manrope) instead of loading Space Grotesk/a second Manrope. Names that already exist on this
   page with other values (.wrap, .tlink — both used by the reviews section) are renamed to
   .faq-wrap / .faq-tlink; the source's own color tokens (--ink, --line, --soft, etc. collide
   with global.css) are scoped under --faq-* on .faq instead of :root, same as reviews' --rv-*. */
.faq {
  position: relative;
  overflow: clip;
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--faq-mist);
  color: var(--faq-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  --faq-ink: #0E1116;
  --faq-ink-2: #262B31;
  --faq-body: #2B3137;
  --faq-soft: #3F464E;
  --faq-paper: #fff;
  --faq-mist: #F3F5F6;
  --faq-line: #E4E8EB;
  --faq-line-2: #D7DCE0;
  --faq-teal: #04BACB;
  --faq-teal-d: #45D8E4;
  --faq-teal-ink: #0A5560;
  --faq-teal-t: #0A4A54;
  --faq-tint: #E2F4F6;
  --faq-tint-2: #EAF7F8;
  --faq-night-g: linear-gradient(135deg, #14263B 0%, #23203A 50%, #3A1430 100%);
  --faq-ease: cubic-bezier(.16, 1, .3, 1);
}
.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 8% 0%, rgba(4, 186, 203, .12), transparent 60%),
              radial-gradient(55% 45% at 100% 100%, rgba(123, 80, 160, .10), transparent 60%);
}
.faq::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 620px;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(rgba(14, 17, 22, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
}
.faq-wrap {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 36px);
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

/* ---- left ---- */
/* Sticks below the page's section nav (56px, fixed at the top on scroll) with the same 40px gap. */
.faq-aside {
  position: sticky;
  top: 96px;
}
.faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--faq-teal-t);
}
.faq-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.faq-h {
  margin: 0;
  font-weight: 700;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--faq-ink);
}
.faq-h em {
  font-style: normal;
  background: linear-gradient(92deg, #04AEC0, #2FB6C6 40%, #7B50A0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.faq-sub {
  margin: 22px 0 0;
  font-size: 17px;
  color: var(--faq-ink-2);
  max-width: 34ch;
}
.faq-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 34px 0 0;
  padding-left: 2px;
}
.faq-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--faq-soft);
  transition: color .25s;
}
.faq-nav a::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--faq-line-2);
  transition: .3s var(--faq-ease);
}
.faq-nav a:hover {
  color: var(--faq-ink-2);
}
.faq-nav a.on {
  color: var(--faq-teal-t);
}
.faq-nav a.on::before {
  width: 30px;
  background: var(--faq-teal);
}

/* ---- right list ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 90px;
}
.faq-grp {
  margin: 22px 2px 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faq-teal-t);
  scroll-margin-top: 90px;
}
.faq-grp:first-child {
  margin-top: 0;
}
.qa {
  position: relative;
  background: var(--faq-paper);
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--faq-line), 0 16px 34px -28px rgba(20, 38, 59, .34);
  transition: box-shadow .35s var(--faq-ease), transform .35s var(--faq-ease);
}

.qa:hover {
  box-shadow: 0 0 0 1px var(--faq-line-2), 0 26px 50px -30px rgba(20, 38, 59, .4);
  transform: translateY(-2px);
}
.qa.open {
  box-shadow: 0 0 0 1.5px rgba(4, 186, 203, .5), 0 30px 60px -30px rgba(10, 117, 132, .4);
}
.qa.open::before {
  transform: scaleY(1);
  opacity: 1;
}
.qa-q {
  all: unset;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  min-height: 76px;
  padding: 20px clamp(20px, 3vw, 30px);
  cursor: pointer;
  border-radius: 20px;
}
.qa-q:focus-visible {
  outline: 3px solid var(--faq-teal-ink);
  outline-offset: 3px;
}
.qa-t {
  flex: 1;
  font-weight: 700;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--faq-ink);
}
.qa-ic {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #000;
  transition: background .35s var(--faq-ease), box-shadow .35s, transform .45s var(--faq-ease);
}
.qa-ic::before,
.qa-ic::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: #000;
  transition: background .35s var(--faq-ease);
}
.qa-ic::before {
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
}
.qa-ic::after {
  width: 2px;
  height: 18px;
  margin: -9px 0 0 -1px;
}
.qa-chev {
  display: none;
}
.qa:hover .qa-ic {
  transform: scale(1.04);
}
.qa.open .qa-ic {
  background: #000;
  transform: rotate(45deg);
}
.qa.open .qa-ic::before,
.qa.open .qa-ic::after {
  background: #fff;
}
/* smooth height via grid-rows */
.qa-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--faq-ease);
}
.qa.open .qa-a {
  grid-template-rows: 1fr;
}
.qa-a-in {
  overflow: hidden;
  min-height: 0;
}
.qa-a-in p {
  margin: 0;
  padding: 0 clamp(20px, 3vw, 30px) 26px clamp(20px, 3vw, 30px);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--faq-body);
  max-width: 68ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s var(--faq-ease) .06s, transform .45s var(--faq-ease) .06s;
}
.qa.open .qa-a-in p {
  opacity: 1;
  transform: none;
}
.qa-a-in code {
  font-size: .9em;
  font-weight: 600;
  background: var(--faq-tint);
  color: var(--faq-teal-t);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .faq-aside {
    position: static;
  }
  .faq-nav {
    display: none;
  }
  .faq-sub {
    max-width: none;
  }
}
@media (max-width: 560px) {
  .faq {
    font-size: 16px;
  }
  .qa-q {
    min-height: 68px;
    gap: 14px;
    padding: 16px 18px;
  }
  .qa-ic {
    width: 42px;
    height: 42px;
  }
  .qa-a-in p {
    padding: 0 18px 22px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qa-a {
    transition: none;
  }
  .qa-a-in p {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .qa-ic, .qa-chev, .qa {
    transition: none;
  }
}
