/* ============================================================================
   av-pricing.css — /pricing/ on the living layer.
   Story: free platform, ONE flat price unlocks any live exchange, and a big
   free section for every testnet/demo. Built on av-tokens + av-components.
   ========================================================================== */

/* ── Price figure inside the three model cards ──────────────────────────── */
.av-pricing-card__price {
  margin: var(--av-space-2) 0 var(--av-space-4);
  display: flex;
  align-items: baseline;
  gap: 0.35em;
}
.av-pricing-card__amount {
  font-family: var(--av-font-display);
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--av-text);
}
.av-pricing-card__period {
  font-family: var(--av-font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--av-text-muted);
}
.av-pricing-card--highlight {
  border-color: var(--av-orange);
  box-shadow: 0 0 0 1px var(--av-orange), 0 18px 48px -28px var(--av-orange);
  position: relative;
}
.av-pricing-card--highlight .av-pricing-card__amount { color: var(--av-orange); }

/* ── The one-price banner above the live wall ───────────────────────────── */
.av-price-banner {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--av-space-3);
  margin-bottom: var(--av-space-5);
  padding-bottom: var(--av-space-5);
  border-bottom: 1px solid var(--av-border);
}
.av-price-banner__amount {
  font-family: var(--av-font-display);
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--av-orange);
}
.av-price-banner__rest { display: flex; flex-direction: column; }
.av-price-banner__line {
  font-family: var(--av-font-display);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  color: var(--av-text);
}
.av-price-banner__sub { font-size: 0.95rem; color: var(--av-text-muted); }

/* ── Live-exchange wall: one card per exchange, NO repeated price ────────── */
.av-xchg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: var(--av-space-4);
  margin-top: var(--av-space-5);
}
.av-xchg {
  display: flex;
  align-items: center;
  gap: var(--av-space-3);
  padding: var(--av-space-3) var(--av-space-4);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius);
  background: var(--av-surface);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.av-xchg:hover {
  border-color: var(--av-orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -22px var(--av-orange);
}

/* White logo chip — natural-colour brand icon, legible on either theme and
   safe for the filled tiles (bybit/oanda/okx). Verified by compositing. */
.av-xchg__logo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--av-tile-bg, var(--av-tile-bg-default, #fff));
  border-radius: 11px;
  box-shadow: 0 0 0 1px var(--av-border);
}
.av-xchg__logo img { width: 36px; height: 36px; object-fit: contain; display: block; }
.av-xchg__logo--sm { width: 38px; height: 38px; border-radius: 9px; }
.av-xchg__logo--sm img { width: 28px; height: 28px; }

.av-xchg__text { display: flex; flex-direction: column; min-width: 0; }
.av-xchg__name {
  font-family: var(--av-font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--av-text);
  line-height: 1.2;
}
.av-xchg__sub {
  font-size: 0.78rem;
  color: var(--av-text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Free-to-practice section ───────────────────────────────────────────── */
.av-free-eyebrow {
  display: inline-block;
  font-family: var(--av-font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--av-live-green);
  background: var(--av-live-green-bg);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: var(--av-space-3);
}
.av-free-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: var(--av-space-3);
  margin-top: var(--av-space-5);
}
.av-free-chip {
  display: flex;
  align-items: center;
  gap: var(--av-space-3);
  padding: var(--av-space-2) var(--av-space-3);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius);
  background: var(--av-bg);
  text-decoration: none;
  transition: border-color 0.15s;
}
.av-free-chip:hover { border-color: var(--av-live-green); }
.av-free-chip__label {
  flex: 1 1 auto;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--av-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.av-free-chip__tag {
  flex: 0 0 auto;
  font-family: var(--av-font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--av-live-green);
}

.av-grid-loading { color: var(--av-text-muted); font-style: italic; }

.av-price-note {
  margin-top: var(--av-space-5);
  font-size: 0.9rem;
  color: var(--av-text-muted);
}

/* ── "One subscription, three ways to run" band ─────────────────────────── */
.av-included {
  margin-top: var(--av-space-7);
  padding: var(--av-space-6) var(--av-space-7);
  border: 1px solid var(--av-border);
  border-radius: var(--av-radius-lg);
  background: var(--av-surface);
  text-align: center;
}
.av-included__label {
  display: block;
  font-family: var(--av-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--av-orange);
  margin-bottom: var(--av-space-2);
}
.av-included__text {
  color: var(--av-text-muted);
  max-width: 52ch;
  margin: 0 auto var(--av-space-4);
  line-height: 1.6;
}
.av-included__ways {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--av-space-2) var(--av-space-3);
  margin-bottom: var(--av-space-4);
}
.av-included__way {
  font-family: var(--av-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--av-text);
  padding: 0.4em 0.9em;
  border: 1px solid var(--av-border);
  border-radius: 999px;
  background: var(--av-bg);
}
.av-included__link {
  display: inline-block;
  font-weight: 600;
  color: var(--av-orange);
  text-decoration: none;
}
.av-included__link:hover { text-decoration: underline; }

/* ── Monthly / yearly billing toggle (segmented pill) ───────────────────── */
.av-billing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: var(--av-space-5) 0 var(--av-space-6);
}
.av-billing-toggle {
  display: inline-flex;
  align-items: stretch;
  gap: var(--av-space-1);
  padding: 4px;
  border: 1px solid var(--av-border);
  border-radius: 999px;
  background: var(--av-bg);
}
.av-billing-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--av-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--av-text-muted);
  padding: 0.55em 1.4em;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.av-billing-toggle__btn:hover { color: var(--av-text); }
.av-billing-toggle__btn.is-active {
  color: var(--av-text);
  background: var(--av-surface);
  box-shadow: 0 1px 3px -1px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--av-border);
}
.av-billing-toggle__btn:focus-visible {
  outline: 2px solid var(--av-orange);
  outline-offset: 2px;
}
.av-billing-toggle__save {
  font-family: var(--av-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--av-live-green);
  background: var(--av-live-green-bg);
  padding: 0.2em 0.6em;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .av-price-banner { flex-direction: column; align-items: flex-start; gap: var(--av-space-1); }
  .av-included { padding: var(--av-space-5); }
  .av-billing-toggle__btn { padding: 0.5em 1em; font-size: 0.9rem; }
}
