/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-800));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #1ebe57;
  color: #fff;
  filter: none;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}
.btn-whatsapp:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 3px;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: var(--fs-xs);
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: var(--fs-base);
}

/* Logo text for dark footer / dark theme */
.logo-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-inline .mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
}

.logo-inline .wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.site-footer .logo-inline .wordmark,
.dash-sidebar .logo-inline .wordmark {
  color: #f8fafc;
}

/* Chart canvas */
.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Progress bar in market cards */
.progress {
  height: 6px;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.35rem;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--indigo-500), var(--emerald-500));
  transition: width 0.8s var(--ease);
}

/* Empty / placeholder note for testimonials */
.placeholder-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-style: italic;
}

/* Services: three-up on desktop */
.services-grid-three {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .services-grid-three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tools-grid-ebay {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .tools-grid-ebay {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  .tools-grid-ebay {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.faq-item[open] {
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .faq-item[open] {
  border-color: rgba(129, 140, 248, 0.35);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  color: var(--text);
  padding: 1.1rem 1.25rem;
  position: relative;
  padding-right: 2.75rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  font-size: var(--fs-sm);
  margin: 0;
}

.faq-item a {
  color: var(--accent);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
}


.logo-inline .mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 9px;
}

/* Blog hub + article */
.blog-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .blog-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
  height: 100%;
}
.blog-card:hover {
  border-color: var(--indigo-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
[data-theme="dark"] .blog-card:hover {
  border-color: rgba(129, 140, 248, 0.35);
}
.blog-card .blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.blog-card .blog-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: var(--fw-semibold);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.blog-card h2,
.blog-card h3 {
  margin: 0;
  font-size: var(--fs-lg);
  color: var(--text);
  line-height: var(--lh-tight);
}
.blog-card h2 a,
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}
.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--accent);
}
.blog-card p {
  margin: 0;
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}
.blog-card .blog-card-link {
  color: var(--accent);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.blog-card .blog-card-link:hover {
  text-decoration: underline;
}

.post-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.post-hero .breadcrumb {
  margin-bottom: 1.25rem;
}
.post-hero .hero-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-hero h1 {
  margin: 0 0 0.85rem;
  max-width: 42rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: var(--lh-tight);
  color: var(--text);
}
.post-hero .hero-lead {
  margin: 0 0 1rem;
  max-width: 40rem;
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}
.post-hero .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.article-prose {
  max-width: 720px;
  margin-inline: auto;
}
.article-prose h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--text);
  line-height: var(--lh-tight);
}
.article-prose h2:first-child {
  margin-top: 0;
}
.article-prose h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: var(--fs-lg);
  color: var(--text);
}
.article-prose p {
  margin: 0 0 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.article-prose ul,
.article-prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.article-prose li {
  margin-bottom: 0.45rem;
}
.article-prose a {
  color: var(--accent);
  font-weight: var(--fw-medium);
}
.article-prose a:hover {
  text-decoration: underline;
}
.article-prose strong {
  color: var(--text);
  font-weight: var(--fw-semibold);
}

.hub-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Hero store/banner slider */
.hero-slider {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
}

.hero-slider-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem 0.5rem;
}

.hero-slider-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.hero-slider-kicker {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-slider-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.hero-slider-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.hero-slider-nav:hover {
  background: var(--bg-muted);
  color: var(--text);
  border-color: var(--text-muted);
}

.hero-slider-nav:active {
  transform: scale(0.96);
}

.hero-slider-nav:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.hero-slider-viewport {
  position: relative;
  margin: 0 0.65rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 320px;
  background: var(--bg-muted);
  touch-action: pan-y;
  user-select: none;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-slide.is-active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Hard guarantee: only one banner visible even if JS late */
.hero-slider-track > .hero-slide:not(.is-active) {
  display: none !important;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  padding: 2.25rem 1rem 0.9rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.78) 70%);
  color: #f8fafc;
  z-index: 2;
}

.hero-slide-caption strong {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

.hero-slide-caption span {
  font-size: var(--fs-xs);
  color: rgba(248, 250, 252, 0.82);
}

.hero-slide-caption span::before {
  content: "·";
  margin-right: 0.55rem;
  color: rgba(248, 250, 252, 0.55);
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem 0.85rem;
}

.hero-slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  transition: width var(--duration) var(--ease), background var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.hero-slider-dot:hover {
  background: var(--text-muted);
}

.hero-slider-dot.is-active {
  width: 1.35rem;
  background: var(--accent);
}

.hero-slider-dot:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

[data-theme="dark"] .hero-slider {
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .hero-slide-caption {
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.82) 70%);
}

@media (max-width: 959px) {
  .hero-visual {
    width: 100%;
  }

  .hero-slider {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .hero-slider-dot {
    transition: none;
  }
}


@media (min-width: 960px) {
  .hero-slider-viewport {
    aspect-ratio: 16 / 10;
    min-height: 380px;
  }
}

@media (min-width: 1200px) {
  .hero-slider-viewport {
    min-height: 440px;
  }
}

/* ===== Customer Insights / Platform Reviews ===== */
.reviews-section {
  background: var(--bg);
}

.reviews-section .section-head .section-lead {
  margin-bottom: 0.65rem;
}

.reviews-example-note {
  margin: 0;
  text-align: center;
}

.reviews-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* Soft outer shell (WebAiry-style) */
.review-platform-outer {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0.85rem;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.review-platform-outer:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Inner elevated card */
.review-platform-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-sm);
  min-height: 100%;
}

.review-platform-logo {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  margin-bottom: 0.15rem;
}

.review-logo-svg {
  display: block;
}

.review-platform-name {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

/* Star rating with half-star support via --rating (0–5) */
.star-rating {
  --rating: 0;
  position: relative;
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #e2e8f0;
  width: 5.4em;
  height: 1.2em;
}

.star-rating-bg,
.star-rating-fill {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  overflow: hidden;
}

.star-rating-bg {
  color: #cbd5e1;
}

.star-rating-fill {
  color: #f59e0b;
  width: calc(var(--rating) / 5 * 100%);
}

.review-score {
  margin: 0.15rem 0 0;
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  color: var(--text);
  letter-spacing: -0.02em;
}

.review-count {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.review-example-tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
}

.review-leave-btn {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 200px;
  background: var(--indigo-600);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.review-leave-btn:hover {
  background: var(--indigo-700);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

/* Dark theme */
[data-theme="dark"] .reviews-section {
  background: var(--bg);
}

[data-theme="dark"] .review-platform-outer {
  background: var(--bg-soft);
  border-color: var(--border-strong);
}

[data-theme="dark"] .review-platform-card {
  background: var(--bg-elevated);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .review-platform-logo {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .star-rating-bg {
  color: #334155;
}

[data-theme="dark"] .star-rating-fill {
  color: #fbbf24;
}

[data-theme="dark"] .review-leave-btn {
  background: var(--indigo-500);
}

[data-theme="dark"] .review-leave-btn:hover {
  background: var(--indigo-400);
  color: #0f172a;
}

@media (max-width: 767px) {
  .review-platform-card {
    padding: 1.5rem 1.1rem 1.25rem;
  }

  .review-score {
    font-size: var(--fs-lg);
  }
}
