/* ==========================================================================
   Prizely — Design tokens
   ========================================================================== */

:root {
  /* Color palette — sourced from AppColors.lightPalette */
  --bg: #f8fafc;
  --bg-tint: #eef2fa;
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --card: #ffffff;
  --text-dark: #0f172a;
  --text-grey: #64748b;
  --divider: #e5e5ea;
  --success: #059669;
  --gold: #ffb800;

  /* Derived */
  --primary-rgb: 30, 58, 138;
  --primary-light-rgb: 59, 130, 246;
  --gold-rgb: 255, 184, 0;

  /* Type */
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm:
    0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);

  --container: 1180px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 620px;
  margin: 0 0 56px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-grey);
  font-size: 17px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(var(--primary-rgb), 0.28);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--divider);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Store download badge (Google Play only for now)
   ========================================================================== */

.store-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge-link {
  display: inline-flex;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}
.store-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-badge-link img {
  height: 54px;
  width: auto;
  display: block;
}

/* Compact variant used in the header */
.store-badge-link.compact img {
  height: 38px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-grey);
  transition: color 0.18s ease;
}
.nav-links a:hover {
  color: var(--text-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  transition: background 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  transition: transform 0.25s ease;
}
.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 60px;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.5;
}
.hero-blob.one {
  width: 480px;
  height: 480px;
  top: -220px;
  right: -140px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(var(--primary-light-rgb), 0.35),
    rgba(var(--primary-rgb), 0) 70%
  );
}
.hero-blob.two {
  width: 360px;
  height: 360px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(var(--gold-rgb), 0.22),
    rgba(var(--gold-rgb), 0) 70%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy .eyebrow {
  margin-bottom: 20px;
}

.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 700;
}

.hero-copy h1 .accent {
  color: var(--primary);
}

.hero-copy .lede {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-grey);
  max-width: 460px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-grey);
}
.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
}

/* --- Hero mock card (signature element) --- */

.hero-visual {
  display: flex;
  justify-content: center;
}

.app-mock {
  width: 100%;
  max-width: 340px;
}

.mock-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.04);
  padding: 26px;
}

.mock-balance-label {
  font-size: 13px;
  color: var(--text-grey);
  font-weight: 500;
}

.mock-balance-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
}

.mock-balance-amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.mock-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.mock-divider {
  height: 1px;
  background: var(--divider);
  margin: 22px 0;
}

.mock-streak-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mock-streak-head span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.mock-streak-head .streak-count {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
}

.mock-streak-dots {
  display: flex;
  gap: 8px;
}

.streak-dot {
  flex: 1;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--divider);
}
.streak-dot.filled {
  background: var(--gold);
}

.mock-offer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-tint);
}

.mock-offer-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(
    140deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mock-offer-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.mock-offer-text {
  flex: 1;
  min-width: 0;
}
.mock-offer-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
}
.mock-offer-sub {
  font-size: 12px;
  color: var(--text-grey);
  margin-top: 2px;
}
.mock-offer-reward {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--success);
  flex-shrink: 0;
}

.mock-floater {
  position: relative;
}

.mock-floater .floater-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  background: var(--gold);
  color: #3a2600;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 18px rgba(var(--gold-rgb), 0.4);
  transform: rotate(4deg);
}

/* ==========================================================================
   Ways to play
   ========================================================================== */

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.way-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border-top: 3px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.way-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.way-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.way-icon svg {
  width: 22px;
  height: 22px;
}

.way-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.way-card h3 {
  font-size: 19px;
  margin-top: 2px;
}

.way-card p {
  margin-top: 10px;
  color: var(--text-grey);
  font-size: 15px;
}

.way-offers {
  border-top-color: var(--primary);
}
.way-offers .way-icon {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}
.way-offers .way-tag {
  color: var(--primary);
}

.way-games {
  border-top-color: var(--gold);
}
.way-games .way-icon {
  background: rgba(var(--gold-rgb), 0.14);
  color: #b17700;
}
.way-games .way-tag {
  color: #b17700;
}

.way-checkin {
  border-top-color: var(--success);
}
.way-checkin .way-icon {
  background: rgba(5, 150, 105, 0.1);
  color: var(--success);
}
.way-checkin .way-tag {
  color: var(--success);
}

/* ==========================================================================
   How it works
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.04em;
}

.step-card h3 {
  font-size: 20px;
  margin-top: 18px;
}

.step-card p {
  margin-top: 10px;
  color: var(--text-grey);
  font-size: 15px;
}

.step-connector {
  display: none;
}

/* ==========================================================================
   Features
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--divider);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 17px;
}

.feature-card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--text-grey);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--divider);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.faq-icon::before {
  width: 14px;
  height: 2px;
}
.faq-icon::after {
  width: 2px;
  height: 14px;
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-answer p {
  padding: 0 4px 22px;
  color: var(--text-grey);
  font-size: 15px;
  max-width: 620px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 72px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #16296b 100%);
  max-width: calc(var(--container) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.final-cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--gold-rgb), 0.25),
    rgba(var(--gold-rgb), 0) 70%
  );
  top: -180px;
  right: -100px;
  filter: blur(10px);
}

.final-cta h2 {
  position: relative;
  color: #fff;
  font-size: clamp(28px, 4vw, 38px);
  max-width: 560px;
  margin: 0 auto;
}

.final-cta p {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 16px;
  font-size: 16px;
}

.final-cta .hero-actions {
  position: relative;
  justify-content: center;
  margin-top: 32px;
}

.final-cta .btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.final-cta .btn-ghost:hover {
  border-color: #fff;
}

.final-cta .btn-primary {
  background: var(--gold);
  color: #3a2600;
  box-shadow: 0 10px 24px rgba(var(--gold-rgb), 0.35);
}
.final-cta .btn-primary:hover {
  background: #ffc633;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-grey);
  font-size: 14.5px;
  max-width: 300px;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  color: var(--text-grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.footer-col ul {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--text-dark);
  transition: color 0.18s ease;
}
.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--divider);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-grey);
}

/* ==========================================================================
   Legal pages (privacy / terms)
   ========================================================================== */

.legal-hero {
  padding: 64px 0 32px;
}

.legal-hero .eyebrow {
  margin-bottom: 16px;
}

.legal-hero h1 {
  font-size: clamp(32px, 4.4vw, 44px);
}

.legal-hero .updated {
  margin-top: 14px;
  color: var(--text-grey);
  font-size: 14.5px;
}

.legal-body {
  padding: 24px 0 96px;
}

.legal-layout {
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

.legal-content section {
  margin-bottom: 44px;
  scroll-margin-top: 96px;
}

.legal-content h2 {
  font-size: 21px;
  margin-bottom: 14px;
}

.legal-content p {
  color: var(--text-grey);
  font-size: 15.5px;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 14px 0;
  padding-left: 20px;
  list-style: disc;
}
.legal-content li {
  color: var(--text-grey);
  font-size: 15.5px;
  margin-bottom: 8px;
  padding-left: 4px;
}

.legal-content strong {
  color: var(--text-dark);
}

.legal-note {
  margin-top: 8px;
  padding: 16px 18px;
  background: var(--bg-tint);
  border-left: 3px solid var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-grey);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-note {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }

  .steps {
    grid-template-columns: 1fr;
  }
  .ways-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links,
  .header-actions .btn,
  .header-actions .store-badge-link {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }
  .site-header.menu-open .header-actions .btn,
  .site-header.menu-open .header-actions .store-badge-link {
    display: inline-flex;
  }

  .section {
    padding: 64px 0;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .final-cta {
    padding: 52px 24px;
    margin: 0 16px;
  }
  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .mock-balance-amount {
    font-size: 34px;
  }
}
