/* Sparkcut Labs site styles */

/* Base */

body {
  margin: 0;
  /* Use Inter for a modern professional feel, with system fallbacks */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background:
    radial-gradient(circle at top left, #e0f2fe 0, transparent 55%),
    radial-gradient(circle at top right, #e0e7ff 0, transparent 55%),
    #f9fafb;
}

.page-wrap {
  padding-bottom: 4rem;
}

.container {
  max-width: 1120px;
}

/* Top nav */

.top-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.97), rgba(37, 99, 235, 0.94));
  border-bottom: 1px solid rgba(148, 163, 184, 0.55);
}

.sc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #e5e7eb;
  text-decoration: none;
}

.logo-mark {
  /* updated logo styling: subtle pill instead of emoji */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #e5e7eb;
  font-size: 0.92rem;
  text-decoration: none;
}

/* Dropdown menu for Plugins navigation */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: #e5e7eb;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(15, 23, 42, 0.98);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  list-style: none;
  min-width: 220px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.6);
  z-index: 50;
}

.dropdown.open > .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.4rem 0.6rem;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: rgba(148, 163, 184, 0.15);
  color: #ffffff;
}

@media (max-width: 768px) {
  /* Adjust dropdown menu for mobile nav */
  .dropdown-menu {
    position: static;
    background: transparent;
    padding: 0.4rem 0;
    box-shadow: none;
    min-width: 0;
  }
  .dropdown-menu a {
    padding: 0.3rem 0;
  }
}

/* Plugin and pricing icon text styles */
.plugin-icon-text,
.pricing-icon-text {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  color: #020617;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  cursor: pointer;
}

.nav-toggle-bar {
  height: 2px;
  width: 18px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 0 auto;
}

/* All plugins nav pill */

.btn-pill {
  border-radius: 999px;
  padding-inline: 1rem;
  padding-block: 0.35rem;
  background: #f97316;
  color: #ffffff !important;
  border: 1px solid rgba(248, 250, 252, 0.1);
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-pill:hover {
  background: #fb923c;
  color: #ffffff !important;
}

/* Mobile nav */

@media (max-width: 768px) {
  .sc-nav {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(15, 23, 42, 0.98);
    padding: 0.75rem 1rem 1.25rem;
    border-radius: 0 0 1.25rem 1.25rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.6);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .nav-links.is-open {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    padding-top: 0.25rem;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
  }
}


/* All plugins nav pill */

.btn-pill {
  border-radius: 999px;
  padding-inline: 1rem;
  padding-block: 0.35rem;
  background: #f97316;
  color: #ffffff !important;
  border: 1px solid rgba(248, 250, 252, 0.1);
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-pill:hover {
  background: #fb923c;
  color: #ffffff !important;
}

/* Buttons */

.primary.big-btn {
  padding-inline: 1.25rem;
  padding-block: 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
}

.ghost-btn {
  border-radius: 999px !important;
  padding-inline: 1.1rem !important;
  padding-block: 0.65rem !important;
  border: 1px solid rgba(148, 163, 184, 0.9) !important;
  background: rgba(15, 23, 42, 0.02);
  font-size: 0.92rem;
}

.ghost-btn:hover {
  background: rgba(148, 163, 184, 0.15);
}

.pill-btn {
  border-radius: 999px;
  padding-inline: 1.15rem;
  padding-block: 0.6rem;
}

.wide-btn {
  width: 100%;
  border-radius: 999px;
  padding-block: 0.7rem;
}

/* HERO */

.hero-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 3.2rem;
  padding-bottom: 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.45), transparent 55%),
    radial-gradient(circle at bottom, rgba(16, 185, 129, 0.18), transparent 50%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3.2vw, 2.9rem);
  margin-bottom: 0.6rem;
  color: #020617;
}

.hero-text .lead {
  font-size: 1.02rem;
  margin-bottom: 1.3rem;
  color: #1f2937;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.accent {
  color: #4f46e5;
}

.muted {
  font-size: 0.9rem;
  color: #6b7280;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.hero-stat-number {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.hero-stat-label {
  display: block;
  font-size: 0.82rem;
  color: #6b7280;
}

/* Hero preview card */

.hero-preview {
  display: flex;
  justify-content: center;
}

.preview-card {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  background: radial-gradient(circle at top left, #1e293b, #020617);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.7),
    0 0 0 1px rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  animation: floatCard 7s ease-in-out infinite;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.preview-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.3);
  color: #bfdbfe;
}

.preview-title {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.preview-log {
  list-style: none;
  padding: 0;
  margin: 0;
}

.preview-log li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem 0.75rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(55, 65, 81, 0.8);
}

.preview-log li:last-child {
  border-bottom: none;
}

.log-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 0.35rem;
}

.log-dot.positive {
  background: #22c55e;
}

.log-dot.neutral {
  background: #facc15;
}

.log-dot.warning {
  background: #f97316;
}

.log-meta {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Sections */

.section {
  padding: 3rem 0 2.5rem;
}

.section-alt {
  padding: 3rem 0 2.5rem;
  background: radial-gradient(circle at top, #eff6ff 0, #ffffff 55%);
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin-bottom: 0.25rem;
}

.section-header p {
  margin: 0;
  color: #6b7280;
}

/* Plugin overview grid */

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.plugin-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 1.4rem 1.4rem 1.1rem;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.plugin-card.primary-card {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.2);
}

.plugin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  border-color: rgba(148, 163, 184, 0.9);
}

.plugin-card header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.plugin-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  transition: transform 200ms ease;
}

.plugin-icon-wrap.audit {
  background: radial-gradient(circle at 30% 20%, #a5b4fc, #6366f1);
}

.plugin-icon-wrap.ship {
  background: radial-gradient(circle at 30% 20%, #93c5fd, #3b82f6);
}

.plugin-icon-wrap.nudge {
  background: radial-gradient(circle at 30% 20%, #facc15, #eab308);
}

.plugin-icon-wrap.coupon {
  background: radial-gradient(circle at 30% 20%, #fb7185, #ec4899);
}

.plugin-icon {
  font-size: 1.25rem;
}

/* icon hover animation */
.plugin-card:hover .plugin-icon-wrap {
  transform: translateY(-2px) scale(1.05) rotate(-3deg);
}

.plugin-card .tagline {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.plugin-card ul {
  margin: 0.75rem 0 0.8rem;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: #374151;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid transparent;
}

.success-chip {
  background: rgba(22, 163, 74, 0.06);
  border-color: rgba(22, 163, 74, 0.25);
  color: #15803d;
}

.pro-chip {
  background: rgba(79, 70, 229, 0.06);
  border-color: rgba(79, 70, 229, 0.4);
  color: #4f46e5;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.4rem;
}

/* Pricing groups */

.pricing-group {
  margin-top: 2.5rem;
}

.pricing-group:first-of-type {
  margin-top: 1rem;
}

.pricing-group-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.pricing-group-header h3 {
  margin: 0;
}

.pricing-group-header p {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.pricing-group-header .group-chip {
  margin-left: auto;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
}

.pricing-group-header .pricing-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #020617;
}

/* subtle background rings per product group */
.pricing-group-header.audit .pricing-icon {
  background: radial-gradient(circle at 30% 20%, #c7d2fe, #6366f1);
}
.pricing-group-header.ship .pricing-icon {
  background: radial-gradient(circle at 30% 20%, #bfdbfe, #3b82f6);
}
.pricing-group-header.nudge .pricing-icon {
  background: radial-gradient(circle at 30% 20%, #fef3c7, #eab308);
}
.pricing-group-header.coupon .pricing-icon {
  background: radial-gradient(circle at 30% 20%, #fed7e2, #ec4899);
}

.pricing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

/* Plan cards (Free / Pro) */

.plan-card {
  position: relative;
  border-radius: 18px;
  padding: 1.3rem 1.35rem 1.1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.plan-card.highlight {
  border: 1px solid rgba(129, 140, 248, 0.8);
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.5),
    0 18px 42px rgba(79, 70, 229, 0.28);
  background: radial-gradient(circle at top left, #eef2ff, #ffffff);
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: rgba(148, 163, 184, 0.9);
}

.plan-card header h4 {
  margin-bottom: 0.15rem;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.plan-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: #6b7280;
}

.plan-card ul {
  padding-left: 1.1rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.plan-note {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.link-cta {
  font-size: 0.9rem;
  font-weight: 500;
}

/* FAQ – modern expanding cards */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}

details {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.9rem 1.1rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: all 180ms ease-in-out;
  position: relative;
}

details[open] {
  background: radial-gradient(circle at top left, #eef2ff, #ffffff 50%);
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.5),
    0 14px 36px rgba(79, 70, 229, 0.18);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "›";
  transform: rotate(90deg);
  font-size: 1.1rem;
  color: #64748b;
  transition: transform 150ms ease, color 150ms ease;
}

details[open] summary::after {
  transform: rotate(270deg);
  color: #4f46e5;
}

details p {
  margin: 0.85rem 0 0.2rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
  padding-right: 0.4rem;
}


/* Support bubble */

.support-bubble {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at top, #4f46e5, #1d4ed8);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
  z-index: 60;
  animation: pulseBubble 3s ease-in-out infinite;
}

.support-bubble:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.65);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.4rem 0 1.2rem;
  background: #020617;
  color: #9ca3af;
  font-size: 0.88rem;
  text-align: center;
}

.site-footer a {
  color: #e5e7eb;
}

/* Animations */

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulseBubble {
  0%, 100% { box-shadow: 0 18px 40px rgba(37, 99, 235, 0.5); }
  50% { box-shadow: 0 22px 60px rgba(37, 99, 235, 0.75); }
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-preview {
    order: -1;
    margin-bottom: 1rem;
  }
}

@media (max-width: 720px) {
  .hero-wrap {
    padding-top: 2.3rem;
  }
}

@media (max-width: 640px) {
  
  .hero-actions {
    justify-content: flex-start;
  }
}

/* Dark mode (automatic) */

@media (prefers-color-scheme: dark) {
  body {
    color: #e5e7eb;
    background:
      radial-gradient(circle at top left, #0f172a 0, transparent 55%),
      radial-gradient(circle at top right, #020617 0, transparent 55%),
      #020617;
  }

  .hero-bg {
    opacity: 0.55;
  }

  .section-alt {
    background: radial-gradient(circle at top, #020617 0, #020617 60%);
  }

  .plugin-card,
  .plan-card,
  details {
    background: #020617;
    border-color: #1f2937;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
  }

  .plugin-card ul,
  .plan-card ul,
  details p {
    color: #cbd5f5;
  }

  .section-header p,
  .muted,
  .hero-stat-label,
  .plan-price span {
    color: #9ca3af;
  }

  .plan-card.highlight {
    background: radial-gradient(circle at top left, #111827, #020617);
    border-color: #4f46e5;
  }

  details[open] {
    background: radial-gradient(circle at top left, #111827, #020617 50%);
    border-color: #4f46e5;
  }
}
