/* Vocally Signup Styles - Coral Azure Theme */

/* Inter Font Base */
.font-inter, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Tier Cards */
.tier-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tier-card.selected {
  border: 2px solid var(--coral);
  background: rgba(217, 108, 63, 0.1);
}

.selected-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--coral), var(--butter));
  color: var(--bg-main);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.tier-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(217, 108, 63, 0.1) 0%, rgba(253, 243, 176, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tier-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(217, 108, 63, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
              0 0 0 1px rgba(217, 108, 63, 0.2);
}

.tier-card:hover::before {
  opacity: 1;
}

.tier-card.selected {
  border-color: rgba(217, 108, 63, 0.5);
  background: rgba(217, 108, 63, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(217, 108, 63, 0.2);
}

.tier-card.selected::before {
  opacity: 1;
}

.selected-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--forest), var(--success));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(45, 106, 32, 0.3);
  z-index: 10;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 32px;
}

/* Form Styling */
.signup-form label,
#signup-form label {
  color: var(--text-primary) !important;
}

.signup-form input,
.signup-form select {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.signup-form input:focus,
.signup-form select:focus {
  background: var(--bg-accent);
  border-color: rgba(217, 108, 63, 0.5);
  box-shadow: 0 0 0 3px rgba(217, 108, 63, 0.1);
}

/* Button Animations */
button {
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

/* Loading Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Glass Morphism Effects */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .tier-card {
    padding: 24px 20px;
    margin-bottom: 16px;
  }
  
  .tier-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .signup-form {
    padding: 24px;
  }
  
  /* Ensure grid works on mobile for pricing tiers */
  #pricing-tiers-container,
  #tiers-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
}

/* Desktop Tier Cards - ensure proper grid layout */
@media (min-width: 769px) {
  #pricing-tiers-container,
  #tiers-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }
  
  .tier-card {
    width: 100%;
    max-width: none;
  }
}

/* Success and Error States */
.success-container {
  background: rgba(16, 185, 129, 0.1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: fadeInUp 0.6s ease-out;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: shake 0.6s ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Enhanced Visual Effects */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a855f7, #06b6d4);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Star field background effect */
.star-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.star-field::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.1), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: stars 20s linear infinite;
}

@keyframes stars {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}
/* Consistent card height across front/back + during load */
:root {
  --card-h: 240px;            /* base height */
}
@media (min-width: 768px) {
  :root { --card-h: 260px; }  /* tablets */
}
@media (min-width: 1024px) {
  :root { --card-h: 280px; }  /* desktops */
}
