/* Stayfolio Marketing Website Design System */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --bg-cream: #FDFBF7;
  --text-navy: #1A1F36;
  --primary-coral: #FF6B6B;
  --accent-gold: #F5C769;
  --white: #FFFFFF;
  --gray-light: #F3F4F6;
  --gray-medium: #E5E7EB;
  --text-muted: #5A607F;
  --card-border: rgba(26, 31, 54, 0.08);

  /* Fonts */
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 10px 30px -10px rgba(26, 31, 54, 0.08), 0 1px 3px rgba(26, 31, 54, 0.02);
  --shadow-hover: 0 20px 40px -15px rgba(26, 31, 54, 0.15), 0 1px 5px rgba(26, 31, 54, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-cream);
  color: var(--text-navy);
  font-family: var(--font-body);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

/* Core Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphic Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(253, 251, 247, 0.8);
  border-bottom: 1px solid rgba(26, 31, 54, 0.04);
  transition: var(--transition-smooth);
}

.header--scrolled {
  background-color: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 31, 54, 0.08);
  box-shadow: 0 4px 20px rgba(26, 31, 54, 0.03);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  transition: var(--transition-smooth);
}

.header--scrolled .nav {
  height: 56px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link--active {
  color: var(--text-navy);
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 99px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 15px;
}

.btn--primary {
  background-color: var(--primary-coral);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
  background-color: #FF5A5A;
}

.btn--secondary {
  background-color: transparent;
  color: var(--text-navy);
  border: 2px solid var(--text-navy);
}

.btn--secondary:hover {
  background-color: var(--text-navy);
  color: var(--bg-cream);
  transform: translateY(-2px);
}

.btn-nav-download {
  padding: 10px 20px;
  font-size: 14px;
}

.store-badge-container {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: var(--transition-smooth);
  height: 48px;
  box-sizing: border-box;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  filter: brightness(1.1);
}

.store-badge-img {
  width: auto;
  display: block;
}

.store-badge-img--apple {
  height: 32px;
  margin-top: 0.5px;
}

.store-badge-img--google {
  height: 34px;
}

/* Hero Section */
.hero-section {
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: flex-start;
}

.hero-text h1 {
  font-size: 48px;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Smartphone Mockup Frame */
.mockup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background-color: #0E1015;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(26, 31, 54, 0.25);
  border: 4px solid #33394F;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 130px;
  height: 24px;
  background-color: #0E1015;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--bg-cream);
  position: relative;
}

.phone-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 28px;
}

/* Interactive Preview Toggles */
.preview-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  background-color: rgba(26, 31, 54, 0.03);
  padding: 6px;
  border-radius: 99px;
  border: 1px solid var(--card-border);
  width: fit-content;
  margin: 0 auto 24px;
}

.preview-toggle {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.preview-toggle--active {
  background-color: var(--white);
  color: var(--text-navy);
  box-shadow: 0 4px 10px rgba(26, 31, 54, 0.05);
}

/* Features Grid */
.features-section {
  padding: 80px 0;
  background-color: var(--white);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.section-title-area {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-tag {
  color: var(--primary-coral);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 17px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-cream);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  background-color: var(--white);
  border-color: rgba(255, 107, 107, 0.15);
}

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: rgba(255, 107, 107, 0.08);
  color: var(--primary-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* How It Works (Timeline) */
.how-section {
  padding: 80px 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  position: relative;
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--bg-cream);
  border: 2px solid var(--text-navy);
  color: var(--text-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  margin: 0 auto 24px;
  box-shadow: 0 4px 12px rgba(26, 31, 54, 0.04);
  transition: var(--transition-smooth);
}

.timeline-step:hover .timeline-number {
  background-color: var(--primary-coral);
  border-color: var(--primary-coral);
  color: var(--white);
  transform: scale(1.1);
}

.timeline-step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.timeline-step p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 280px;
  margin: 0 auto;
}

/* Testimonials */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.testimonial-card {
  background-color: var(--bg-cream);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--card-border);
}

.stars {
  color: var(--accent-gold);
  margin-bottom: 16px;
  font-size: 20px;
}

.testimonial-quote {
  font-size: 16px;
  color: var(--text-navy);
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-info h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.author-info p {
  color: var(--text-muted);
  font-size: 13px;
}

/* Call To Action Banner */
.cta-section {
  padding: 80px 0 120px;
}

.cta-banner {
  background-color: var(--text-navy);
  border-radius: 32px;
  padding: 80px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(26, 31, 54, 0.3);
}

.cta-banner h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.cta-banner p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 0 auto 32px;
}

.cta-banner .store-badge-container {
  justify-content: center;
}

/* About / Legal Layout Styles */
.page-header {
  padding: 160px 0 60px;
  text-align: center;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-light);
}

.page-header h1 {
  font-size: 44px;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 18px;
}

.content-section {
  padding: 80px 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 14px;
  color: var(--text-navy);
}

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text-navy);
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content code {
  background: var(--gray-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  font-family: monospace;
  color: #C026D3;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 16px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(245, 199, 105, 0.15);
  color: #D3A13B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.about-feature-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.about-feature-item p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Comparison Table Card */
.comparison-card {
  background-color: var(--white);
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  margin-top: 56px;
  box-shadow: var(--shadow-premium);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.comparison-table th, .comparison-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-navy);
}

.comparison-table td {
  color: var(--text-muted);
  font-size: 15px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.badge-yes {
  color: #10B981;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-no {
  color: #EF4444;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Footer Section */
.footer-section {
  background-color: var(--white);
  padding: 80px 0 40px;
  border-top: 1px solid var(--gray-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-navy);
}

.footer-bottom {
  border-top: 1px solid var(--gray-light);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.social-link:hover {
  color: var(--text-navy);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }
  
  .hero-text h1 {
    font-size: 40px;
  }
  
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .store-badge-container {
    justify-content: center;
  }
  
  .timeline {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .nav-links {
    display: none; /* In production a hamburger toggle would be used */
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .cta-banner {
    padding: 56px 24px;
  }
  
  .cta-banner h2 {
    font-size: 30px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .comparison-card {
    padding: 24px 16px;
  }
  
  .comparison-table th, .comparison-table td {
    padding: 10px 6px;
    font-size: 13px;
  }
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #FAF6EE 0%, var(--white) 100%);
  border-top: 1px solid var(--gray-light);
}

.faq-accordion {
  max-width: 800px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background-color: var(--white);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 107, 107, 0.2);
  background-color: var(--bg-cream);
}

.faq-question {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-navy);
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  user-select: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item--active .faq-icon {
  transform: rotate(45deg);
}

.faq-item--active .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal--active {
  opacity: 1;
  transform: translateY(0);
}

/* Spacing, Colors & Dividers Enhancements */
.hero-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
}

.preview-section {
  padding: 80px 0;
  text-align: center;
  background-color: #FAF6EE;
  border-top: 1px solid rgba(26, 31, 54, 0.04);
  border-bottom: 1px solid rgba(26, 31, 54, 0.04);
}

.how-section {
  background: linear-gradient(180deg, var(--white) 0%, #FAF6EE 100%);
}

.testimonials-section {
  background-color: #FAF6EE;
}

.cta-banner {
  background: radial-gradient(circle at 50% 120%, rgba(255, 107, 107, 0.22) 0%, rgba(26, 31, 54, 0) 70%), #1A1F36;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

@media (min-width: 993px) {
  .timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 15%;
    width: 70%;
    height: 2px;
    border-top: 2px dashed var(--accent-gold);
    z-index: 1;
    opacity: 0.6;
  }
  
  .timeline-number {
    position: relative;
    z-index: 2;
  }
}
