/* ============================================================
   Black Berry · Black Friday v2 (fintech direction)
   Deep ink base, hairlines, mono numerals, restrained brand accent.
   ============================================================ */

body.fx-page{
  --fx-bg:      #07090F;
  --fx-surface: #0C1019;
  --fx-raised:  #111624;
  --fx-text:    #E9ECF5;
  --fx-soft:    #9AA2BA;
  --fx-faint:   #5F6780;
  --fx-line:    rgba(233,236,245,0.08);
  --fx-line-2:  rgba(233,236,245,0.14);
  --fx-accent:  #8F96FF;
  --fx-pos:     #6EE7B7;
  --font-mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  background: var(--fx-bg);
  color: var(--fx-text);
}
.fx-page ::selection{ background: var(--indigo); color: #fff; }
.fx-page h1, .fx-page h2, .fx-page h3{ font-family: var(--font-sans); color: var(--fx-text); }

.fx-wrap{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- type ---------- */
.fx-label{
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fx-accent);
}
.fx-h1{
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: balance;
}
.fx-h2{
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 20ch;
  text-wrap: balance;
}
.fx-accent{
  background: linear-gradient(100deg, #A3A9FF 0%, #B98CFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fx-lede{
  font-size: clamp(1.05rem, 1.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--fx-soft);
  max-width: 44ch;
  text-wrap: pretty;
}
.fx-p{ color: var(--fx-soft); line-height: 1.6; max-width: 42ch; text-wrap: pretty; }
.fx-muted{ color: var(--fx-faint); }

/* ---------- buttons ---------- */
.fx-btn{
  background: var(--fx-text);
  color: var(--fx-bg);
  border-radius: 10px;
  padding: 14px 22px;
}
.fx-btn:hover{ transform: translateY(-1px); background: #fff; box-shadow: 0 10px 30px rgba(143,150,255,0.25); }
.fx-btn-sm{ padding: 9px 16px; font-size: 13.5px; }
.fx-btn-line{
  color: var(--fx-text);
  border: 1px solid var(--fx-line-2);
  border-radius: 10px;
  padding: 14px 22px;
}
.fx-btn-line:hover{ border-color: rgba(233,236,245,0.4); transform: translateY(-1px); }
.fx-link{ font-size: 14px; font-weight: 500; color: var(--fx-soft); transition: color .2s; }
.fx-link:hover{ color: var(--fx-text); }
.fx-ctas{ display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- top bar ---------- */
.fx-top{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--fx-line);
  background: rgba(7,9,15,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.fx-top-inner{
  display: flex;
  align-items: center;
  gap: 18px;
  height: 64px;
}
.fx-logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.fx-logo img{ width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.fx-status{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--fx-line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fx-soft);
}
.fx-dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fx-pos);
  box-shadow: 0 0 0 3px rgba(110,231,183,0.18);
}
.fx-top-cta{ margin-left: auto; display: flex; align-items: center; gap: 20px; }

/* ---------- hero ---------- */
.fx-hero{
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
  isolation: isolate;
}
.fx-hero::before{
  content: '';
  position: absolute;
  z-index: -1;
  inset: -20% -10% auto auto;
  width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(71,80,251,0.16), transparent);
}
.fx-hero-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.fx-hero-copy{ display: grid; gap: 28px; justify-items: start; }
.fx-hero-copy .fx-label{ margin-bottom: -10px; }  /* label sits close to the H1 */
.fx-hero-copy .fx-lede{ margin-top: -8px; }      /* lede reads as part of the H1 group */
.fx-hero-copy .fx-countdown{ margin-top: -12px; } /* countdown belongs to the CTAs */

.fx-rate{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 18px 22px;
  border: 1px solid var(--fx-line-2);
  border-radius: 14px;
  background: var(--fx-surface);
}
.fx-rate-col{ display: grid; gap: 2px; }
.fx-rate-k{ font-size: 12px; color: var(--fx-faint); }
.fx-rate-v{
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.fx-rate-v.is-old{ color: var(--fx-faint); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.fx-rate-v.is-new{ color: var(--fx-text); }
.fx-rate-arrow{ width: 20px; height: 20px; color: var(--fx-faint); }
.fx-delta{
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(110,231,183,0.1);
  color: var(--fx-pos);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.fx-countdown{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fx-faint);
}
.fx-countdown b{
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--fx-soft);
  font-variant-numeric: tabular-nums;
}

/* ---------- dashboard panel ---------- */
.fx-panel{
  position: relative;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--fx-raised), var(--fx-surface));
  border: 1px solid var(--fx-line-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 40px 80px rgba(0,0,0,0.45);
}
.fx-panel-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.fx-panel-k{ display: block; font-size: 12.5px; color: var(--fx-faint); margin-bottom: 4px; }
.fx-panel-v{
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.fx-pill{
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(143,150,255,0.12);
  color: var(--fx-accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.fx-chart{
  position: relative;
  height: 180px;
  padding-left: 44px;
  padding-bottom: 26px;
}
.fx-chart svg{ width: 100%; height: 100%; overflow: visible; }
.fx-grid-lines line{ stroke: var(--fx-line); stroke-dasharray: 3 4; }
.fx-band{ fill: rgba(143,150,255,0.06); }
.fx-area{ fill: url(#fxArea); opacity: 0; transition: opacity 1s ease 1.2s; }
.fx-line{
  fill: none;
  stroke: var(--fx-accent);
  stroke-width: 2;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-in-out) .3s;
}
.fx-point{
  fill: var(--fx-bg);
  stroke: var(--fx-accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity .4s ease 1.8s;
}
.is-in .fx-line{ stroke-dashoffset: 0; }
.is-in .fx-area, .is-in .fx-point{ opacity: 1; }
.fx-chart-y{
  position: absolute;
  left: 0; top: 0; bottom: 26px;
  width: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fx-faint);
}
.fx-chart-y span{ position: absolute; left: 0; transform: translateY(-50%); }
.fx-chart-y span:first-child{ top: 23.5%; }
.fx-chart-y span:last-child{ top: 76.5%; }
.fx-chart-x{
  position: absolute;
  left: 44px; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fx-faint);
}
.fx-chart-x span{ text-align: center; }
.fx-chart-x .is-on{ color: var(--fx-accent); }

.fx-tx{
  margin-top: 18px;
  border-top: 1px solid var(--fx-line);
}
.fx-tx-head, .fx-tx-row{
  display: grid;
  grid-template-columns: 1fr auto 110px;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
}
.fx-tx-head{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fx-faint);
}
.fx-tx-head span:last-child, .fx-tx-row span:last-child{ text-align: right; }
.fx-tx-row{ border-top: 1px solid var(--fx-line); font-size: 13.5px; }
.fx-tx-row small{ margin-left: 6px; font-size: 11px; color: var(--fx-faint); }
.fx-tx-row span:last-child{ font-family: var(--font-mono); font-size: 13px; }
.fx-tag{
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(143,150,255,0.12);
  color: var(--fx-accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

/* entrance */
.fx-hero-copy > *, .fx-panel{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.fx-hero-copy > *:nth-child(2){ transition-delay: .06s; }
.fx-hero-copy > *:nth-child(3){ transition-delay: .12s; }
.fx-hero-copy > *:nth-child(4){ transition-delay: .18s; }
.fx-hero-copy > *:nth-child(5){ transition-delay: .24s; }
.fx-hero-copy > *:nth-child(6){ transition-delay: .30s; }
.fx-panel{ transition-delay: .2s; }
.is-in .fx-hero-copy > *, .is-in .fx-panel{ opacity: 1; transform: none; }

/* ---------- metrics ---------- */
.fx-metrics{
  border-top: 1px solid var(--fx-line);
  border-bottom: 1px solid var(--fx-line);
  background: var(--fx-surface);
}
.fx-metrics-grid{ display: grid; grid-template-columns: repeat(4, 1fr); }
.fx-metric{
  display: grid;
  gap: 6px;
  padding: 32px 24px;
  border-left: 1px solid var(--fx-line);
}
.fx-metric:first-child{ border-left: 0; padding-left: 0; }
.fx-metric b{
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.fx-metric span{ font-size: 13.5px; color: var(--fx-soft); text-wrap: pretty; }

/* ---------- sections ---------- */
.fx-section{ padding: clamp(72px, 9vw, 120px) 0; }
.fx-section + .fx-section{ border-top: 1px solid var(--fx-line); }
.fx-section-head{ display: grid; gap: 16px; align-content: start; margin-bottom: 48px; }
.fx-section-head .fx-p{ margin-top: 2px; }
.fx-center{ justify-items: center; text-align: center; }
.fx-center .fx-h2{ max-width: 22ch; }

/* ---------- calculator ---------- */
.fx-calc-grid, .fx-terms-grid, .fx-faq-grid{
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.fx-calc{
  padding: 28px;
  border-radius: 18px;
  border: 1px solid var(--fx-line-2);
  background: var(--fx-surface);
}
.fx-field > span{ display: block; font-size: 13px; color: var(--fx-soft); margin-bottom: 10px; }
.fx-input{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--fx-line-2);
  background: var(--fx-bg);
  transition: border-color .2s, box-shadow .2s;
}
.fx-input:focus-within{ border-color: var(--fx-accent); box-shadow: 0 0 0 4px rgba(143,150,255,0.15); }
.fx-input em{ font-style: normal; font-family: var(--font-mono); color: var(--fx-faint); font-size: 1.2rem; }
.fx-input input{
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fx-text);
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.fx-chips{ display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 26px; }
.fx-chips button{
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--fx-line-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fx-soft);
  transition: all .2s;
}
.fx-chips button:hover{ color: var(--fx-text); border-color: rgba(233,236,245,0.3); }
.fx-chips button.is-on{ color: var(--fx-bg); background: var(--fx-text); border-color: var(--fx-text); }

.fx-statement{ margin: 0; border-top: 1px solid var(--fx-line); }
.fx-statement div{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fx-line);
}
.fx-statement dt{ color: var(--fx-soft); font-size: 14.5px; }
.fx-statement dt small{
  white-space: nowrap;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fx-faint);
}
.fx-statement dd{ margin: 0; font-family: var(--font-mono); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Black Berry row: the biggest number in the block */
.fx-statement .is-best{ padding: 20px 0; }
.fx-statement .is-best dt{ color: var(--fx-text); font-weight: 600; }
.fx-statement .is-best dd{ font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; color: var(--fx-pos); letter-spacing: -0.02em; }
.fx-statement .is-total{ border-bottom: 0; }
.fx-statement .is-total dd{ color: var(--fx-pos); }
.fx-fine{ margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--fx-faint); max-width: 56ch; text-wrap: pretty; }

/* ---------- terms ---------- */
.fx-terms{ margin: 0; border-top: 1px solid var(--fx-line-2); }
.fx-terms div{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--fx-line);
}
.fx-terms dt{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fx-faint);
  padding-top: 3px;
}
.fx-terms dd{ margin: 0; font-size: 15.5px; line-height: 1.5; max-width: 48ch; text-wrap: pretty; }
.fx-terms dd b{ font-family: var(--font-mono); font-weight: 500; }

/* ---------- platform bento (full-bleed 2-col) ---------- */
.fx-platform{ padding-bottom: 0; }
.fx-bento{
  /* inner edge so copy lines up with .fx-wrap while cells run edge to edge */
  --edge: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--fx-line);
}
.fx-cell{
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 40px;
  min-height: 460px;
  padding: 48px 48px 0;
  border-bottom: 1px solid var(--fx-line);
  overflow: hidden;
  isolation: isolate;
  transition: background .4s ease;
}
.fx-cell:nth-child(odd){ padding-left: var(--edge); border-right: 1px solid var(--fx-line); }
.fx-cell:nth-child(even){ padding-right: var(--edge); }
.fx-cell:nth-last-child(-n+2){ border-bottom: 0; } /* next section's top border closes the grid */
.fx-cell::before{
  /* soft spotlight that follows the cursor (set in JS) */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 120%), rgba(143,150,255,0.10), transparent 70%);
  opacity: 0;
  transition: opacity .4s ease;
}
.fx-cell:hover::before{ opacity: 1; }

.fx-cell-copy{ display: grid; gap: 12px; max-width: 420px; }
.fx-cell-k{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fx-accent);
}
.fx-cell h3{ font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; max-width: 22ch; text-wrap: balance; }
.fx-cell p{ color: var(--fx-soft); line-height: 1.6; max-width: 40ch; text-wrap: pretty; }

/* visual sits on the bottom edge, like a product screenshot peeking in */
.fx-viz{
  align-self: end;
  width: 100%;
  max-width: 460px;
  padding: 20px 20px 0;
  border: 1px solid var(--fx-line-2);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, var(--fx-raised), var(--fx-surface));
  transform: translateY(14px);
  transition: transform .6s var(--ease-out);
}
.fx-cell:hover .fx-viz{ transform: translateY(0); }

/* members */
.fx-viz-members{ display: grid; gap: 8px; padding-bottom: 24px; }
.fx-mod{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(233,236,245,0.03);
  border: 1px solid var(--fx-line);
  font-size: 13.5px;
}
.fx-mod b{ font-weight: 500; }
.fx-mod small{ font-family: var(--font-mono); font-size: 11px; color: var(--fx-faint); }
.fx-check{
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--fx-line-2);
}
.fx-mod.is-done .fx-check{
  border-color: var(--fx-accent);
  background: var(--fx-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307090F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.fx-mod.is-now{ border-color: rgba(143,150,255,0.4); background: rgba(143,150,255,0.07); }
.fx-mod.is-now .fx-check{ border-color: var(--fx-accent); box-shadow: inset 0 0 0 3px var(--fx-surface), inset 0 0 0 8px var(--fx-accent); }
.fx-progress{ height: 4px; margin-top: 6px; border-radius: 99px; background: var(--fx-line); overflow: hidden; }
.fx-progress span{ display: block; height: 100%; background: var(--fx-accent); border-radius: inherit; }

/* player */
.fx-viz-player{ padding-bottom: 20px; }
.fx-screen{
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(140,87,253,0.45), transparent 60%),
    radial-gradient(90% 90% at 90% 100%, rgba(71,80,251,0.4), transparent 60%),
    #0A0D18;
}
.fx-screen::after{
  /* encrypted-chunk texture */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7,9,15,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,9,15,0.35) 1px, transparent 1px);
  background-size: 22px 22px;
}
.fx-lock{
  position: absolute;
  z-index: 1;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(7,9,15,0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fx-text);
}
.fx-lock svg{ width: 12px; height: 12px; color: var(--fx-pos); }
.fx-play{
  position: absolute;
  z-index: 1;
  left: 50%; top: 50%;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(233,236,245,0.92);
  color: var(--fx-bg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.fx-play svg{ width: 22px; height: 22px; margin-left: 3px; }
.fx-scrub{
  position: absolute;
  z-index: 1;
  left: 12px; right: 12px; bottom: 12px;
  height: 4px;
  border-radius: 99px;
  background: rgba(233,236,245,0.2);
}
.fx-scrub span{ display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--fx-text); }

/* app */
.fx-viz-app{ display: grid; gap: 8px; padding-bottom: 24px; }
.fx-toast{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(233,236,245,0.04);
  border: 1px solid var(--fx-line);
}
.fx-toast b{ display: block; font-size: 13.5px; font-weight: 500; }
.fx-toast small{ font-size: 11.5px; color: var(--fx-faint); }
.fx-toast em{ font-style: normal; font-family: var(--font-mono); font-size: 12.5px; color: var(--fx-pos); }
.fx-toast-ic{
  width: 30px; height: 30px;
  border-radius: 9px;
  background: url("berry-pay-black-berry.jpeg") center / cover;
}
.fx-toast.is-muted{ opacity: .55; }
.fx-toast.is-muted em{ color: var(--fx-soft); }

/* chat */
.fx-viz-chat{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  background: linear-gradient(180deg, #0E1A17, #0B1312);
}
.fx-bubble{
  max-width: 80%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  text-wrap: pretty;
}
.fx-bubble.is-in{ align-self: flex-start; background: #1B2421; border-top-left-radius: 4px; }
.fx-bubble.is-out{ align-self: flex-end; background: #144D3B; border-top-right-radius: 4px; }

/* ---------- faq ---------- */
.fx-faq{ border-top: 1px solid var(--fx-line-2); }
.fx-faq details{ border-bottom: 1px solid var(--fx-line); }
.fx-faq summary{
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}
.fx-faq summary::-webkit-details-marker{ display: none; }
.fx-faq summary::after{
  content: '';
  position: absolute;
  right: 6px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--fx-soft);
  border-bottom: 1.5px solid var(--fx-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.fx-faq details[open] summary::after{ transform: translateY(-30%) rotate(-135deg); }
.fx-faq p{ padding: 0 40px 22px 0; color: var(--fx-soft); line-height: 1.6; max-width: 60ch; text-wrap: pretty; }

/* ---------- final ---------- */
.fx-final{ padding: 0 0 clamp(72px, 9vw, 120px); }
.fx-final-card{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 22px;
  border: 1px solid var(--fx-line-2);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(140,87,253,0.22), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(71,80,251,0.16), transparent 70%),
    var(--fx-surface);
  overflow: hidden;
}
.fx-final-card .fx-h2{ margin-top: 16px; max-width: 18ch; }

/* ---------- footer ---------- */
.fx-foot{ border-top: 1px solid var(--fx-line); }
.fx-foot-inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 13px;
  color: var(--fx-faint);
}
.fx-foot a:hover{ color: var(--fx-text); }

/* ---------- reveal ---------- */
.fx-page .reveal{ transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.fx-page .reveal.is-visible{ opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px){
  .fx-hero-grid, .fx-calc-grid, .fx-terms-grid, .fx-faq-grid{ grid-template-columns: minmax(0, 1fr); }
  .fx-metrics-grid{ grid-template-columns: repeat(2, 1fr); }
  .fx-metric:nth-child(3){ border-left: 0; padding-left: 0; }
  .fx-metric:nth-child(n+3){ border-top: 1px solid var(--fx-line); }
  .fx-link{ display: none; }
}
@media (max-width: 820px){
  .fx-bento{ grid-template-columns: 1fr; }
  .fx-cell, .fx-cell:nth-child(odd), .fx-cell:nth-child(even){
    min-height: 0;
    padding: 36px var(--gutter) 0;
    border-right: 0;
    border-bottom: 1px solid var(--fx-line);
  }
  .fx-cell:last-child{ border-bottom: 0; }
  .fx-viz{ max-width: none; transform: none; }
}
@media (max-width: 560px){
  .fx-status{ display: none; }
  .fx-ctas{ width: 100%; }
  .fx-ctas .btn{ flex: 1 1 100%; }
  .fx-rate{ width: 100%; }
  .fx-delta{ margin-left: 0; }
  .fx-panel{ padding: 18px; }
  .fx-tx-head, .fx-tx-row{ grid-template-columns: 1fr auto 92px; }
  .fx-metric{ padding: 24px 16px; }
  .fx-terms div{ grid-template-columns: 1fr; gap: 6px; }
  .fx-calc{ padding: 20px; }
  .fx-section-head{ margin-bottom: 36px; }
  .fx-statement dt small{ display: block; margin: 4px 0 0; }
  .fx-statement .is-best{ flex-wrap: wrap; }
  .fx-statement .is-best dt{ white-space: nowrap; }
  .fx-statement .is-best dd{ margin-left: auto; }
  .fx-hero-copy{ gap: 24px; }
}

@media (prefers-reduced-motion: reduce){
  .fx-hero-copy > *, .fx-panel, .fx-page .reveal{ opacity: 1; transform: none; transition: none; }
  .fx-line{ stroke-dashoffset: 0; transition: none; }
  .fx-area, .fx-point{ opacity: 1; transition: none; }
}
