/* ==========================================================================
   Orbius Shop Solutions — custom styles (supplements Tailwind utilities)
   ========================================================================== */

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  /* Keeps section headings clear of the 64 px sticky nav when anchor-jumping */
  scroll-padding-top: 4rem;
}

body {
  /* Prevent any absolutely-positioned or transform-shifted elements from
     producing an unwanted horizontal scroll bar at narrow viewports */
  overflow-x: hidden;
}

/* ---------- Hero glow (dark mode only) ---------- */
.hero-glow {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(14, 165, 233, 0.15), transparent 70%),
    radial-gradient(500px 260px at 85% 20%, rgba(14, 165, 233, 0.08), transparent 70%);
}
html:not(.dark) .hero-glow {
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(14, 165, 233, 0.08), transparent 70%);
}

/* ---------- Fade-up entrance animation ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.6s ease-out both;
}
/* Staggered delay for the hero mock card */
.fade-up-delay {
  animation: fadeUp 0.6s ease-out 0.2s both;
}

/* ---------- Mobile menu slide-down animation ---------- */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
#mobileMenu:not(.hidden) {
  animation: slideDown 0.2s ease-out both;
}

/* ---------- Reduced-motion overrides ---------- */
@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-up-delay { animation: none; }
  #mobileMenu:not(.hidden) { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Feature cards ---------- */
.feature-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  /* Flex column so cards in a grid row stretch to equal height */
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.dark .feature-card {
  border-color: #1e293b;
  background: #0f172a;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: #0ea5e9;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.12);
}
.feature-card h3 {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
}
.feature-card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
  flex-grow: 1;
}
.dark .feature-card p {
  color: #94a3b8;
}

/* ---------- Our Story section ---------- */
.story-prose p {
  margin: 0;
}
.story-visual img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 1024px) {
  .story-prose {
    padding-right: 0.5rem;
  }
}

/* ---------- Role tabs ---------- */
.role-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #cbd5e1;
  color: #475569;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.dark .role-tab {
  border-color: #334155;
  color: #94a3b8;
}
.role-tab:hover {
  border-color: #0ea5e9;
  color: #0ea5e9;
}
.role-tab.is-active {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #ffffff;
}
.role-panel {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.75rem;
  background: #ffffff;
  animation: fadeUp 0.35s ease-out both;
}
.dark .role-panel {
  border-color: #1e293b;
  background: #0f172a;
}
.role-list {
  margin-top: 0.75rem;
  /* Remove browser default bullets — checkmarks are added via ::before */
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #475569;
}
.dark .role-list {
  color: #94a3b8;
}
.role-list li::before {
  content: "✓ ";
  color: #0ea5e9;
  font-weight: 700;
}

/* ---------- ROI sliders ---------- */
.roi-slider {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #cbd5e1;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.dark .roi-slider {
  background: #334155;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #0ea5e9;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.roi-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #0ea5e9;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* ---------- Billing-cycle toggle (pricing page) ---------- */
.billing-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.billing-toggle .cycle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 4.5rem;
  padding: 0.625rem 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.billing-toggle .cycle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.billing-toggle .cycle-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1rem;
  width: 100%;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  line-height: 1.2;
}

/* ---------- Pricing cards ---------- */
.price-card {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dark .price-card {
  border-color: #1e293b;
  background: #0f172a;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.price-card.featured {
  border-color: #0ea5e9;
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.18);
  /* Extra top padding so the "MOST POPULAR" badge (absolute -top-3) has
     breathing room and doesn't crowd the card title */
  padding-top: 2.5rem;
}
.price-list {
  margin: 1.5rem 0;
  /* Remove browser default bullets — checkmarks are added via ::before */
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #64748b;
  flex-grow: 1;
}
.dark .price-list {
  color: #94a3b8;
}
.price-list li::before {
  content: "✓ ";
  color: #0ea5e9;
  font-weight: 700;
}
.price-btn-solid,
.price-btn-outline {
  display: block;
  text-align: center;
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}
.price-btn-solid {
  background: #0ea5e9;
  color: #ffffff;
}
.price-btn-solid:hover {
  background: #0284c7;
}
.price-btn-outline {
  border: 1px solid #cbd5e1;
}
.dark .price-btn-outline {
  border-color: #334155;
}
.price-btn-outline:hover {
  border-color: #0ea5e9;
  color: #0ea5e9;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #ffffff;
  overflow: hidden;
}
.dark .faq-item {
  border-color: #1e293b;
  background: #0f172a;
}
.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  user-select: none;
}
.faq-icon {
  font-size: 1.25rem;
  color: #0ea5e9;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-panel p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: #64748b;
}
.dark .faq-panel p {
  color: #94a3b8;
}

/* ---------- Contact form ---------- */
.form-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  background: #ffffff;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.dark .form-input {
  border-color: #334155;
  background: #0f172a;
}
.form-input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.form-input.invalid {
  border-color: #ef4444;
}
textarea.form-input {
  /* Allow vertical resize only — horizontal resize would break the form layout */
  resize: vertical;
}
.field-error {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1rem;
}

/* ---------- Footer partner link ---------- */
.partner-link {
  font-size: 0.85rem;
  color: #7dd3fc;
  text-decoration: none;
  transition: color 0.2s ease;
}
html:not(.dark) .partner-link {
  color: #0284c7;
}
.partner-link:hover {
  text-decoration: underline;
}

/* ---------- Footer navigation ---------- */
.footer-link {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}
.dark .footer-link {
  color: #94a3b8;
}
.footer-link:hover {
  color: #0ea5e9;
}

.footer-legal-link {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.dark .footer-legal-link {
  color: #cbd5e1;
}
.footer-legal-link:hover {
  color: #0ea5e9;
}

/* ---------- Referral program widget ---------- */
.referral-widget {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  padding: 2rem;
  box-shadow: 0 20px 40px -24px rgba(14, 165, 233, 0.35);
}
.dark .referral-widget {
  border-color: #1e293b;
  background: linear-gradient(145deg, #0f172a 0%, #020617 100%);
  box-shadow: 0 20px 40px -24px rgba(14, 165, 233, 0.2);
}
.referral-widget::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.referral-widget--loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 12rem;
  text-align: center;
}
.referral-widget__spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(14, 165, 233, 0.2);
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: referral-spin 0.8s linear infinite;
}
@keyframes referral-spin {
  to { transform: rotate(360deg); }
}
.referral-widget__badge {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #0ea5e9;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
}
.referral-widget__headline {
  margin-top: 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.dark .referral-widget__headline {
  color: #f8fafc;
}
.referral-widget__body {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  max-width: 36rem;
}
.dark .referral-widget__body {
  color: #94a3b8;
}
.referral-widget__link-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .referral-widget__link-row {
    flex-direction: row;
    align-items: stretch;
  }
}
.referral-widget__link-input {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
}
.referral-widget__copy-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 0.5rem;
  background: #0ea5e9;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.referral-widget__copy-btn:hover {
  background: #0284c7;
}
.referral-widget__copy-btn:active {
  transform: scale(0.98);
}
.referral-widget__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  border-radius: 0.5rem;
  background: #0ea5e9;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.referral-widget__cta:hover {
  background: #0284c7;
}
.referral-widget__cta--outline {
  background: transparent;
  border: 1px solid #0ea5e9;
  color: #0ea5e9;
  cursor: pointer;
}
.referral-widget__cta--outline:hover {
  background: rgba(14, 165, 233, 0.08);
}
.referral-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  z-index: 100;
  border-radius: 9999px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.referral-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.dark .referral-toast {
  background: #e2e8f0;
  color: #0f172a;
}

