/* ================================================================
   PayStubCheck — components.css
   All homepage section components + responsive breakpoints
   ================================================================ */

/* ── HOW IT WORKS ───────────────────────────────────────────────── */
.hiw-outer {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 5%;
}

.hiw-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* Connector line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--border-2);
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--green-dark);
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.step-card:hover .step-num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: scale(1.1);
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.step-text {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
}

/* ── PRODUCTS SECTION ───────────────────────────────────────────── */
.products-outer {
  padding: 88px 5%;
}

.products-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(121, 192, 6, 0.12);
  transform: translateY(-4px);
}

/* Featured — Premium card */
.product-card.product-featured {
  background: var(--text);
  border-color: var(--text);
}

.product-card.product-featured:hover {
  border-color: var(--green);
  box-shadow: 0 8px 40px rgba(121, 192, 6, 0.25);
}

.product-featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.product-card.product-featured .product-icon {
  background: rgba(121, 192, 6, 0.15);
}

.product-q {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 2px;
}

.product-card.product-featured .product-q {
  color: rgba(255, 255, 255, 0.42);
}

.product-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 8px;
}

.product-card.product-featured .product-name {
  color: #fff;
}

.product-check-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.product-check-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-check-word {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.product-card.product-featured .product-check-word {
  color: #fff;
}

.product-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 22px;
  min-height: 52px;
}

.product-card.product-featured .product-desc {
  color: rgba(255, 255, 255, 0.58);
}

.product-price {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 16px;
}

.product-card.product-featured .product-price {
  color: var(--green);
}

.product-price-cents {
  font-size: 18px;
}

.product-price-per {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
}

.product-card.product-featured .product-price-per {
  color: rgba(255, 255, 255, 0.32);
}

.product-btn {
  width: 100%;
  padding: 12px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.product-btn:hover {
  background: var(--green-dark);
}

.product-card.product-featured .product-btn {
  background: #fff;
  color: var(--text);
}

.product-card.product-featured .product-btn:hover {
  background: var(--green-light);
}

/* ── PREMIUM SHOWCASE ───────────────────────────────────────────── */
.showcase-outer {
  background: #0f1a08;
  padding: 108px 5%;
  position: relative;
  overflow: hidden;
}

.showcase-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.showcase-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(121, 192, 6, 0.10);
  top: -100px;
  right: -80px;
}

.showcase-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(252, 148, 11, 0.07);
  bottom: -50px;
  left: 5%;
}

.showcase-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.showcase-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(121, 192, 6, 0.12);
  border: 1px solid rgba(121, 192, 6, 0.24);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #a8e040;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.showcase-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.showcase-title .showcase-accent {
  color: var(--orange);
}

.showcase-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.78;
  margin-bottom: 32px;
  max-width: 440px;
}

.showcase-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.showcase-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
}

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(121, 192, 6, 0.18);
  border: 1px solid rgba(121, 192, 6, 0.32);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(121, 192, 6, 0.10);
  border: 1px solid rgba(121, 192, 6, 0.20);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
}

.showcase-price-big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--green);
}

.showcase-price-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
}

.showcase-cta {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(121, 192, 6, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.showcase-cta:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(121, 192, 6, 0.45);
}

/* Stub image display */
.showcase-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.stub-frame {
  position: relative;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) rotate(-2deg);
  transition: transform 0.4s ease;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.6));
}

.stub-frame:hover {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) rotate(-0.5deg);
}

.stub-img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  display: block;
}

.stub-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(121, 192, 6, 0.14) 0%, transparent 70%);
  border-radius: 24px;
  pointer-events: none;
  z-index: -1;
}

/* ── TRUST CARDS ─────────────────────────────────────────────────── */
.trust-outer {
  padding: 88px 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.trust-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.trust-card-text {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.62;
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-outer {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 5%;
}

.faq-inner {
  max-width: 820px;
  margin: 0 auto;
}

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

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--green-dark);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 300;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.faq-item.faq-open .faq-toggle {
  background: var(--green);
  color: #fff;
  transform: rotate(45deg);
}

.faq-a {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.78;
  padding-bottom: 22px;
  display: none;
}

.faq-item.faq-open .faq-a {
  display: block;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.58);
  padding: 72px 5% 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.footer-brand-name .footer-brand-dot {
  color: var(--orange);
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.72;
  max-width: 280px;
  margin-bottom: 22px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
}

.footer-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.20);
  line-height: 1.68;
  max-width: 680px;
  margin-top: 18px;
}

/* ── RESPONSIVE BREAKPOINTS ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .steps-grid::before {
    display: none;
  }

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

  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .showcase-right {
    order: -1;
  }

  .stub-frame {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) rotate(-1deg);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .hiw-outer,
  .products-outer,
  .showcase-outer,
  .trust-outer,
  .faq-outer {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-sub {
    margin-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .showcase-inner {
    gap: 36px;
  }
}
