/* ========================================
   Target $500 Gift Card Landing Page
   Standalone CSS
   ======================================== */

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #CC0000;
  --color-primary-hover: #A30000;
  --color-foreground: #222222;
  --color-background: #f5f5f5;
  --color-card: #ffffff;
  --color-card-foreground: #222222;
  --color-muted: #666666;
  --color-border: #e0e0e0;
  --color-trustpilot-green: #00b67a;
  --color-trustpilot-gray: #dcdce6;
  --font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius: 0.75rem;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Hero Section ---- */
.hero {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.logo-svg {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-foreground);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.hero-subtitle {
  color: var(--color-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ---- Steps Section ---- */
.steps-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.step-item + .step-item {
  margin-top: 1rem;
}

.step-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--color-foreground);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 2rem;
}

.step-text {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-card-foreground);
  line-height: 1.3;
}

.step-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.125rem;
}

/* ---- CTA Section ---- */
.cta-section {
  text-align: center;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s;
  box-shadow: 0 2px 6px rgba(204, 0, 0, 0.25);
}

.cta-button:hover {
  background-color: var(--color-primary-hover);
}

.urgency-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.urgency-text svg {
  width: 16px;
  height: 16px;
}

.urgency-text .timer {
  font-weight: 700;
}

/* ---- Trustpilot Section ---- */
.trustpilot-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.trustpilot-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.trustpilot-logo svg {
  width: 24px;
  height: 24px;
}

.trustpilot-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-card-foreground);
  letter-spacing: -0.01em;
}

.stars-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.star-icon {
  width: 20px;
  height: 20px;
}

.star-filled {
  color: var(--color-trustpilot-green);
  fill: var(--color-trustpilot-green);
}

.star-empty {
  color: var(--color-trustpilot-gray);
  fill: var(--color-trustpilot-gray);
}

.star-partial-wrapper {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.star-partial-wrapper .star-bg {
  position: absolute;
  inset: 0;
}

.star-partial-wrapper .star-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.trust-score {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.trust-score strong {
  color: var(--color-card-foreground);
  font-weight: 700;
}

/* ---- FAQ Section ---- */
.faq-section {
  margin-bottom: 2rem;
}

.faq-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-foreground);
  margin-bottom: 1rem;
}

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-item + .faq-item {
  margin-top: 0.5rem;
}

.faq-question {
  width: 100%;
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-card-foreground);
  text-align: left;
  font-family: var(--font-family);
}

.faq-question:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.faq-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--color-muted);
}

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

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

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 1rem 0 2rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-foreground);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }

  .content-wrapper {
    padding: 0 24px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.875rem;
  }

  .step-text {
    font-size: 0.875rem;
  }
}
