/* ===== CSS Variables & Root ===== */
:root {
  --background: #ebebeb;
  --foreground: #1a2b4a;
  --card: #ffffff;
  --card-foreground: #1a2b4a;
  --primary: #cc0000;
  --primary-foreground: #ffffff;
  --secondary: #f5f5f5;
  --secondary-foreground: #1a2b4a;
  --muted: #f0f0f0;
  --muted-foreground: #6b7280;
  --accent: #003087;
  --accent-foreground: #ffffff;
  --border: #e0e0e0;
  --input: #e0e0e0;
  --ring: #cc0000;
  --radius: 0.75rem;
  --costco-red: #cc0000;
  --costco-blue: #003087;
  --notification-bg: #1d7a8c;
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.5;
}

/* ===== Animations ===== */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(204, 0, 0, 0.5);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Notification Bar ===== */
.notification-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--notification-bg);
  color: white;
  font-size: 12px;
  font-weight: 500;
  animation: slideDown 0.5s ease-out;
}

.notification-icon {
  width: 16px;
  height: 16px;
  stroke: white;
  flex-shrink: 0;
}

.notification-name,
.notification-amount {
  font-weight: bold;
}

/* ===== Main Container ===== */
.main-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* ===== Reward Card ===== */
.reward-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.6s ease-out;
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem 0.5rem;
}

.logo-img {
  width: 144px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.card-headline {
  text-align: center;
  padding: 1.5rem 1.5rem 0.5rem;
}

.headline-subtitle {
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.headline-description {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ===== Marquee Feature Ticker ===== */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.feature-ticker-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 0.55rem 0;
  background: #f8fafc;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  white-space: nowrap;
}

.feature-ticker-track {
  display: inline-flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.feature-ticker-track:hover {
  animation-play-state: paused;
}

.feature-ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-right: 0.75rem;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #166534;
  letter-spacing: -0.01em;
}

.check-icon {
  width: 14px;
  height: 14px;
  stroke: #166534;
  flex-shrink: 0;
}

.feature-dot {
  color: #cbd5e1;
  font-size: 0.75rem;
  user-select: none;
}

.headline-amount {
  color: var(--primary);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}



.headline-description {
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
}

.card-divider {
  height: 1px;
  background: #e8e8e8;
  margin: 0.75rem 1.25rem;
}

/* ===== Steps List ===== */
.steps-list {
  list-style: none;
  padding: 0 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

/* ===== CTA Button ===== */
.cta-button-wrapper {
  padding: 0.5rem 1.25rem 1.25rem;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
  animation: pulse-glow 2s infinite;
  transition: transform 0.2s, background-color 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  background: #b30000;
}

.cta-button:active {
  transform: translateY(0);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  stroke: white;
  transition: transform 0.2s;
}

.cta-button:hover .arrow-icon {
  transform: translateX(4px);
}

/* ===== Urgency Text ===== */
.urgency-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 1.25rem 1.25rem;
  color: #cc0000;
  font-size: 12px;
  font-weight: 600;
}

.urgency-icon {
  width: 14px;
  height: 14px;
  stroke: #cc0000;
  flex-shrink: 0;
}

/* ===== Trustpilot ===== */
.trustpilot-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid #f0f0f0;
}

.trustpilot-logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trustpilot-text {
  font-size: 13px;
  font-weight: bold;
  color: #111;
  letter-spacing: -0.02em;
}

.trustpilot-stars {
  display: flex;
  gap: 3px;
}

.star-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.full-green {
  background: #00b67a;
}

.full-green svg {
  width: 20px;
  height: 20px;
}

.half-split {
  overflow: hidden;
}

.half-green {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #00b67a;
}

.half-grey {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #dcdce5;
}

.half-star {
  position: relative;
  z-index: 10;
  width: 20px;
  height: 20px;
}

.trustpilot-score {
  font-size: 11px;
  color: #999;
}

.trustpilot-score strong {
  color: #4a5568;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 0 1rem 2rem;
  margin-top: 2rem;
}

.faq-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.faq-title {
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.faq-subtitle {
  color: #4a8fa0;
  font-size: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.faq-question:hover {
  background-color: #fafafa;
}

.faq-question h3 {
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.faq-chevron {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 1rem;
  padding-top: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 12px;
  color: #000000;
}

.footer p {
  margin-bottom: 0.5rem;
}

.footer-domain {
  font-weight: bold;
  color: #000000;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-domain:hover {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #000000;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}

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

/* Tablets and smaller laptops */
@media (max-width: 768px) {
  .main-container {
    padding: 1.5rem 1rem 2.5rem;
  }

  .headline-amount {
    font-size: 2.75rem;
  }

  .cta-button {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .notification-bar {
    font-size: 11px;
    padding: 0.5rem 0.75rem;
  }
}

/* Large phones */
@media (max-width: 640px) {
  .main-container {
    padding: 1rem 0.75rem 2rem;
  }

  .notification-bar {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .headline-amount {
    font-size: 2.5rem;
  }

  .logo-img {
    width: 120px;
  }

  .step-item {
    align-items: flex-start;
  }

  .step-number {
    margin-top: 2px;
  }

  .step-text {
    font-size: 14px;
  }

  .cta-button {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  .faq-question h3 {
    font-size: 13.5px;
  }

  .faq-answer p {
    font-size: 13px;
    line-height: 1.55;
  }
}


/* Small phones */
@media (max-width: 480px) {
  .main-container {
    padding: 0.75rem 0.5rem 1.5rem;
  }

  .reward-card {
    border-radius: 0.75rem;
  }

  .card-logo {
    padding: 1rem 1rem 0.5rem;
  }

  .logo-img {
    width: 100px;
  }

  .card-headline {
    padding: 1.25rem 1rem 0.5rem;
  }

  .headline-subtitle {
    font-size: 0.9rem;
  }

  .headline-amount {
    font-size: 2.25rem;
  }

  .headline-description {
    font-size: 0.8rem;
  }

  .steps-list {
    padding: 0 1rem 0.75rem;
    gap: 0.4rem;
  }

  .step-number {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .step-text {
    font-size: 10.5px;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 0.8rem 0.9rem;
  }

  .arrow-icon {
    width: 18px;
    height: 18px;
  }

  .urgency-text {
    font-size: 11px;
  }

  .trustpilot-section {
    margin: 0.75rem;
    padding: 0.625rem;
  }

  .star-box {
    width: 28px;
    height: 28px;
  }

  .full-green svg,
  .half-star {
    width: 18px;
    height: 18px;
  }

  .trustpilot-score {
    font-size: 10px;
  }

  .faq-section {
    padding: 0 0.5rem 1.5rem;
  }

  .faq-title {
    font-size: 1.1rem;
  }

  .faq-subtitle {
    font-size: 11px;
  }

  .faq-question {
    padding: 0.875rem;
  }

  .faq-question h3 {
    font-size: 12px;
  }

  .faq-chevron {
    width: 12px;
    height: 12px;
  }

  .faq-answer p {
    padding: 0.875rem;
    padding-top: 0;
    font-size: 11px;
  }

  .footer {
    padding: 1.25rem 0.75rem;
    font-size: 11px;
  }

  .footer-links {
    gap: 0.75rem;
  }
}

/* Extra small phones */
@media (max-width: 375px) {
  .headline-amount {
    font-size: 2rem;
  }

  .logo-img {
    width: 90px;
  }

  .step-text {
    font-size: 10px;
  }

  .cta-button {
    font-size: 0.9rem;
  }

  .faq-question h3 {
    font-size: 11.5px;
  }
}

/* ===== Hide Link Preview ===== */
.link-no-preview {
  position: relative;
  user-select: none;
}

.link-no-preview:hover::after {
  content: '';
  position: absolute;
  display: none;
}
