/* ==============================
   Randio Landing Page
   Brand: Tailwind Emerald (matches admin dashboard)
   ============================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-50:  #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-300: #6ee7b7;
  --brand-400: #34d399;
  --brand-500: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;
  --brand-800: #065f46;
  --brand-900: #064e3b;

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #fff;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --transition: 150ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--brand-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Utility --- */
.text-brand { color: var(--brand-600); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  padding: 0.625rem 1.25rem;
  white-space: nowrap;
}
.btn-sm  { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg  { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--brand-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-700); }

.btn-outline {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--gray-50); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.75);
}
.btn-ghost:hover { color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--brand-700);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { background: var(--brand-50); }

/* --- Header --- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 78, 59, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}

.logo-icon {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-menu {
  display: none;
  padding: 0.5rem 1.5rem 1rem;
  background: var(--brand-900);
}
.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu.open { display: block; }

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-toggle { display: block; }
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 10rem 0 6rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-100) 0%, var(--brand-50) 50%, #f0fdf4 100%);
  z-index: -1;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text {
  max-width: 560px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.platform-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.platform-badges-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.platform-badges-list {
  display: flex;
  gap: 0.5rem;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
}
.shopify-icon {
  flex-shrink: 0;
}
.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero mock visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-mock {
  background: var(--white);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-xl);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
}
.hero-mock-offset {
  margin-left: 2rem;
  opacity: 0.85;
}
.mock-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}
.mock-cards {
  display: flex;
  gap: 0.75rem;
}
.mock-card {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mock-img {
  height: 4rem;
  background: linear-gradient(135deg, var(--brand-100), var(--brand-200));
}
.mock-img-alt  { background: linear-gradient(135deg, var(--brand-200), var(--brand-300)); }
.mock-img-alt2 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.mock-img-alt3 { background: linear-gradient(135deg, #dbeafe, #93c5fd); }
.mock-price {
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-700);
  text-align: center;
}

@media (max-width: 900px) {
  .hero { padding: 10rem 0 4rem; }
  .hero-split { grid-template-columns: 1fr; gap: 3rem; }
  .hero-text { max-width: 100%; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; max-width: 560px; }
  .hero-actions { justify-content: center; }
  .platform-badges { justify-content: center; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .hero-mock-offset { margin-left: 1rem; }
}

/* --- Sections --- */
.section {
  padding: 7rem 0;
}
.section-alt {
  background: var(--brand-100);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
}
.section-header p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* --- Features --- */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}
.feature-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: box-shadow var(--transition);
}
.feature-item:hover { box-shadow: var(--shadow-lg); }
.feature-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  border-radius: var(--radius-md);
}
.feature-text h3 {
  font-size: 1.1875rem;
  font-weight: 600;
}
.feature-text p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- Steps (flow with connectors) --- */
.steps-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}
.steps-flow .step {
  flex: 1;
  text-align: center;
  max-width: 280px;
}
.step-connector {
  display: flex;
  align-items: center;
  padding-top: 0.75rem;
  flex-shrink: 0;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--brand-600);
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: var(--shadow-md);
}
.step-content {
  margin-top: 1rem;
}
.step-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}
.step-content p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .steps-flow { flex-direction: column; align-items: center; gap: 0.5rem; }
  .step-connector { transform: rotate(90deg); padding-top: 0; }
  .steps-flow .step { max-width: 100%; }
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-features {
  flex: 1;
}
.pricing-card-highlight {
  border-color: var(--brand-600);
  box-shadow: var(--shadow-xl);
}
.pricing-card-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.3);
}
.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-600);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.pricing-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
}
.pricing-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.pricing-price {
  margin-top: 1.5rem;
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
}
.price-period {
  color: var(--gray-500);
}
.pricing-features {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pricing-features li {
  font-size: 0.875rem;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.pricing-features li::before {
  content: '';
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  background: var(--brand-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.pricing-features li.pricing-divider {
  border: none;
  margin: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-features li.pricing-divider::before {
  display: none;
}
.pricing-features li.pricing-divider span {
  white-space: nowrap;
}
.pricing-features li.pricing-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
/* --- Pricing Toggle --- */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.pricing-toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color var(--transition);
}
.pricing-toggle-label.active {
  color: var(--gray-800);
  font-weight: 600;
}
.pricing-save-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}
.pricing-toggle-switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background: var(--gray-200);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}
.pricing-toggle-switch.active {
  background: var(--brand-500);
}
.pricing-toggle-knob {
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.pricing-toggle-switch.active .pricing-toggle-knob {
  transform: translateX(1.25rem);
}

.pricing-billing-note {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--gray-400);
}
.pricing-card .btn { margin-top: 2rem; }

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

/* --- CTA --- */
.cta-section {
  padding: 7rem 0;
  background: var(--brand-600);
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
}
.cta-inner p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--brand-100);
}
.cta-inner .btn {
  margin-top: 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--brand-900);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 2.5rem 0;
  color: var(--white);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
  text-align: right;
}

.footer .logo { color: var(--white); }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-copy { text-align: center; }
}
