/* ============================================
   NOMINO VISUAL ENHANCEMENTS
   Personality-driven design improvements
   ============================================ */

/* ============================================
   1. CTA HOVER EFFECTS - Glow & Pulse
   ============================================ */

/* Primary Button Hover - Glow Effect */
.button.w-button,
.button.on-inverse.w-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.button.w-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(21, 140, 238, 0.3),
              0 0 20px rgba(55, 62, 242, 0.2);
}

.button.on-inverse.w-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3),
              0 0 20px rgba(255, 255, 255, 0.15);
}

/* Pulse animation for primary CTAs */
@keyframes subtle-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(21, 140, 238, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(21, 140, 238, 0);
  }
}

.button.w-button:not(.is-secondary) {
  animation: subtle-pulse 3s ease-in-out infinite;
}

/* Secondary Button Hover */
.button.is-secondary.w-button:hover {
  transform: translateY(-1px);
  background-color: rgba(0, 0, 0, 0.05);
}

/* Text Button Hover */
.text-button:hover {
  transform: translateX(4px);
  transition: transform 0.2s ease;
}


/* ============================================
   2. ALTERNATING SECTION BACKGROUNDS
   ============================================ */

/* Default section - white */
.section {
  background-color: #ffffff;
}

/* Secondary section - soft beige */
.section.is-secondary {
  background-color: #faf8f6;
}

/* Inverse section - keep existing gradient but enhance */
.section.is-inverse {
  background: linear-gradient(135deg, #1a1d2e 0%, #2a2f45 100%);
}

/* Add subtle gradient to hero */
header.section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* Testimonials section - soft blue tint */
.section:has(.heading_h2:contains("Real learners")) {
  background-color: #f0f7ff;
}

/* Alternative approach - add utility classes */
.bg-soft-beige {
  background-color: #faf8f6;
}

.bg-soft-blue {
  background-color: #f0f7ff;
}

.bg-soft-green {
  background-color: #f0fdf4;
}


/* ============================================
   3. FEATURE CARD SPACING & BREATHING ROOM
   ============================================ */

/* Add more padding to feature cards */
.card_body {
  padding: 2.5rem !important;
}

/* Increase gap between stacked feature cards */
.flex_horizontal.flex_vertical.gap-large {
  gap: 3rem;
}

/* Better spacing for sticky cards */
.ix_sticky-card {
  margin-bottom: 2rem;
}

/* Add subtle border to cards for definition */
.card.on-secondary,
.card.backdrop-filter_blur {
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.card.on-secondary:hover,
.card.backdrop-filter_blur:hover {
  border-color: rgba(21, 140, 238, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Improve grid gaps */
.grid_3-col.gap-small {
  gap: 1.5rem;
}

.grid_3-col.gap-medium {
  gap: 2rem;
}


/* ============================================
   4. PRICING BADGE STYLING - Make "Save 26%" POP
   ============================================ */

/* Style the "Yearly Plan — Save 26%" eyebrow */
.card.on-secondary .eyebrow {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Highlight "Save 26%" in yearly plan */
li.card.on-secondary:nth-child(2) .eyebrow {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  position: relative;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Add a subtle pulse to the savings badge */
@keyframes badge-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
  }
}

li.card.on-secondary:nth-child(2) .eyebrow {
  animation: badge-pulse 2s ease-in-out infinite;
}

/* Make yearly card stand out more */
li.card.on-secondary:nth-child(2) {
  border: 2px solid #10b981;
  position: relative;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
}

/* Add subtle background to monthly card */
li.card.on-secondary:nth-child(1) {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%) !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Add "Best Value" corner ribbon (optional enhancement) */
li.card.on-secondary:nth-child(2)::before {
  content: "⭐ Best Value";
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}


/* ============================================
   5. FOOTER FORM POLISH - Compact Icon Button
   ============================================ */

/* Redesign footer form for cleaner look */
.footer .flex_horizontal.gap-xsmall {
  max-width: 400px;
}

.footer .input_field.on-inverse {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  color: white;
  transition: all 0.3s ease;
}

.footer .input_field.on-inverse:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.footer .input_field.on-inverse::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Style submit button as icon button */
.footer .button.on-inverse.w-button[value="Subscribe"] {
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  position: relative;
  min-width: auto;
}

.footer .button.on-inverse.w-button[value="Subscribe"]::after {
  content: " →";
  margin-left: 0.25rem;
}

/* Form success message styling */
.footer_form_success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
}


/* ============================================
   6. SUBTLE ICONS & PERSONALITY TOUCHES
   ============================================ */

/* Add emoji-style icons before key headings */
.heading_h4:contains("How do I get started")::before {
  content: "🚀 ";
  margin-right: 0.5rem;
}

.heading_h4:contains("Which languages")::before {
  content: "🌍 ";
  margin-right: 0.5rem;
}

.heading_h4:contains("How much")::before {
  content: "💰 ";
  margin-right: 0.5rem;
}

.heading_h4:contains("iPhone and iPad")::before {
  content: "📱 ";
  margin-right: 0.5rem;
}

/* Add visual emphasis to the 4.9 rating */
.paragraph_large:has(strong:contains("4.9/5")) {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 1rem 2rem;
  border-radius: 12px;
  display: inline-block;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Enhance testimonial cards */
.card.on-secondary:has(.paragraph_large:contains("freeze")) {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

/* Add subtle gradient to avatar circles */
.flex_horizontal.gap-small > div[style*="border-radius: 50%"] {
  background: linear-gradient(135deg, #158CEE, #373EF2) !important;
  box-shadow: 0 4px 12px rgba(21, 140, 238, 0.3);
}


/* ============================================
   7. MICRO-INTERACTIONS & POLISH
   ============================================ */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Add hover state to navigation links */
.nav_link:hover {
  color: #158CEE;
  transition: color 0.2s ease;
}

/* Logo hover effect */
.nav_logo:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Improve link hover states */
.footer_link:hover,
.content-block-link:hover {
  transform: translateX(4px);
  transition: transform 0.2s ease;
}

/* Add subtle scale to content block images on hover */
.content-block-link:hover .image_cover {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

.content-block-link {
  overflow: hidden;
}


/* ============================================
   8. RESPONSIVE REFINEMENTS
   ============================================ */

@media (max-width: 768px) {
  /* Reduce card padding on mobile */
  .card_body {
    padding: 1.5rem !important;
  }

  /* Stack pricing cards with better spacing */
  .flex_horizontal.mobile-l-vertical {
    gap: 1.5rem;
  }

  /* Hide the "Best Value" ribbon on very small screens */
  li.card.on-secondary:nth-child(2)::before {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  /* Reduce button pulse intensity on mobile */
  @keyframes subtle-pulse {
    0%, 100% {
      box-shadow: 0 0 0 0 rgba(21, 140, 238, 0.2);
    }
    50% {
      box-shadow: 0 0 0 4px rgba(21, 140, 238, 0);
    }
  }
}


/* ============================================
   9. ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Improve focus states for keyboard navigation */
.button:focus-visible,
.nav_link:focus-visible,
.footer_link:focus-visible {
  outline: 3px solid #158CEE;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Ensure sufficient color contrast */
.text-color_secondary {
  color: #6b7280 !important;
}

/* Improve input focus states */
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #158CEE;
  outline-offset: 2px;
}


/* ============================================
   10. REAL-WORLD SCENARIOS - Interactive Chips
   ============================================ */

/* Style scenario chips with hover states */
.scenario-chip {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 0.65rem 1.25rem;
  border-radius: 24px;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  cursor: default;
  display: inline-block;
}

.scenario-chip:hover {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Container for scenario chips */
.scenario-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .scenario-chips-container {
    gap: 0.5rem;
  }

  .scenario-chip {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}


/* ============================================
   11. SUPPORT PAGE ENHANCEMENTS
   ============================================ */

/* Add better vertical spacing between FAQ sections */
.text-rich-text > div[style*="padding: 2rem"] {
  margin-bottom: 2.5rem !important;
}

/* Improve h4 spacing in FAQ sections */
.text-rich-text h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1d2e;
}

.text-rich-text h4:first-of-type {
  margin-top: 0.5rem;
}

/* Better spacing for ordered and unordered lists */
.text-rich-text ol,
.text-rich-text ul {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.text-rich-text li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Add subtle hover effect to FAQ sections */
.text-rich-text > div[style*="padding: 2rem"]:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Improve paragraph spacing in FAQ answers */
.text-rich-text p {
  margin-bottom: 1rem;
  line-height: 1.65;
}

/* Better link styling in support content */
.text-rich-text a {
  color: #158CEE;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.text-rich-text a:hover {
  color: #373EF2;
  text-decoration: underline;
}

/* Add breathing room to section headers */
.text-rich-text h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

/* Style strong tags in instructions */
.text-rich-text strong {
  color: #158CEE;
  font-weight: 600;
}

/* Mobile spacing adjustments for support page */
@media (max-width: 768px) {
  .text-rich-text > div[style*="padding: 2rem"] {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .text-rich-text h4 {
    margin-top: 1.5rem;
    font-size: 1.1rem;
  }
}


/* ============================================
   12. FAQ ACCORDION SYSTEM
   ============================================ */

/* Accordion item wrapper */
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

/* Accordion question button */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 0.75rem 0;
  text-align: left;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1d2e;
  transition: all 0.2s ease;
  font-family: inherit;
}

.faq-question:hover {
  color: #158CEE;
}

.faq-question[aria-expanded="true"] {
  color: #158CEE;
}

/* Accordion question text layout */
.faq-question-text {
  flex: 1;
  text-align: left;
}

/* Accordion chevron indicator */
.faq-chevron {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
  color: #6b7280;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: #158CEE;
}

/* Accordion answer content */
.faq-answer {
  padding: 1rem 0;
  max-height: 2000px;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 1;
}

.faq-answer[hidden] {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
}

/* Improve list styling within accordion answers */
.faq-answer ol,
.faq-answer ul {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.faq-answer strong {
  color: #158CEE;
  font-weight: 600;
}

.faq-answer p {
  margin-bottom: 1rem;
  line-height: 1.65;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Focus states for accessibility */
.faq-question:focus-visible {
  outline: 3px solid #158CEE;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Mobile accordion adjustments */
@media (max-width: 768px) {
  .faq-question {
    padding: 1rem 0;
    font-size: 1.1rem;
    min-height: 48px; /* Accessibility: minimum touch target */
  }
}

/* Touch device accordion adjustments (more precise than max-width) */
@media (pointer: coarse) {
  .faq-question {
    min-height: 48px; /* WCAG 2.5.5: minimum 44px, using 48px for comfort */
  }

  .faq-chevron {
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0.75rem 0;
  }
}


/* ============================================
   13. TWO-COLUMN LAYOUT WITH SIDEBAR NAVIGATION
   ============================================ */

/* Support page wrapper */
.support-page-wrapper {
  display: flex;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* Left sidebar - fixed width */
.support-sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* Sticky sidebar container */
.sidebar-sticky {
  position: sticky;
  top: 2rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

/* Right content area - fluid */
.support-content {
  flex: 1;
  min-width: 0; /* Prevent overflow */
  max-width: 900px;
}

/* Sidebar navigation container */
.support-nav {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Sidebar title */
.support-nav-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 1rem;
  margin-top: 0;
}

/* Sidebar navigation item */
.support-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #1a1d2e;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.support-nav-item:hover {
  background: #f0f7ff;
  transform: translateX(4px);
}

.support-nav-item.active {
  background: linear-gradient(135deg, #158CEE 0%, #373EF2 100%);
  color: white;
  font-weight: 600;
}

/* Navigation icon */
.nav-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Navigation label */
.nav-label {
  flex: 1;
}

/* Navigation divider */
.support-nav-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 1rem 0;
}

/* CTA navigation item */
.support-nav-cta {
  background: #f0f7ff;
  border: 2px solid #158CEE;
  font-weight: 600;
  margin-top: 0.5rem;
}

.support-nav-cta:hover {
  background: #158CEE;
  color: white;
  transform: translateX(0);
}

.support-nav-cta .nav-icon {
  font-size: 1.5rem;
}

/* Mobile: Stack vertically, hide sidebar sticky behavior */
@media (max-width: 1024px) {
  .support-page-wrapper {
    flex-direction: column;
    gap: 2rem;
  }

  .support-sidebar {
    width: 100%;
  }

  .sidebar-sticky {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .support-content {
    max-width: 100%;
  }

  /* Convert sidebar nav to horizontal scroll on mobile */
  .support-nav {
    overflow-x: auto;
    padding: 1rem;
  }

  .support-nav-title {
    margin-bottom: 0.75rem;
  }
}

/* Tablet: Adjust spacing */
@media (max-width: 768px) {
  .support-page-wrapper {
    gap: 1.5rem;
  }

  .support-nav-item {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}


/* ============================================
   14. ENHANCED VISUAL COMPONENTS
   ============================================ */

/* Caution Card - for warnings and important notes */
.caution-card {
  display: flex;
  gap: 1rem;
  background: #fff5f5;
  border: 2px solid #ff6b6b;
  border-left: 6px solid #ff6b6b;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.caution-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}

.caution-content {
  flex: 1;
}

.caution-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #c92a2a;
}

.caution-content p {
  margin: 0;
  color: #6b1919;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pro Tip Block - helpful hints and suggestions */
.pro-tip {
  display: flex;
  gap: 1rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left: 4px solid #10b981;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.pro-tip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.pro-tip-content {
  flex: 1;
  font-size: 0.95rem;
  color: #065f46;
  line-height: 1.6;
}

.pro-tip-content strong {
  color: #047857;
  font-weight: 700;
}

/* Success Note - positive confirmations */
.success-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  border-radius: 8px;
  padding: 0.875rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
  color: #065f46;
  font-weight: 600;
}

.success-note-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Mobile adjustments for visual components */
@media (max-width: 768px) {
  .caution-card,
  .pro-tip {
    padding: 1rem;
  }

  .caution-icon,
  .pro-tip-icon {
    font-size: 1.5rem;
  }

  .caution-title {
    font-size: 0.95rem;
  }
}


/* ============================================
   15. BRAND PERSONALITY TOUCHES
   ============================================ */

/* Add Nomi brand gradient to key elements */
.gradient-accent {
  background: linear-gradient(135deg, #158CEE 0%, #373EF2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle animation on scroll (for future enhancement) */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to sections as they come into view (requires JS) */
.animate-on-scroll {
  animation: fade-in-up 0.8s ease-out;
}
