/* Page-only styles. CSS-compatible SCSS; copy to css/ab-split-tests.css. */
.ab-page { color: var(--color-text-primary); }
.ab-page h1, .ab-page h2 { font-family: "Segoe UI", Arial, sans-serif; font-weight: 700; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; }
.ab-page h1 { font-size: clamp(2.8rem, 4.7vw, 4.1rem); margin: 0 0 26px; }
.ab-page h2 { font-size: clamp(2rem, 3.3vw, 2.8rem); margin: 0 0 22px; }
.ab-page h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; margin: 0 0 12px; }
.ab-page em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--color-text-brand); }
.ab-page p { color: var(--color-text-secondary); line-height: 1.7; margin: 0 0 20px; }
.ab-page a, .ab-page a:hover { text-decoration: none; }
.ab-page a:focus-visible { outline: 3px solid var(--color-text-brand); outline-offset: 5px; }
.ab-page img { display: block; width: 100%; height: auto; }
.ab-page .ab-mobile { display: none; }
.ab-page .btn-primary { background: #2563eb; color: white; border-radius: 3px; }
.ab-page .btn-primary:hover { background: #1d4ed8; }
.ab-page .cta-group { margin-top: 28px; gap: 16px 26px; align-items: center; }
.ab-link { display: inline-flex; align-items: center; gap: 12px; color: var(--color-text-brand); font-size: .9375rem; font-weight: 600; min-height: 44px; }
.ab-link:hover { opacity: .8; }
.ab-split, .ab-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.ab-split > *, .ab-intro > * { min-width: 0; }
.ab-hero { padding: 36px 0 64px; }
.ab-hero-art img { max-width: 440px; margin: auto; border-radius: 3px; }
.ab-section { padding: 80px 0; }
.ab-examples { scroll-margin-top: 90px; }
.ab-shoe-art img { max-width: 300px; margin: auto; }
.ab-intro { margin-bottom: 30px; align-items: start; }
.ab-intro p:last-child { margin-bottom: 0; }
.ab-capture { display: block; border: 1px solid var(--color-border); background: #fff; border-radius: 3px; }
.ab-distribution { margin-top: 64px; }
.ab-gallery { position: relative; aspect-ratio: 1987 / 588; background: #fff; border: 1px solid var(--color-border); border-radius: 3px; }
.ab-gallery > a { position: absolute; inset: 0; display: flex; align-items: flex-start; opacity: 0; transition: opacity 650ms ease; }
.ab-gallery > a:first-child { opacity: 1; }
.ab-gallery > a[hidden] { display: none; }
.ab-gallery img { width: 100%; height: 100%; object-fit: contain; object-position: top; }
.ab-align-start { align-items: start; }
.ab-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.ab-steps li { position: relative; counter-increment: step; padding: 0 0 28px 44px; }
.ab-steps li:last-child { padding-bottom: 0; }
.ab-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 2px; left: 0; color: var(--color-text-brand); font-size: .8125rem; font-weight: 600; }
.ab-steps h3 { font-size: 1.125rem; margin-bottom: 8px; }
.ab-steps p { font-size: .9375rem; margin: 0; }
.ab-close { padding-top: 64px; background: #0b2842; color: #fff; }
.ab-close-main { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 72px; padding-bottom: 52px; }
.ab-close h2 { color: #fff; font-size: clamp(2.5rem, 4.4vw, 3.8rem); text-wrap: initial; }
.ab-close h2 em { color: #9ec4ff; }
.ab-close-main p { color: #cfdeea; max-width: 440px; margin-bottom: 32px; font-size: 1.0625rem; }
.ab-close .btn-primary { color: #0b2842; background: #fff; min-height: 54px; padding: 15px 24px; gap: 24px; }
.ab-close .btn-primary:hover { color: #0b2842; background: #dfebff; }
.ab-close a:focus-visible { outline-color: #9ec4ff; }
.ab-close-art { overflow: hidden; border-radius: 3px; }
.ab-close-art img { aspect-ratio: 1.2; object-fit: cover; object-position: center 75%; }
.ab-close-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 22px 0; border-top: 1px solid #385167; }
.ab-close-footer p { margin: 0; font-size: .875rem; color: #b6cbdc; }
.ab-close-footer a { color: #fff; }
.ab-close-footer p a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.ab-close-footer a:hover { color: #9ec4ff; }
@media (max-width: 1000px) {
  .ab-split, .ab-intro { gap: 36px; }
}
@media (max-width: 900px) {
  .ab-hero .ab-split { grid-template-columns: 1fr; }
  .ab-hero .ab-split > div:first-child { max-width: 650px; }
  .ab-hero-art img { max-width: 400px; }
}
@media (max-width: 768px) {
  .ab-page h1 { font-size: clamp(2.55rem, 8.5vw, 3.6rem); }
  .ab-page h2 { font-size: clamp(1.9rem, 6.8vw, 2.6rem); }
  .ab-section { padding: 52px 0; }
  .ab-hero { padding: 28px 0 44px; }
  .ab-split, .ab-intro { grid-template-columns: 1fr; gap: 24px; }
  .ab-intro { margin-bottom: 24px; }
  .ab-intro h2 { margin-bottom: 0; }
  .ab-distribution { margin-top: 40px; }
  .ab-page .cta-group { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ab-close { padding-top: 44px; }
  .ab-close-main { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .ab-close h2 { font-size: clamp(2.3rem, 8vw, 3.5rem); }
  .ab-close-footer { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 0; }
  .ab-close .btn-primary { padding: 15px 18px; gap: 14px; }
}
@media (max-width: 600px) {
  .ab-page .ab-wide { display: none; }
  .ab-page .ab-mobile { display: block; }
  .ab-page .ab-upload-crops { display: grid; grid-template-columns: 160fr 270fr; gap: 12px; }
  .ab-page .ab-reporting-crops { display: grid; grid-template-columns: 152fr 356fr; gap: 12px; }
  .ab-winner-crops { width: 100%; }
  .ab-gallery .ab-winner-crops img { height: auto; }
  .ab-confidence-crops { display: grid; grid-template-columns: 223fr 212fr; gap: 8px; margin-top: 24px; }
  .ab-gallery { aspect-ratio: 535 / 358; }
  .ab-gallery .ab-mobile { height: auto; max-height: 100%; }
  .ab-results .ab-capture { max-width: 356px; margin: auto; }
}
@media (prefers-reduced-motion: reduce) { .ab-gallery > a { transition: none; } }
