/* ============================================================
   RFFL — Platform Page Styles
   ============================================================ */

/* ── Page hero ──────────────────────────────────────────────── */
.page-hero {
  background: var(--offwhite);
  padding: 48px 0 72px;
  border-bottom: var(--border);
}
.page-hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.page-hero-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}
.page-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ── Pricing ─────────────────────────────────────────────────
   White background — contrasts with offwhite hero above
   ─────────────────────────────────────────────────────────── */
.pricing {
  background: var(--white);
  padding: var(--section-py) 0;
}
.pricing-header { margin-bottom: 32px; }
.pricing-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.pricing-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.pricing-note strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 28px;
}

.pricing-card {
  background: var(--offwhite);
  border: var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px 32px;
  position: relative;
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

/* Featured (Standard) card — white on offwhite section pops it out */
.pricing-card--featured {
  background: var(--white);
  border-color: var(--red);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(240, 92, 99, 0.15);
}
.pricing-card--featured:hover {
  box-shadow: 0 12px 40px rgba(240, 92, 99, 0.22);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card-plan {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pricing-card--featured .pricing-card-plan { color: var(--red); }

.pricing-card-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pricing-price {
  margin-bottom: 6px;
}
.pricing-price-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.pricing-price-per {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 3px;
}
.pricing-price-annual {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-price-annual strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Enterprise custom price */
.pricing-price-custom {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pricing-price-custom-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-divider {
  border: none;
  border-top: var(--border);
  margin: 0 0 20px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
  flex: 1;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.pricing-feature::before {
  content: '';
  flex-shrink: 0;
  margin-top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(240, 92, 99, 0.1);
  background-size: 9px;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='M1.5 4.5l2 2L7.5 2' stroke='%23f05c63' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pricing-feature-note {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ── Early Access ────────────────────────────────────────────
   White background — same contrast position as pricing
   ─────────────────────────────────────────────────────────── */
.early-access {
  background: var(--white);
  padding: var(--section-py) 0;
}

.early-access-header {
  max-width: 640px;
  margin-bottom: 56px;
}
.early-access-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.early-access-sub {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.early-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
.early-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--offwhite);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.early-step-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  margin-top: 2px;
}
.early-step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.early-step-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.early-access-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.early-access-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 720px) {
  .early-steps { grid-template-columns: repeat(3, 1fr); }
  .early-step { flex-direction: column; gap: 16px; }
}

/* ── Features ────────────────────────────────────────────────
   Offwhite background — contrasts with white early-access/pricing above
   ─────────────────────────────────────────────────────────── */
.features {
  background: var(--offwhite);
  padding: var(--section-py) 0;
}
.features-header { margin-bottom: 44px; }
.features-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-tile {
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.feature-tile-icon {
  width: 40px;
  height: 40px;
  background: var(--offwhite);
  border: var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-tile-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.feature-tile-body {
  font-size: 12px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ── Reggie callout ─────────────────────────────────────────── */
.reggie-callout {
  background: var(--burgundy);
  padding: 72px 0;
}
.reggie-callout-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.reggie-callout-content { max-width: 580px; }
.reggie-callout-aside {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}
.reggie-callout-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 14px;
}
.reggie-callout-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
  margin-bottom: 28px;
}
.reggie-callout-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reggie-callout-feature {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}
.reggie-callout-feature::before {
  content: '';
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(240, 92, 99, 0.25);
  background-size: 9px;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='M1.5 4.5l2 2L7.5 2' stroke='%23f05c63' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Reggie character illustration */
.reggie-character {
  display: block;
  width: 210px;
  height: auto;
  flex-shrink: 0;
}

/* ── Desktop overrides ──────────────────────────────────────── */
@media (min-width: 600px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .reggie-callout-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
  }
  .reggie-callout-content { flex: 1; }
  .reggie-callout-aside {
    flex: 0 0 420px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
  }
  .reggie-character {
    width: 180px;
  }
}

@media (min-width: 1060px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
  .pricing-card--featured {
    padding-top: 36px;
    padding-bottom: 40px;
  }
}
