/* ---- block ---- */

  body { padding-bottom: 80px; }

  .topnav {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 11, 24, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 30;
  }
  .topnav-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
  }
  .topnav-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-dim);
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 100px;
    transition: background .2s, color .2s;
  }
  .topnav-back:hover { background: rgba(255,255,255,.04); color: var(--text); }
  .topnav-back svg { width: 14px; height: 14px; }

  .faq-hero {
    text-align: center;
    padding: 140px 0 40px;
  }
  .faq-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin: 18px 0;
  }
  .faq-hero p { font-size: 18px; color: var(--text-dim); max-width: 600px; margin: 0 auto; }

  /* Dynamic question count pill — derived from $cats in the PHP template. */
  .faq-count { margin-top: 22px; }
  .faq-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(44,193,255,.08);
    border: 1px solid rgba(127,217,255,.25);
    color: var(--text-dim);
    font-size: 13px;
    letter-spacing: .2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px -10px rgba(44,193,255,.4);
  }
  .faq-count-pill svg { color: var(--tl-cyan); opacity: .9; }
  .faq-count-pill strong {
    color: var(--tl-cyan);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: .5px;
  }
  .faq-count-pill .sep { color: var(--text-mute); margin: 0 2px; }

  /* Side-nav + content layout */
  .faq-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
  }
  @media (max-width: 800px) {
    .faq-layout { grid-template-columns: 1fr; }
    .faq-nav { display: none; }
  }

  .faq-nav {
    position: sticky;
    top: 90px;
    padding: 22px;
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.005)),
      rgba(10,16,36,.6);
    border: 1px solid rgba(127,217,255,.14);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 18px 40px -20px rgba(0,0,0,.5);
  }
  .faq-nav .heading {
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 0 12px;
  }
  .faq-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 2px 0;
    border-radius: 10px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition:
      background .3s ease,
      color .3s ease,
      padding-right .3s cubic-bezier(.2,.7,.3,1.2);
  }
  /* Indicator bar — invisible by default, animates in for active. */
  .faq-nav a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    border-radius: 3px;
    background: var(--tl-cyan);
    box-shadow: 0 0 10px rgba(44,193,255,.8);
    transition:
      transform .4s cubic-bezier(.2,.7,.3,1.4),
      height .35s ease;
  }
  .faq-nav a:hover {
    background: rgba(255,255,255,.04);
    color: var(--text);
  }
  .faq-nav a.active {
    color: var(--tl-cyan);
    background: rgba(44,193,255,.08);
    padding-right: 18px;
  }
  .faq-nav a.active::before {
    transform: translateY(-50%) scaleY(1);
  }

  .faq-section { margin-bottom: 48px; }
  .faq-section .cat-title {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .faq-section .cat-title .ic {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(44,193,255,.1);
    border: 1px solid var(--border-cyan);
    color: var(--tl-cyan);
    display: flex; align-items: center; justify-content: center;
  }
  .faq-section .cat-title .ic svg { width: 18px; height: 18px; }
  .faq-section .cat-title h2 { font-size: 24px; font-weight: 800; }

  .faq-list { display: flex; flex-direction: column; gap: 12px; }
  .faq-item {
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,.025), rgba(255,255,255,.005)), rgba(10,16,36,.55);
    border: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    overflow: hidden;
    position: relative;
    transition:
      border-color .35s ease,
      transform .35s cubic-bezier(.2,.7,.3,1.2),
      box-shadow .4s ease,
      background .35s ease;
  }
  .faq-item:hover {
    border-color: rgba(127,217,255,.28);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -22px rgba(44,193,255,.4);
  }
  .faq-item.open {
    border-color: rgba(127,217,255,.4);
    background:
      linear-gradient(135deg, rgba(44,193,255,.06), rgba(255,255,255,.01)),
      rgba(10,16,36,.65);
    box-shadow: 0 24px 50px -22px rgba(44,193,255,.5);
  }
  .faq-q {
    width: 100%;
    background: transparent; border: none;
    color: var(--text);
    padding: 22px 24px;
    text-align: right;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px;
    transition: color .25s ease;
    cursor: pointer;
  }
  .faq-q:hover { color: var(--tl-cyan); }
  .faq-toggle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(44,193,255,.14), rgba(44,193,255,.04));
    border: 1px solid rgba(127,217,255,.3);
    color: var(--tl-cyan);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition:
      transform .4s cubic-bezier(.2,.7,.3,1.4),
      background .35s ease,
      box-shadow .35s ease;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
  }
  .faq-item:hover .faq-toggle {
    background: linear-gradient(135deg, rgba(44,193,255,.22), rgba(44,193,255,.08));
    box-shadow: 0 0 14px rgba(44,193,255,.3);
  }
  .faq-item.open .faq-toggle {
    transform: rotate(135deg);
    background: linear-gradient(135deg, var(--tl-cyan), #0d7cd9);
    color: #04102b;
    box-shadow: 0 0 20px rgba(44,193,255,.5);
  }
  /* Smooth expand using grid-template-rows trick — no max-height guessing. */
  .faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .5s cubic-bezier(.2,.7,.3,1);
  }
  .faq-item.open .faq-a { grid-template-rows: 1fr; }
  .faq-a > .faq-a-inner {
    overflow: hidden;
    min-height: 0;
  }
  .faq-a-inner {
    padding: 0 24px 24px;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .4s ease .1s, transform .4s ease .1s;
  }
  .faq-item.open .faq-a-inner {
    opacity: 1;
    transform: translateY(0);
  }
  .faq-a-inner b { color: var(--text); }
  .faq-a-inner a { color: var(--tl-cyan); text-decoration: underline; text-underline-offset: 2px; }
  .faq-a-inner ul {
    margin: 12px 0;
    padding-right: 22px;
    color: var(--text-dim);
  }
  .faq-a-inner li { margin: 4px 0; }

  /* CTA section */
  .faq-cta {
    margin-top: 80px;
    padding: 56px 48px;
    border-radius: var(--radius-l);
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(20px);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .faq-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(44,193,255,.15), transparent 65%);
    pointer-events: none;
  }
  .faq-cta h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    line-height: 1.1; letter-spacing: -1px;
    margin-bottom: 14px;
  }
  .faq-cta p { color: var(--text-dim); font-size: 17px; margin-bottom: 28px; }
  .faq-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
  .faq-cta .price-mini {
    display: inline-flex; flex-direction: column;
    margin-bottom: 18px;
  }
  .faq-cta .price-mini .v {
    font-size: 48px;
    font-weight: 900;
    background: var(--grad-text);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    direction: ltr;
    letter-spacing: -2px;
  }
  .faq-cta .price-mini .v .currency { font-size: 22px; opacity: .7; }
  .faq-cta .price-mini .v small {
    color: var(--text-mute); text-decoration: line-through; font-size: 18px; margin-left: 12px; font-weight: 600;
  }

  .ask-bar {
    margin-top: 60px;
    padding: 28px;
    border-radius: var(--radius-m);
    border: 1px dashed var(--border-strong);
    text-align: center;
  }
  .ask-bar h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
  .ask-bar p { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }

  /* .buy-cta gets the shared mega-button treatment from page-landing.css.
     The FAQ page loads page-landing.css too via the layout's design.css and
     page-faq.css, but the mega-button rules live in landing's stylesheet —
     the FAQ-page CTA needs the basic flex/font-weight shell only. */
  .buy-cta {
    display: inline-flex; align-items: center; gap: 10px;
    border-radius: 100px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
  }