/* After the Run — Rally+ post-run events conversion page */

.after-run-page {
  background: var(--paper, #f6f3ec);
  color: var(--ink, #141414);
}

.after-run-page .site-nav {
  background: rgba(20, 20, 20, 0.35);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.after-run-page .site-nav .logo,
.after-run-page .site-nav .nav-links > a,
.after-run-page .site-nav .nav-dropdown-toggle,
.after-run-page .site-nav .nav-auth-link,
.after-run-page .site-nav .icon-btn {
  color: #fff;
}

.after-run-page .site-nav .logo-mark {
  color: var(--yellow, #f5c400);
}

.after-run-page .site-nav .nav-toggle span {
  background: #fff;
}

.after-run-page .site-nav .nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
}

.after-run-page .site-nav .btn-nav {
  background: #fff;
  color: var(--black, #111);
}

.after-run-page .site-nav .btn-nav:hover {
  background: #f3f3f3;
}

/* —— Hero —— */
.ar-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 780px);
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
}

.ar-hero-photo {
  position: absolute;
  inset: 0;
}

.ar-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% center;
}

.ar-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.74) 0%, rgba(10, 10, 10, 0.4) 44%, rgba(10, 10, 10, 0.1) 72%, transparent 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.28) 0%, transparent 30%, rgba(10, 10, 10, 0.55) 100%);
  pointer-events: none;
}

.ar-hero-copy {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 48px));
  margin: 0 max(24px, calc((100vw - var(--max, 1320px)) / 2));
  padding: 120px 0 72px;
}

.ar-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.ar-hero-lede {
  margin: 18px 0 0;
  max-width: 30em;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.ar-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
}

.ar-hero-actions .btn {
  min-height: 52px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 999px;
}

.ar-hero-actions .btn-ghost-light {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.ar-hero-actions .btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* —— Shared —— */
.ar-section {
  padding: 88px max(24px, calc((100% - var(--max, 1320px)) / 2));
}

.ar-section-tight {
  padding-top: 64px;
  padding-bottom: 64px;
}

.ar-inner {
  max-width: 1100px;
}

.ar-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #5e5a54);
}

.ar-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--ink, #141414);
}

.ar-lede {
  margin: 0;
  max-width: 36em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted, #5e5a54);
}

.ar-note {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #141414);
}

/* —— Benefits + event card —— */
.ar-product {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line, #e6e1d8);
  border-bottom: 1px solid var(--line, #e6e1d8);
}

.ar-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line, #e6e1d8);
}

.ar-benefits article {
  padding: 24px 22px 8px 0;
  border-right: 1px solid var(--line, #e6e1d8);
}

.ar-benefits article:last-child {
  border-right: 0;
  padding-right: 0;
}

.ar-benefits article:not(:first-child) {
  padding-left: 24px;
}

.ar-benefits h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ar-benefits p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted, #5e5a54);
}

.ar-event-card {
  background: var(--paper, #f6f3ec);
  border: 1px solid var(--line, #e6e1d8);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(20, 20, 20, 0.08);
}

.ar-plus-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--yellow, #f5c400);
  color: var(--black, #111);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ar-event-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ar-event-meta {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted, #5e5a54);
}

.ar-event-desc {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted, #5e5a54);
}

.ar-avatars {
  display: flex;
  align-items: center;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.ar-avatars li {
  width: 36px;
  height: 36px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  background: #ddd8cf;
}

.ar-avatars li:first-child {
  margin-left: 0;
}

.ar-avatars img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ar-avatars .ar-avatar-more {
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink, #141414);
  background: #fff;
}

.ar-avatars .ar-avatar-more--a { background: #e8e2d6; }
.ar-avatars .ar-avatar-more--b { background: #d9e4f0; }
.ar-avatars .ar-avatar-more--c { background: #e4d9f0; }

.ar-event-card .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
}

.ar-event-helper {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--muted, #5e5a54);
  text-align: center;
}

/* —— How post-run works —— */
.ar-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.ar-step-num {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted, #5e5a54);
}

.ar-steps h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ar-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted, #5e5a54);
}

/* —— Photo feature —— */
.ar-feature {
  padding: 0;
  background: #fff;
  border-top: 1px solid var(--line, #e6e1d8);
  border-bottom: 1px solid var(--line, #e6e1d8);
}

.ar-feature-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 420px;
}

.ar-feature-photo {
  min-height: 320px;
  overflow: hidden;
}

.ar-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ar-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  background: var(--paper, #f6f3ec);
}

.ar-feature-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ar-feature-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line, #e6e1d8);
  font-size: 15px;
  font-weight: 650;
  color: var(--ink, #141414);
}

.ar-feature-list li:last-child {
  border-bottom: 1px solid var(--line, #e6e1d8);
}

.ar-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow, #f5c400);
}

/* —— Band —— */
.ar-band {
  padding: 64px max(24px, calc((100% - var(--max, 1320px)) / 2));
  background: var(--black, #111);
  color: #fff;
  text-align: center;
}

.ar-band h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.ar-band p {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

/* —— Unlock checklist —— */
.ar-unlock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 40px;
  margin: 28px 0 0;
  padding: 0;
  max-width: 720px;
  list-style: none;
}

.ar-unlock-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink, #141414);
}

.ar-check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--yellow, #f5c400);
  color: var(--black, #111);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

.ar-clarifier {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--muted, #5e5a54);
}

/* —— Close —— */
.ar-close {
  padding: 88px max(24px, calc((100% - var(--max, 1320px)) / 2)) 100px;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 50% at 50% 0%, rgba(245, 196, 0, 0.2), transparent 60%),
    #fff;
  border-top: 1px solid var(--line, #e6e1d8);
}

.ar-close .ar-title {
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
}

.ar-close .btn {
  min-height: 54px;
  padding: 16px 28px;
  margin-top: 24px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 999px;
}

.ar-price-note {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted, #5e5a54);
}

@media (max-width: 900px) {
  .ar-product,
  .ar-feature-grid,
  .ar-benefits,
  .ar-steps,
  .ar-unlock-grid {
    grid-template-columns: 1fr;
  }

  .ar-benefits article,
  .ar-benefits article:not(:first-child) {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line, #e6e1d8);
  }

  .ar-benefits article:last-child {
    border-bottom: 0;
  }

  .ar-feature-copy {
    padding: 36px 24px;
  }

  .ar-hero {
    min-height: 70vh;
  }

  .ar-hero-copy {
    padding: 100px 0 56px;
  }
}

@media (max-width: 720px) {
  .ar-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ar-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ar-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .after-run-page .site-nav {
    background: rgba(20, 20, 20, 0.92);
  }
}
