/* ==========================================================================
   SwiftCap EAs — product detail pages (/range-portfolio, /trinity)
   Builds on styles.css (tokens, nav, page hero, section heads, FAQ, CTA box).
   ========================================================================== */

.pd-hero { text-align: left; }
.pd-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.pd-hero h1 { max-width: 13ch; margin: 0 0 20px; }
.pd-hero .page-hero-desc { margin: 0 0 28px; max-width: 54ch; }
.pd-hero .page-hero-actions { justify-content: flex-start; }
.pd-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pd-title img { width: 56px; height: 56px; border: 1px solid var(--line-2); border-radius: 14px; object-fit: cover; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 22px; }
.pd-price strong { font: 500 clamp(2.4rem, 4vw, 3.2rem)/1 var(--f-serif); letter-spacing: -.04em; }
.pd-price span { color: var(--ink-3); font: var(--fs-sm)/1.4 var(--f-mono); }

/* Live Myfxbook widget */
.live-card { padding: 18px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-elev); box-shadow: var(--shadow-lg); }
.live-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--signal); font: 600 var(--fs-xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.live-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in oklch, currentColor 20%, transparent); animation: pulse 2.4s var(--ease) infinite; }
.live-card-head a { color: var(--ink-3); font-size: var(--fs-xs); }
.live-card-head a:hover { color: var(--ember); }
.live-widget { display: block; width: 100%; height: auto; border-radius: 10px; background: #fff; }
.live-note { margin-top: 12px; color: var(--ink-4); font: var(--fs-xs)/1.6 var(--f-mono); }

/* Fact strip */
.fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.fact-strip div { padding: 20px 22px; background: var(--bg); }
.fact-strip dt { margin-bottom: 8px; color: var(--ink-4); font: 600 .62rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.fact-strip dd { font: 500 1.35rem/1.15 var(--f-serif); letter-spacing: -.02em; }

/* Backtest */
.bt-card { border: 1px solid var(--line); border-radius: 18px; background: var(--bg-elev); overflow: hidden; }
.bt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.bt-label { padding: 5px 10px; border: 1px solid color-mix(in oklch, var(--ember) 40%, transparent); border-radius: 999px; background: var(--ember-soft); color: var(--ember); font: 600 .62rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.bt-head strong { font-size: var(--fs-md); }
.bt-chart { position: relative; padding: 22px 24px 8px; }
.bt-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.bt-axis { display: flex; justify-content: space-between; padding: 6px 24px 18px; color: var(--ink-4); font: var(--fs-xs)/1 var(--f-mono); }
.bt-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.bt-stats div { padding: 16px 18px; background: var(--bg-sunk); }
.bt-stats dt { margin-bottom: 6px; color: var(--ink-4); font: 600 .6rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.bt-stats dd { font: 500 1.3rem/1.1 var(--f-serif); letter-spacing: -.02em; }
.bt-stats dd small { display: block; margin-top: 4px; color: var(--ink-4); font: var(--fs-xs)/1.3 var(--f-sans); letter-spacing: 0; }

.bt-years { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; margin-top: 16px; }
.bt-year { padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elev); text-align: center; }
.bt-year span { display: block; margin-bottom: 4px; color: var(--ink-4); font: 600 .66rem/1 var(--f-mono); }
.bt-year b { color: var(--signal); font: 600 var(--fs-sm)/1 var(--f-mono); }
.bt-year small { display: block; margin-top: 4px; color: var(--ink-4); font-size: .62rem; }

.assume { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.assume div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-elev); }
.assume dt { margin-bottom: 4px; color: var(--ink-4); font: 600 .6rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.assume dd { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.bt-disclaimer { margin-top: 16px; padding: 14px 18px; border: 1px solid color-mix(in oklch, var(--danger) 35%, var(--line)); border-radius: 12px; background: color-mix(in oklch, var(--danger) 6%, var(--bg-elev)); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.65; }
.bt-disclaimer strong { color: var(--ink); }

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how-grid.is-4 { grid-template-columns: repeat(4, 1fr); }
.how-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--bg-elev), color-mix(in oklch, var(--bg-elev) 60%, var(--bg))); }
.how-card .ico-tile { margin-bottom: 16px; }
.how-card h3 { margin-bottom: 8px; font-size: var(--fs-lg); font-weight: 600; }
.how-card p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }

/* Tables */
.pd-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); }
.pd-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-sm); }
.pd-table th, .pd-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pd-table thead th { background: var(--bg-sunk); color: var(--ink-4); font: 600 .62rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.pd-table tbody tr:last-child > * { border-bottom: 0; }
.pd-table tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.pd-table td { color: var(--ink-2); }
.pd-table .num { color: var(--ink); font-family: var(--f-mono); }

.req-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.req-list li { display: flex; gap: 12px; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; list-style: none; }
.req-list li::before { content: ''; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--signal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ddc97' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.req-list strong { color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.community-count { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--ink-3); font-size: var(--fs-sm); }
.community-count[hidden] { display: none; }
.community-count b { color: var(--ink); }

@media (max-width: 1050px) {
  .pd-hero-grid { grid-template-columns: 1fr; }
  .bt-stats { grid-template-columns: repeat(3, 1fr); }
  .bt-years { grid-template-columns: repeat(5, 1fr); }
  .how-grid, .how-grid.is-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .bt-stats { grid-template-columns: 1fr 1fr; }
  .bt-years { grid-template-columns: repeat(3, 1fr); }
  .assume, .how-grid, .how-grid.is-4, .two-col, .req-list { grid-template-columns: 1fr; }
  .bt-head, .bt-chart, .bt-axis { padding-left: 16px; padding-right: 16px; }
}

/* Report download */
.bt-download { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 16px; padding: 18px 20px; border: 1px solid color-mix(in oklch, var(--ember) 35%, var(--line)); border-radius: 14px; background: color-mix(in oklch, var(--ember) 7%, var(--bg-elev)); }
.bt-download strong { display: block; margin-bottom: 4px; font-size: var(--fs-md); }
.bt-download span { color: var(--ink-3); font-size: var(--fs-sm); line-height: 1.6; }
