/* ==========================================================================
   FortAccounts homepage (front page only). Everything is scoped to .fah
   (page content) or body.home (header/footer tweaks) so no other page changes.
   ========================================================================== */
.fah {
  --bg: #070b14;
  --surface: #0d1424;
  --surface-2: #111a2e;
  --line: rgba(148, 170, 214, .16);
  --line-strong: rgba(148, 170, 214, .28);
  --text: #fff;
  --muted: #9aa8c7;
  --blue: #2d7ff9;
  --blue-hi: #3b8bff;
  --blue-soft: #7fb2ff;
  --green: #22c55e;
  --star: #ffc933;
  --radius: 14px;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}
.fah *, .fah *::before, .fah *::after { box-sizing: border-box; }
:where(.fah) a { color: inherit; text-decoration: none; }
:where(.fah) :is(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; }
:where(.fah) :is(ul, ol) { list-style: none; }
:where(.fah) img { max-width: 100%; height: auto; display: block; }
.fah-ico { width: 18px; height: 18px; flex: none; }
.fah-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .fah-wrap { padding: 0 40px; } }
:where(.fah) :focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons ---------- */
.fah-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px/1 inherit; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, transform .18s;
}
.fah-btn--primary { background: #1a63d6; color: #fff !important; }
.fah-btn--primary:hover { background: #2370e6; }
.fah-btn--ghost { background: rgba(255,255,255,.05); border-color: var(--line-strong); color: #fff; }
.fah-btn--ghost:hover { background: rgba(255,255,255,.1); }
.fah-btn--outline { background: transparent; border-color: var(--line-strong); color: var(--blue-soft); }
.fah-btn--outline:hover { background: rgba(45,127,249,.12); border-color: var(--blue); }
.fah-btn--lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
.fah-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* ---------- sections ---------- */
.fah-section { padding: 28px 0 20px; scroll-margin-top: 110px; }
.fah-section--tight { padding: 24px 0; }
.fah-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.fah-head-end { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fah-h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.fah-lead { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.fah-empty { color: var(--muted); padding: 24px 0; }
.fah-empty a { color: var(--blue-soft); text-decoration: underline; }
.fah-pill { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; }
.fah-pill strong { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.fah-hero {
  position: relative; overflow: hidden;
  padding: 88px 0 20px;
  background-color: #0a0f1a;
  background-image:
    radial-gradient(60% 60% at 70% 30%, rgba(45,127,249,.25) 0%, rgba(45,127,249,0) 60%),
    url('../images/bg.webp');
  background-size: auto, cover;
  background-position: center, center top;
  background-repeat: no-repeat;
}
.fah-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 24px; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; }
.fah-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.fah-hero-title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.fah-hero-line { display: block; }
@media (min-width: 900px) { .fah-hero-line, .fah-grad { white-space: nowrap; } }
.fah-grad {
  display: block;
  background: linear-gradient(90deg, #5aa2ff, #2d7ff9 60%, #6fb0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.fah-hero-sub { margin-top: 14px; max-width: 46ch; font-size: 16px; line-height: 1.55; color: #c3cde6; }
.fah-hero-sub a { color: #fff; font-weight: 600; text-decoration: none; transition: color .15s; }
.fah-hero-sub a:hover, .fah-hero-sub a:focus-visible { color: var(--blue-soft); text-decoration: underline; text-underline-offset: 3px; }
.fah-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.fah-hero-ctas .fah-btn--primary { box-shadow: 0 10px 30px -8px rgba(45,127,249,.6); }
.fah-hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: #e4eaf8; }
.fah-hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.fah-hero-trust .fah-ico { color: var(--blue-soft); width: 17px; height: 17px; }
.fah-hero-trust a:hover { text-decoration: underline; }
.fah-hero-art { position: relative; align-self: stretch; min-height: 450px; }
.fah-hero-art::before {
  content: ""; position: absolute; inset: 0 -12% -8% -12%;
  background: radial-gradient(closest-side, rgba(45,127,249,.38), rgba(45,127,249,.12) 55%, transparent 100%);
}
.fah-hero-art img { position: absolute; left: 50%; transform: translateX(-42%); bottom: 0; width: auto; height: 100%; max-width: none; object-fit: contain; }

/* ---------- product cards ---------- */
.fah-grid-products { display: grid; gap: 14px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fah-pc {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.fah-pc:hover { border-color: rgba(45,127,249,.6); transform: translateY(-2px); }
.fah-pc-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #0a1020; overflow: hidden; }
.fah-pc-img { width: 100%; height: 100%; object-fit: cover; }
.fah-pc-tag {
  position: absolute; top: 8px; right: 8px; padding: 3px 8px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(45,127,249,.92);
}
.fah-pc-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 14px; }
.fah-pc-title { font-size: 14px; font-weight: 600; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fah-pc-title a:hover { color: var(--blue-soft); }
.fah-pc-rating { display: flex; align-items: center; gap: 5px; height: 16px; }
.fah-pc-count { font-size: 11px; color: var(--muted); }
.fah-pc-price { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 8px; margin-top: auto; padding-top: 4px; min-height: 34px; }
.fah-pc-now { font-size: 20px; white-space: nowrap; font-weight: 800; letter-spacing: -.01em; }
.fah-pc-was { font-size: 12px; white-space: nowrap; color: var(--muted); text-decoration: line-through; }
.fah-pc-was .amount, .fah-pc-was bdi { text-decoration: inherit; }
.fah-pc-off { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; color: #fff; background: #15803d; border-radius: 6px; padding: 3px 8px; }
.fah-pc-btn { width: 100%; min-height: 40px; font-size: 13px; margin-top: 8px; }
.fah-pc-btn.is-loading { opacity: .7; pointer-events: none; }
.fah-pc-btn.added::after { display: none; }
.fah-pc a.added_to_cart { display: none; }

/* stars */
.fah-stars { position: relative; display: inline-block; line-height: 0; flex: none; }
.fah-stars svg { width: 13px; height: 13px; fill: currentColor; }
.fah-stars-base { display: inline-flex; color: rgba(255,255,255,.18); }
.fah-stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; display: inline-flex; color: var(--star); white-space: nowrap; }
.fah-stars-fill svg { flex: none; }

/* ---------- collections ---------- */
.fah-grid-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fah-col {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  min-height: 150px; border-radius: var(--radius); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.fah-col:hover { border-color: rgba(45,127,249,.6); transform: translateY(-2px); }
.fah-col img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.fah-col:hover img { transform: scale(1.04); }
.fah-col-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,11,20,.15) 0%, rgba(7,11,20,.55) 45%, rgba(7,11,20,.92) 100%); }
.fah-col-text { position: absolute; left: 14px; right: 46px; bottom: 12px; display: block; }
.fah-col-title { display: block; font-size: 16px; font-weight: 700; }
.fah-col-desc { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: #c3cde6; }
.fah-col-go {
  position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid var(--line-strong);
  transition: background-color .2s, transform .2s;
}
.fah-col:hover .fah-col-go { background: var(--blue); transform: translateX(2px); }

/* ---------- how it works ---------- */
.fah-steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; }
.fah-step {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.fah-step-num {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; color: var(--blue-soft); background: rgba(45,127,249,.14); border: 1px solid rgba(45,127,249,.4);
}
.fah-step-ico { flex: none; width: 30px; height: 30px; color: var(--blue); }
.fah-step h3 { font-size: 15px; font-weight: 700; }
.fah-step p { margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.fah-step-arrow { display: grid; place-items: center; color: var(--muted); }

/* ---------- reviews ---------- */
.fah-score { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.fah-score strong { color: #fff; font-size: 14px; }
.fah-score:hover { border-color: var(--line-strong); }
.fah-rev { position: relative; }
.fah-rev-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.fah-rev-track::-webkit-scrollbar { display: none; }
.fah-rc {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0;
}
.fah-rc-text { flex: 1; font-size: 14px; line-height: 1.5; color: #dbe3f5; overflow-wrap: anywhere; }
.fah-rc-foot { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fah-rc-ava { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.fah-rc-meta { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.fah-rc-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; font-weight: 700; }
.fah-vb { font-size: 10px; font-weight: 600; color: #7fb2ff; border: 1px solid rgba(45,127,249,.5); background: rgba(45,127,249,.1); border-radius: 999px; padding: 2px 7px; }
.fah-rc-prod { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fah-rc-prod:hover { color: var(--blue-soft); }
.fah-rev-nav {
  position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; cursor: pointer; background: #0f1830; border: 1px solid var(--line-strong);
}
.fah-rev-nav:hover { background: var(--blue); border-color: var(--blue); }
.fah-rev-nav svg { width: 18px; height: 18px; }
.fah-rev-prev { left: -14px; }
.fah-rev-next { right: -14px; }

/* ---------- discord ---------- */
.fah-dc {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(88,101,242,.22), rgba(45,127,249,.10) 60%, rgba(13,20,36,.9)), var(--surface);
  border: 1px solid var(--line-strong);
}
.fah-dc-logo { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #5865f2; color: #fff; }
.fah-dc-logo svg { width: 28px; height: 28px; }
.fah-dc-text { flex: 1; min-width: 0; }
.fah-dc-text h2 { font-size: 18px; font-weight: 700; }
.fah-dc-text p { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.fah-dc-cta { flex: none; }

/* ---------- faq ---------- */
.fah-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fah-faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fah-faq-item h3 { font-size: inherit; }
.fah-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px 16px;
  background: none; border: 0; color: #fff; font: 600 14.5px/1.35 inherit; text-align: left; cursor: pointer;
}
.fah-faq-q:hover { color: var(--blue-soft); }
.fah-faq-q svg { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.fah-faq-q[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--blue-soft); }
.fah-faq-item.is-open { border-color: rgba(45,127,249,.5); }
.fah-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.fah-faq-a.is-open { grid-template-rows: 1fr; }
.fah-faq-a > div { overflow: hidden; }
.fah-faq-a p { padding: 0 16px 16px; font-size: 13.5px; line-height: 1.6; color: #b8c4de; }

/* ---------- seo text ---------- */
.fah-seo { padding: 36px 0 12px; }
.fah-seo-title { font-size: clamp(20px, 2vw, 24px); font-weight: 700; margin-bottom: 12px; }
.fah-seo-intro { max-width: 900px; margin-bottom: 20px; }
.fah-seo p { font-size: 14px; line-height: 1.75; color: var(--muted); }
.fah-seo h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.fah-seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.fah-seo a { color: #b9cdf2; text-decoration: underline; text-decoration-color: rgba(127,178,255,.4); text-underline-offset: 3px; }
.fah-seo a:hover { color: #fff; text-decoration-color: currentColor; }
@media (max-width: 767px) { .fah-seo-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .fah-grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fah-grid-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fah-col { min-height: 160px; }
  .fah-steps { grid-template-columns: 1fr; }
  .fah-step-arrow { transform: rotate(90deg); height: 18px; }
  .fah-rev-track { grid-auto-columns: calc((100% - 14px) / 2); }
}
@media (max-width: 899px) {
  /* tablet: keep two columns, art fully visible */
  .fah-hero { padding: 84px 0 20px; }
  .fah-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 8px; }
  .fah-hero-title { font-size: clamp(26px, 4.4vw, 36px); }
  .fah-hero-art { min-height: 340px; }
  .fah-hero-art img { transform: translateX(-30%); }
  .fah-hero-sub { font-size: 15px; }
}
@media (max-width: 599px) {
  /* phone: single column, art as a soft backdrop on the right */
  .fah-hero { padding: 84px 0 20px; }
  .fah-hero-grid { grid-template-columns: 1fr; }
  .fah-hero-copy { position: relative; z-index: 1; }
  .fah-hero-title { font-size: clamp(28px, 8vw, 34px); }
  .fah-hero-art { position: absolute; right: -6%; bottom: 0; top: auto; width: 55%; max-width: 260px; min-height: 0; opacity: .3; pointer-events: none; z-index: 0; }
  .fah-hero-art img { position: static; transform: none; height: auto; max-height: 260px; width: 100%; }
  .fah-hero-art::before { display: none; }
}
@media (max-width: 767px) {
  .fah-wrap { padding: 0 16px; }
  .fah-section { padding: 22px 0 14px; scroll-margin-top: 90px; }
  .fah-grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fah-pc-body { padding: 10px; }
  .fah-pc-now { font-size: 18px; }
  .fah-faq { grid-template-columns: 1fr; }
  .fah-dc { flex-wrap: wrap; padding: 16px; }
  .fah-dc-text { flex-basis: calc(100% - 64px); }
  .fah-dc-cta { width: 100%; }
  .fah-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .fah-rev-track { grid-auto-columns: 100%; }
  .fah-rev-nav { display: none; }
  .fah-hero-ctas .fah-btn { flex: 1 1 auto; }
  .fah-hero-ctas .fah-btn--primary { flex-basis: 100%; }
}
@media (max-width: 359px) {
  .fah-grid-products { grid-template-columns: 1fr; }
  .fah-grid-cols { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .fah-grid-cols { gap: 10px; }
  .fah-col { min-height: 128px; }
  .fah-col-desc { display: none; }
  .fah-col-text { right: 44px; }
}
@media (min-width: 1700px) {
  .fah-wrap { max-width: 1320px; }
}
@media (prefers-reduced-motion: reduce) {
  .fah *, .fah *::before, .fah *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Header & footer — front page only
   ========================================================================== */
body.home .sh-container { height: 64px; }
body.home .sh-nav ul { gap: 28px; }
body.home .sh-right { gap: 8px; }
body.home .sh-right .sh-currency,
body.home .sh-right .sh-lang,
body.home .sh-right > a { height: 36px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
body.home .sh-right > a { padding-left: 14px; padding-right: 14px; }
@media (max-width: 767px) {
  body.home .sh-container { height: 56px; }
  body.home .sh-btn-search, body.home .sh-right > a { display: none; }
}

/* footer: calmer on the homepage (unverified trust strip, newsletter and repeated badges removed in footer.php) */
body.home .sf-root { margin-top: 36px; background: #060a14; }
body.home .sf-container { max-width: 1200px; padding: 36px 24px 24px; }
@media (max-width: 767px) { body.home .sf-container { padding-left: 16px; padding-right: 16px; } }

/* header on narrow desktops/tablets: stop the logo and nav from touching */
@media (min-width: 768px) and (max-width: 1023px) {
  body.home .sh-container { padding-left: 16px; padding-right: 16px; gap: 14px; }
  body.home .sh-nav ul { gap: 16px; font-size: 13px; }
  body.home .sh-right { gap: 6px; }
  body.home .sh-right > a { padding-left: 10px; padding-right: 10px; }
  body.home .sh-right .sh-currency, body.home .sh-right .sh-lang { padding-left: 8px; padding-right: 8px; }
}
