:root{
  --faq-bg:#f6f7f9;
  --faq-surface:#ffffff;
  --faq-surface-2:#fbfbfc;
  --faq-text:#111827;
  --faq-muted:#667085;
  --faq-line:#e4e7ec;
  --faq-brand:#c99a35;
  --faq-brand-soft:rgba(201,154,53,.12);
  --faq-shadow:0 16px 48px rgba(15,23,42,.06);
  color-scheme:light;
}

html[data-theme="dark"]{
  --faq-bg:#090e16;
  --faq-surface:#111827;
  --faq-surface-2:#0d131c;
  --faq-text:#f8fafc;
  --faq-muted:#98a2b3;
  --faq-line:#273244;
  --faq-brand:#d6ad51;
  --faq-brand-soft:rgba(214,173,81,.12);
  --faq-shadow:0 18px 55px rgba(0,0,0,.22);
  color-scheme:dark;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  scroll-padding-top:100px;
}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 90% 0%,rgba(201,154,53,.12),transparent 29%),
    var(--faq-bg);
  color:var(--faq-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

html[data-theme="dark"] body{
  background:
    radial-gradient(circle at 90% 0%,rgba(214,173,81,.11),transparent 29%),
    linear-gradient(180deg,#090e16,#0b111b);
}

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

button{
  font:inherit;
}

.faq-shell{
  width:min(1040px,calc(100% - 32px));
  margin-inline:auto;
}

/* Header */
.faq-header{
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid var(--faq-line);
  background:color-mix(in srgb,var(--faq-surface) 92%,transparent);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.faq-header-inner{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.faq-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:850;
}

.faq-brand img{
  width:44px;
  height:44px;
  object-fit:contain;
  border-radius:50%;
}

.faq-brand span{
  font-size:14px;
  white-space:nowrap;
}

.faq-header-actions{
  display:flex;
  align-items:center;
  gap:9px;
}

.faq-home,
.faq-theme-toggle{
  min-height:42px;
  border:1px solid var(--faq-line);
  background:var(--faq-surface);
  color:var(--faq-text);
  border-radius:12px;
}

.faq-home{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  font-size:12px;
  font-weight:800;
  transition:.18s ease;
}

.faq-home:hover{
  border-color:var(--faq-brand);
  transform:translateY(-1px);
}

.faq-theme-toggle{
  width:42px;
  min-width:42px;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:.18s ease;
}

.faq-theme-toggle:hover{
  border-color:var(--faq-brand);
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(15,23,42,.08);
}

.faq-theme-icon{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.faq-theme-icon-sun{display:none}
html[data-theme="dark"] .faq-theme-icon-moon{display:none}
html[data-theme="dark"] .faq-theme-icon-sun{display:block}

/* Main */
.faq-main{
  padding:58px 0 88px;
}

.faq-hero{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:34px;
  align-items:center;
  margin-bottom:28px;
  padding:44px 46px;
  border:1px solid var(--faq-line);
  border-radius:30px;
  background:
    radial-gradient(circle at 92% 12%,var(--faq-brand-soft),transparent 34%),
    var(--faq-surface);
  box-shadow:var(--faq-shadow);
}

.faq-hero-copy{
  position:relative;
  z-index:2;
}

.faq-eyebrow{
  display:inline-flex;
  margin-bottom:12px;
  color:var(--faq-brand);
  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
}

.faq-hero h1{
  margin:0;
  max-width:700px;
  font-size:clamp(38px,6vw,68px);
  line-height:.98;
  letter-spacing:-.055em;
}

.faq-hero p{
  max-width:680px;
  margin:20px 0 0;
  color:var(--faq-muted);
  font-size:16px;
  line-height:1.75;
}

.faq-stats{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.faq-stats span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 11px;
  border:1px solid var(--faq-line);
  border-radius:999px;
  background:var(--faq-surface-2);
  color:var(--faq-muted);
  font-size:12px;
}

.faq-stats strong{
  color:var(--faq-text);
}

.faq-hero-mark{
  display:grid;
  place-items:center;
  width:174px;
  height:174px;
  justify-self:end;
  border:1px solid rgba(201,154,53,.28);
  border-radius:50%;
  background:
    radial-gradient(circle,rgba(201,154,53,.20),rgba(201,154,53,.05) 56%,transparent 57%);
}

.faq-hero-mark span{
  color:var(--faq-brand);
  font-size:92px;
  font-weight:900;
  line-height:1;
  transform:translateY(-3px);
}

/* Category chips */
.faq-category-nav{
  display:flex;
  gap:8px;
  overflow:auto;
  padding:4px 0 16px;
  scrollbar-width:none;
}

.faq-category-nav::-webkit-scrollbar{display:none}

.faq-category-nav a{
  flex:0 0 auto;
  padding:10px 14px;
  border:1px solid var(--faq-line);
  border-radius:999px;
  background:var(--faq-surface);
  color:var(--faq-muted);
  font-size:12px;
  font-weight:800;
  transition:.18s ease;
}

.faq-category-nav a:hover{
  color:var(--faq-text);
  border-color:var(--faq-brand);
  transform:translateY(-1px);
}

/* Groups */
.faq-groups{
  display:grid;
  gap:30px;
  margin-top:14px;
}

.faq-group{
  scroll-margin-top:100px;
}

.faq-group-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:12px;
}

.faq-group-heading>div{
  display:flex;
  align-items:center;
  gap:10px;
}

.faq-group-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:27px;
  padding:0 8px;
  border-radius:999px;
  background:var(--faq-text);
  color:var(--faq-surface);
  font-size:10px;
  font-weight:900;
}

html[data-theme="dark"] .faq-group-number{
  background:#f8fafc;
  color:#111827;
}

.faq-group h2{
  margin:0;
  font-size:21px;
  letter-spacing:-.025em;
}

.faq-group-heading small{
  color:var(--faq-muted);
  font-size:11px;
  font-weight:750;
}

.faq-accordion{
  display:grid;
  gap:9px;
}

.faq-item{
  overflow:hidden;
  border:1px solid var(--faq-line);
  border-radius:17px;
  background:var(--faq-surface);
  box-shadow:0 5px 18px rgba(15,23,42,.018);
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.faq-item:hover{
  border-color:color-mix(in srgb,var(--faq-brand) 55%,var(--faq-line));
}

.faq-item[open]{
  border-color:color-mix(in srgb,var(--faq-brand) 52%,var(--faq-line));
  box-shadow:var(--faq-shadow);
}

.faq-item summary{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 19px;
  list-style:none;
  cursor:pointer;
  font-size:14px;
  font-weight:820;
  line-height:1.45;
}

.faq-item summary::-webkit-details-marker{display:none}

.faq-item summary i{
  position:relative;
  flex:0 0 30px;
  width:30px;
  height:30px;
  border:1px solid var(--faq-line);
  border-radius:50%;
  background:var(--faq-surface-2);
}

.faq-item summary i::before,
.faq-item summary i::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:10px;
  height:1.5px;
  border-radius:4px;
  background:var(--faq-brand);
  transform:translate(-50%,-50%);
  transition:.18s ease;
}

.faq-item summary i::after{
  transform:translate(-50%,-50%) rotate(90deg);
}

.faq-item[open] summary i::after{
  transform:translate(-50%,-50%) rotate(0);
  opacity:0;
}

.faq-answer{
  margin:0 19px;
  padding:0 42px 20px 0;
  border-top:1px solid transparent;
  color:var(--faq-muted);
  font-size:13.5px;
  line-height:1.8;
}

.faq-item[open] .faq-answer{
  padding-top:2px;
}

/* Bottom help card */
.faq-help{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:42px;
  padding:30px 32px;
  border:1px solid var(--faq-line);
  border-radius:22px;
  background:
    radial-gradient(circle at 92% 12%,var(--faq-brand-soft),transparent 34%),
    var(--faq-surface);
}

.faq-help h2{
  margin:0;
  font-size:24px;
  letter-spacing:-.035em;
}

.faq-help p{
  margin:9px 0 0;
  color:var(--faq-muted);
  font-size:13px;
  line-height:1.6;
}

.faq-help>a{
  flex:0 0 auto;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:12px;
  background:var(--faq-text);
  color:var(--faq-surface);
  font-size:12px;
  font-weight:900;
}

html[data-theme="dark"] .faq-help>a{
  background:#f8fafc;
  color:#111827;
}

/* Empty */
.faq-empty{
  padding:50px 22px;
  border:1px dashed var(--faq-line);
  border-radius:22px;
  background:var(--faq-surface);
  text-align:center;
}

.faq-empty>span{
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  margin:0 auto 14px;
  border-radius:50%;
  background:var(--faq-brand-soft);
  color:var(--faq-brand);
  font-size:28px;
  font-weight:900;
}

.faq-empty h2{
  margin:0;
  font-size:21px;
}

.faq-empty p{
  margin:8px 0 0;
  color:var(--faq-muted);
}

/* Footer */
.faq-footer{
  border-top:1px solid var(--faq-line);
  background:var(--faq-surface);
}

.faq-footer-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:var(--faq-muted);
  font-size:12px;
}

.faq-footer-inner>div{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.faq-footer a{
  font-weight:750;
  transition:color .18s ease;
}

.faq-footer a:hover{
  color:var(--faq-text);
}

/* Dark tuning */
html[data-theme="dark"] .faq-header{
  background:rgba(17,24,39,.90);
}

html[data-theme="dark"] .faq-item{
  box-shadow:none;
}

html[data-theme="dark"] .faq-item[open]{
  box-shadow:0 18px 55px rgba(0,0,0,.18);
}

/* Responsive */
@media(max-width:760px){
  .faq-main{
    padding:34px 0 64px;
  }

  .faq-hero{
    grid-template-columns:1fr;
    padding:31px 27px;
    border-radius:24px;
  }

  .faq-hero-mark{
    position:absolute;
    right:-34px;
    bottom:-50px;
    width:150px;
    height:150px;
    opacity:.42;
  }

  .faq-hero-mark span{
    font-size:78px;
  }

  .faq-hero-copy{
    padding-right:32px;
  }

  .faq-hero h1{
    font-size:clamp(38px,11vw,54px);
  }
}

@media(max-width:560px){
  .faq-shell{
    width:min(100% - 24px,1040px);
  }

  .faq-header-inner{
    min-height:66px;
  }

  .faq-brand img{
    width:40px;
    height:40px;
  }

  .faq-brand span{
    max-width:92px;
    font-size:11px;
    line-height:1.08;
    white-space:normal;
  }

  .faq-home{
    width:42px;
    padding:0;
  }

  .faq-home span{
    display:none;
  }

  .faq-hero{
    padding:27px 21px;
  }

  .faq-hero-copy{
    padding-right:16px;
  }

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

  .faq-stats{
    gap:7px;
  }

  .faq-stats span{
    font-size:11px;
  }

  .faq-group-heading{
    align-items:center;
  }

  .faq-group h2{
    font-size:18px;
  }

  .faq-item summary{
    padding:16px 15px;
    font-size:13.5px;
  }

  .faq-answer{
    margin:0 15px;
    padding:0 34px 17px 0;
    font-size:13px;
  }

  .faq-help{
    flex-direction:column;
    align-items:flex-start;
    padding:24px 20px;
  }

  .faq-help>a{
    width:100%;
  }

  .faq-footer-inner{
    min-height:auto;
    padding:20px 0;
    flex-direction:column;
    justify-content:center;
    text-align:center;
  }

  .faq-footer-inner>div{
    justify-content:center;
  }
}
