/*
 * About page (template-about.php), drawn with the Select Prop Firms UI kit.
 * Page parts are prefixed ab-; kit components keep their spf- classes.
 */

.ab-page { --ab-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --ab-dark: #111111; overflow: hidden; }
.ab-page h1, .ab-page h2, .ab-page h3 { margin: 0; text-wrap: balance; }
.ab-page p { margin: 0; }
.ab-wrap { max-width: var(--container); margin: 0 auto; padding: 0 40px; box-sizing: content-box; }

.ab-kicker { display: inline-flex; align-self: flex-start; padding: 6px 12px; border: 1px solid var(--rule-soft); border-radius: var(--radius-pill); background: var(--white); color: var(--ink-3); font-family: var(--ab-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; }
.ab-kicker--dark { border-color: rgba(255, 255, 255, 0.16); background: transparent; color: rgba(255, 255, 255, 0.64); }
.ab-muted { color: var(--grey-400); }
.ab-h2 { font-family: var(--font-display); font-size: 56px; line-height: 60px; font-weight: 700; letter-spacing: -1.4px; color: var(--ink); }
.ab-h3 { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 700; letter-spacing: -0.64px; color: var(--ink); }
.ab-page .spf-btn svg { width: 18px; height: 18px; }

/* Thin column lines behind a section */
.ab-lines { position: relative; }
.ab-lines::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(40px, calc((100% - var(--container)) / 2)); right: max(40px, calc((100% - var(--container)) / 2)); pointer-events: none; border-right: 1px solid var(--rule-soft); background: linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px) 0 0 / 25% 100%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); opacity: 0.7; }
.ab-lines > * { position: relative; }
.ab-lines--dark::before { border-right-color: rgba(255, 255, 255, 0.07); background: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 25% 100%; opacity: 1; }

/* Hero */
.ab-hero { padding: 40px 0 72px; }
.ab-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.ab-hero__inner .ab-kicker { align-self: center; }
.ab-title { max-width: 980px; font-family: var(--font-display); font-size: 88px; line-height: 88px; font-weight: 700; letter-spacing: -2.64px; color: var(--ink); }
.ab-title span { display: block; }
.ab-lead { max-width: 640px; font-size: 20px; line-height: 29px; font-weight: 500; color: var(--ink-3); }
.ab-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding-top: 8px; }

/* Three image cards */
.ab-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 96px; }
.ab-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ab-card__media { position: relative; aspect-ratio: 1 / 1; margin-bottom: 14px; overflow: hidden; border-radius: var(--radius-30); background: var(--surface-card); }
.ab-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.ab-card:hover .ab-card__media img { transform: scale(1.03); }
.ab-card__media--orange { background: var(--orange); }
.ab-card__media--ink { display: flex; align-items: center; justify-content: center; padding: 32px; background: radial-gradient(90% 70% at 80% 0%, rgba(255, 107, 0, 0.28), transparent 60%), var(--ab-dark); }
.ab-card__title { font-family: var(--font-display); font-size: 26px; line-height: 30px; font-weight: 700; letter-spacing: -0.52px; color: var(--ink); }
.ab-card__text { font-size: 17px; line-height: 25px; font-weight: 500; color: var(--ink-3); }
.ab-card__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ab-card__text a:hover { color: var(--orange); }

/* Challenge rules panel inside the third card */
.ab-rules { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 320px; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-20); background: rgba(255, 255, 255, 0.04); color: var(--white); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); }
.ab-rules__label { font-family: var(--ab-mono); font-size: 11px; line-height: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.ab-rules__pnl { margin-top: -8px; font-family: var(--font-display); font-size: 34px; line-height: 38px; font-weight: 700; color: #3fd08f; font-variant-numeric: tabular-nums; }
.ab-rules__row { display: flex; flex-direction: column; gap: 8px; }
.ab-rules__row > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 16px; }
.ab-rules__row span { color: rgba(255, 255, 255, 0.64); }
.ab-rules__row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ab-rules__row i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--orange) var(--w), rgba(255, 255, 255, 0.1) var(--w)); }
.ab-rules__days { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.55); }

/* Firm logo ticker */
.ab-firms { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 0 96px; }
.ab-firms .ab-kicker { align-self: center; }
.ab-ticker .spf-ticker__track { gap: 16px; animation-duration: 90s; }
.ab-ticker .spf-ticker__item a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--radius-pill); background: var(--surface-card); color: var(--ink); font-size: 16px; line-height: 20px; font-weight: 600; text-decoration: none; }
.ab-ticker .spf-ticker__item a:hover { background: var(--surface-hover); }
.ab-ticker .spf-ticker__item img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

/* Story and video */
.ab-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; padding-bottom: 112px; }
.ab-story__head { display: flex; flex-direction: column; gap: 20px; }
.ab-story__body { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 28px; font-weight: 500; color: var(--ink-3); }
.ab-story__lead { font-family: var(--font-display); font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.4px; color: var(--ink); }
.ab-video { grid-column: 1 / -1; margin: 32px 0 0; overflow: hidden; border-radius: var(--radius-30); background: var(--ab-dark); }
.ab-video video { display: block; width: 100%; aspect-ratio: 16 / 9; }

/* Dark band */
.ab-dark { padding: 112px 0; background: var(--ab-dark); color: var(--white); }
.ab-dark__head { display: flex; flex-direction: column; gap: 24px; max-width: 1000px; padding-bottom: 64px; }
.ab-dark .ab-h2 { color: var(--white); }
.ab-dark .ab-h2 span { display: block; }
.ab-dark .ab-muted { color: rgba(255, 255, 255, 0.42); }
.ab-dark__head p { max-width: 680px; font-size: 18px; line-height: 28px; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.ab-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.ab-pillars li { display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 0 0; }
.ab-pillars li + li { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.ab-pillars b { font-family: var(--font-display); font-size: 22px; line-height: 26px; font-weight: 700; }
.ab-pillars span { font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, 0.64); }
.ab-pillars a { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--orange); font-size: 16px; font-weight: 600; text-decoration: none; }
.ab-pillars a svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.ab-pillars a:hover svg { transform: translateX(3px); }

/* Two panels */
.ab-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 96px; padding-bottom: 96px; }
.ab-panel { display: flex; flex-direction: column; gap: 18px; padding: 40px; border-radius: var(--radius-30); background: var(--surface-card); font-size: 17px; line-height: 26px; font-weight: 500; color: var(--ink-3); }
.ab-panel--orange { background: radial-gradient(120% 100% at 100% 0%, #ff9a4d 0%, var(--orange) 55%, #f25a00 100%); color: rgba(255, 255, 255, 0.92); }
.ab-panel--orange .ab-h3 { color: var(--white); }
.ab-checks { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--ink); font-weight: 600; }
.ab-checks li { display: flex; align-items: center; gap: 10px; }
.ab-checks svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--orange); }
.ab-btn-light { align-self: flex-start; margin-top: auto; background: var(--white); color: var(--ink); }
.ab-btn-light:hover { background: var(--ink); color: var(--white); }

@media (max-width: 1023px) {
  .ab-title { font-size: 64px; line-height: 66px; letter-spacing: -1.8px; }
  .ab-h2 { font-size: 44px; line-height: 48px; letter-spacing: -1px; }
  .ab-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-bento .ab-card:last-child { grid-column: 1 / -1; }
  .ab-bento .ab-card:last-child .ab-card__media { aspect-ratio: 16 / 9; }
  .ab-story { grid-template-columns: minmax(0, 1fr); }
  .ab-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .ab-pillars li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ab-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .ab-wrap { padding: 0 16px; }
  .ab-hero { padding: 16px 0 48px; }
  .ab-title { font-size: 44px; line-height: 46px; letter-spacing: -1.2px; }
  .ab-lead { font-size: 17px; line-height: 25px; }
  .ab-actions { flex-direction: column; align-self: stretch; }
  .ab-actions .spf-btn { justify-content: center; }
  .ab-h2 { font-size: 34px; line-height: 38px; letter-spacing: -0.7px; }
  .ab-h3 { font-size: 26px; line-height: 30px; }
  .ab-bento { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-bottom: 64px; }
  .ab-bento .ab-card:last-child .ab-card__media { aspect-ratio: 1 / 1; }
  .ab-card__media { border-radius: var(--radius-20); }
  .ab-firms { padding-bottom: 64px; }
  .ab-story { padding-bottom: 72px; }
  .ab-story__lead { font-size: 22px; line-height: 29px; }
  .ab-story__body { font-size: 16px; line-height: 25px; }
  .ab-video { margin-top: 12px; border-radius: var(--radius-20); }
  .ab-dark { padding: 72px 0; }
  .ab-dark__head { padding-bottom: 40px; }
  .ab-pillars { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .ab-pillars li, .ab-pillars li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .ab-duo { padding-top: 64px; padding-bottom: 64px; gap: 16px; }
  .ab-panel { padding: 24px; border-radius: var(--radius-20); }
  .ab-lines::before { left: 16px; right: 16px; background-size: 50% 100%; }
}
@media (prefers-reduced-motion: reduce) { .ab-card__media img { transition: none; } }
