/* ============================================================
   RFFL — Homepage Styles
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--offwhite);
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 9vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.hero-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ── Hero graphic ─────────────────────────────────────────── */
.hero-graphic-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 0 0;
}

.ticket-stub {
  position: absolute;
  border-radius: var(--radius-xl);
}
.ticket-stub-1 {
  width: 290px;
  height: 160px;
  background: var(--burgundy);
  top: 20px;
  left: 50%;
  transform: translateX(-44%) rotate(7deg);
  opacity: 0.55;
}
.ticket-stub-2 {
  width: 290px;
  height: 160px;
  background: var(--yellow);
  top: 32px;
  left: 50%;
  transform: translateX(-56%) rotate(-5deg);
  opacity: 0.45;
}

/* ── Device phone frame ─────────────────────────────────── */
.device-phone {
  position: relative;
  z-index: 1;
  background: #1c1c1e;
  border-radius: 46px;
  padding: 14px;           /* visible phone bezel around the screen */
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  width: 100%;
  max-width: 316px;
}

.device-screen {
  background: var(--offwhite);
  border-radius: 34px;     /* slightly tighter than phone outer radius */
  overflow: hidden;
}

/* Status bar — sits inside the screen at the top */
.device-status-bar {
  background: var(--burgundy);  /* matches raffle card header — seamless */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 6px;
  gap: 8px;
}
.device-time {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
  flex: 1;
}
.device-island {
  width: 76px;
  height: 20px;
  background: #0d0d0d;
  border-radius: 12px;
  flex-shrink: 0;
}
.device-signal {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Home indicator — sits inside the screen at the bottom */
.device-home-area {
  background: var(--white);
  display: flex;
  justify-content: center;
  padding: 10px 0 12px;
}
.device-home-bar {
  width: 88px;
  height: 4px;
  background: rgba(73, 22, 43, 0.18);
  border-radius: 2px;
}

/* Raffle card — no shadow or radius (device provides both) */
.raffle-card {
  background: var(--white);
  overflow: hidden;
  width: 100%;
}

.raffle-card-header {
  background: var(--burgundy);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.raffle-card-org {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}
.raffle-card-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
}
.raffle-card-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.raffle-card-body { padding: 20px; }

.raffle-card-event-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.raffle-card-prize-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.raffle-card-prize {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.raffle-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.raffle-card-stat {
  background: var(--offwhite);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.stat-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.raffle-card-progress { margin-bottom: 16px; }
.progress-track {
  height: 4px;
  background: rgba(73, 22, 43, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 5px;
}
.progress-fill {
  height: 100%;
  width: 68%;
  background: var(--red);
  border-radius: 2px;
}
.progress-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
}

.raffle-card-cta {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--burgundy);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 11px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(73, 22, 43, 0.22);
  text-align: center;
  letter-spacing: 0.02em;
  cursor: default;
  opacity: 0.7;
}

/* ── Trust strip ────────────────────────────────────────────── */
.trust-strip {
  background: var(--white);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 22px 0;
}
.trust-strip-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  padding: 2px var(--container-px);
  max-width: var(--max-w);
  margin: 0 auto;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.trust-icon {
  width: 28px;
  height: 28px;
  background: rgba(240, 92, 99, 0.09);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-badge-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Why RFFL ───────────────────────────────────────────────── */
.why-rffl {
  background: var(--white);
  padding: var(--section-py) 0;
}
.why-rffl-header { margin-bottom: 44px; }
.why-rffl-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);
}

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

.value-card {
  background: var(--offwhite);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 30px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.value-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.value-body {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ── How it works ───────────────────────────────────────────── */
.how-it-works {
  background: var(--offwhite);
  padding: var(--section-py) 0;
}
.how-header { margin-bottom: 48px; }
.how-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);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
}
.step-body-wrap { padding-top: 5px; }
.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.step-body {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ── Products ───────────────────────────────────────────────── */
.products {
  background: var(--burgundy);
  padding: var(--section-py) 0;
}
.products-header { margin-bottom: 44px; }
.products-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(--white);
}
.products-sub {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
  max-width: 460px;
  margin-top: 12px;
}

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

.product-card {
  border-radius: var(--radius-xl);
  padding: 32px 32px 36px;
}
.product-card--platform {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.product-card--reggie {
  background: var(--offwhite);
}

.product-card-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.product-card--platform .product-card-tag { color: var(--text-on-dark-muted); }
.product-card--reggie  .product-card-tag { color: var(--text-muted); }

.product-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 10px;
}
.product-card--platform .product-card-title { color: var(--white); }
.product-card--reggie  .product-card-title { color: var(--text-primary); }

.product-card-body {
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 24px;
}
.product-card--platform .product-card-body { color: var(--text-on-dark-muted); }
.product-card--reggie  .product-card-body { color: var(--text-secondary); }

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
}
.product-feature {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
}
.product-feature::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23f05c63' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.product-card--platform .product-feature {
  color: var(--text-on-dark-muted);
}
.product-card--platform .product-feature::before {
  background-color: rgba(240, 92, 99, 0.22);
}
.product-card--reggie .product-feature {
  color: var(--text-secondary);
}
.product-card--reggie .product-feature::before {
  background-color: rgba(240, 92, 99, 0.1);
}

/* ── Desktop overrides ──────────────────────────────────────── */
@media (min-width: 720px) {
  .value-grid   { grid-template-columns: repeat(3, 1fr); }
  .steps-grid   { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (min-width: 860px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .hero-content {
    flex: 1;
  }
  .hero-graphic-wrap {
    flex: 0 0 360px;
  }
}

@media (min-width: 1060px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  /* Vertical step layout on wide screens */
  .step {
    flex-direction: column;
    gap: 16px;
  }
  .step-body-wrap { padding-top: 0; }
}
