:root {
  --qj-blue: #0074d9;
  --qj-green: #2e9d49;
  --qj-orange: #f2a540;
  --qj-red: #e74c3c;
  --qj-bg-light: #f5f7fb;
  --qj-text-main: #212533;
  --qj-muted: #6b7280;
  --qj-radius-lg: 18px;
  --qj-radius-md: 12px;
  --qj-radius-sm: 8px;
  --qj-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.14);
}

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

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--qj-text-main);
  background: linear-gradient(180deg, #e9f4ff 0%, #ffffff 40%);
}

h2 {
  margin-top: 0;
  margin-bottom: 6px;  /* tweak this value to control gap below */
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  padding: 40px 0 12px;   /* was 24px 0 12px; */
  background: transparent;
}

/* optional extra separation between logo and hero */
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}


.logo-image {
  max-height: 72px;   /* a bit larger since it’s the main title */
  width: auto;
  display: block;
}


/* Hero */

.hero {
  padding: 24px 0 48px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

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

/* Feature graphic card */

.video-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  border-radius: var(--qj-radius-lg);
  overflow: hidden;
  box-shadow: var(--qj-shadow-soft);
  cursor: pointer;
  background: #000;
}

/* Thumbnail and video both fill the card */
.video-thumb,
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video is layered on top of the thumbnail */
.hero-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* When playing, fade the video in and make it interactive */
.hero-video.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Hide states */
.video-thumb.hidden,
.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Play overlay */

.play-overlay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 14px;

  background: rgba(255, 255, 255, 0.9);   /* almost solid light background */
  border: 2px solid #0f6ddf;              /* Quote Jumble blue outline */
  color: #111827;                         /* dark text */
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 109, 223, 0.25);
  backdrop-filter: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, border-color 0.15s ease;
}

.play-overlay:hover {
  background: #ffffff;
  border-color: #0b5ac0;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 109, 223, 0.35);
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #111827;
  color: #111827;
  font-size: 9px;
}




/* Hero copy */s

.hero-copy h2 {
  margin: 0 0 4px;    /* was 0 0 8px; tighter gap below H1-style heading */
  font-size: 30px;
  line-height: 1.15;
}

.hero-tagline {
  margin: 0 0 8px;   /* keep or adjust if you want more/less space below */
  font-size: 17px;
}


.hero-note {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--qj-green);
  font-weight: 600;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  background: var(--qj-blue);
  box-shadow: 0 8px 18px rgba(0, 116, 217, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;

  width: 180px;
  justify-content: flex-start;   /* was center: left-align icon + text */
}

.store-icon {
  width: 30px;            /* was 40px */
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
}





.store-button.android {
  background: var(--qj-orange);             /* Quote Jumble yellow/orange */
  box-shadow: 0 10px 24px rgba(242, 165, 64, 0.45);
  color: #1f2933;                           /* darker text for contrast */
}

.store-button.android .store-name {
  color: #1f2933;
}

.store-button.android .store-label {
  color: #374151;
}


.store-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.store-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;      /* more like an app icon */
  object-fit: cover;
}


.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-label {
  font-size: 11px;
  opacity: 0.9;
}

.store-name {
  font-size: 15px;
  font-weight: 700;
}

/* Feature list */

.feature-list {
  margin: 14px 0 0;   /* added top margin */
  padding-left: 18px;
  font-size: 14px;
  color: var(--qj-muted);
}

/* About section */

.about {
  padding: 32px 0 40px;
  background: var(--qj-bg-light);
}

.about h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.about p {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  color: var(--qj-muted);
}

/* Footer */

.site-footer {
  padding: 18px 0 26px;
  font-size: 13px;
  color: var(--qj-muted);
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-content {
  display: flex;
  justify-content: flex-end;   /* pushes links to the right */
}

.footer-links a {
  color: var(--qj-blue);
  text-decoration: none;
  margin-left: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}


/* Responsive */

@media (max-width: 840px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    order: 2;
  }

  .hero-media {
    order: 1;
  }

  .header-content {
    flex-direction: column;
    align-items: center;   /* was flex-start */
  }

  .store-buttons {
    justify-content: center;  /* keep buttons centered below hero text */
  }
}


@media (max-width: 520px) {
  .video-card {
    border-radius: var(--qj-radius-md);
  }

  .play-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }

  .hero-layout {
    gap: 24px;
  }

 /* full-width stacked buttons on narrow phones */
@media (max-width: 520px) {
  .store-buttons {
    flex-direction: column;
    align-items: center;      /* center the column */
  }

  .store-button {
    width: 180px;            /* same fixed width as desktop */
    justify-content: flex-start;  /* left-align icon + text */
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .play-overlay {
    right: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
  }

  .play-icon {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }
}
/* Tighter header on phones */
@media (max-width: 480px) {
  .site-header {
    padding: 16px 0 4px;
  }

  .header-content {
    margin-bottom: 0px;
  }

  .logo-image {
    max-height: 48px;
  }
  .hero {
    padding-top: 8px;    /* was 24px globally */
  }
}

