/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

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

/* Root Variables */
:root {
  --bg-primary: #fffefc;
  --text-primary: #2D1810;
  --text-secondary: #6B5244;
  --text-tertiary: #4A3728;
  --brand-primary: #553116;
  --brand-hover: #442710;
  --border-color: #E8DFD8;
  --bg-secondary: #F5F0ED;
  --accent-gold: #D4A574;
  --accent-line: #D4C4B8;
}

/* Base Styles */
body {
  font-family: 'Cormorant Garamond', serif;
  background-color: var(--bg-primary);
  color: var(--text-tertiary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.navbar-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo img {
  height: 2rem;
}

.navbar-menu {
  display: none;
  gap: 2rem;
  align-items: center;
}

.navbar-menu a {
  color: var(--text-secondary);
  transition: color 0.3s;
  font-size: 1.05rem;
}

.navbar-menu a:hover {
  color: var(--brand-primary);
}

.btn-primary {
  background-color: var(--brand-primary);
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Cormorant Garamond', serif;
}

.navbar-menu a.btn-primary,
.mobile-menu a.btn-primary {
  color: white !important;
}

.btn-primary:hover,
.navbar-menu a.btn-primary:hover,
.mobile-menu a.btn-primary:hover {
  background-color: var(--brand-hover);
  color: white !important;
}

.mobile-menu-button {
  display: block;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--bg-primary);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--text-secondary);
  padding: 0.5rem;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--brand-primary);
}

.mobile-menu .btn-primary {
  text-align: center;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 5rem;
  background-color: var(--bg-primary);
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-slogan {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 48rem;
  margin: 0 auto;
}

.inbox-mockup-container {
  max-width: 42rem;
  margin: 0 auto;
}

/* Inbox Mockup */
.inbox-mockup {
  position: relative;
  background-color: var(--bg-primary);
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  overflow: visible;
}

.inbox-header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.625rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inbox-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
}

.inbox-header span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.email-list {
  border-top: 1px solid var(--border-color);
}

.email-item {
  padding: 0.625rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  background-color: var(--bg-primary);
}

.email-item:hover {
  background-color: var(--bg-secondary);
}

.email-content {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.email-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.email-details {
  flex: 1;
  min-width: 0;
}

.email-subject {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.email-sender {
  font-size: 0.625rem;
  color: var(--text-secondary);
  margin-top: 0.125rem;
}

.email-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--bg-secondary);
  color: var(--brand-primary);
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  margin-top: 0.25rem;
}

.processing-badge {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  background-color: var(--brand-primary);
  color: white;
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in;
}

/* Notification Cards */
.notification-card {
  position: absolute;
  background-color: var(--bg-primary);
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  padding: 0.625rem;
  width: 12rem;
  animation: popIn 0.5s ease-out;
}

.notification-card.calendar {
  bottom: 0.625rem;
  right: 0.625rem;
  animation-delay: 0.8s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.notification-card.whatsapp {
  bottom: 0.625rem;
  right: 13rem;
  animation-delay: 1.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.notification-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.notification-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-icon.calendar {
  background-color: var(--bg-secondary);
}

.notification-icon.whatsapp {
  background-color: #E8F5E9;
}

.notification-header h4 {
  font-size: 0.75rem;
  font-weight: 600;
}

.notification-details {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  font-size: 0.6875rem;
}

.notification-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
}

.notification-detail svg {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.notification-detail p {
  margin: 0;
}

.notification-detail .label {
  color: var(--text-secondary);
}

.notification-detail .value {
  color: var(--text-primary);
  font-weight: 500;
}

.notification-progress {
  margin-top: 0.5rem;
  height: 0.125rem;
  border-radius: 9999px;
  overflow: hidden;
  background-color: #e0e0e0;
}

.notification-progress-bar {
  height: 100%;
  border-radius: 9999px;
  animation: progressBar 0.5s ease-out forwards;
}

.notification-progress-bar.calendar {
  background-color: var(--brand-primary);
  animation-delay: 1.2s;
}

.notification-progress-bar.whatsapp {
  background-color: #4CAF50;
  animation-delay: 1.9s;
}

/* Section Styles */
section {
  padding: 8rem 1.5rem;
  background-color: var(--bg-primary);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto;
}

/* How It Works */
.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.feature-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s;
  background-color: white;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 1rem;
  font-family: 'Cormorant Garamond', serif;
}

.feature-tab:hover {
  background-color: var(--bg-secondary);
}

.feature-tab.active {
  background-color: var(--brand-primary);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-content {
  display: none;
}

.feature-content.active {
  display: grid;
  gap: 2rem;
  position: relative;
}

.steps-container {
  display: grid;
  gap: 2rem;
  position: relative;
}

.step-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  position: relative;
}

.step-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-icon svg {
  color: var(--brand-primary);
}

.step-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-secondary);
}

.step-number {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  width: 2rem;
  height: 2rem;
  background-color: var(--brand-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-primary);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star-icon {
  color: var(--accent-gold);
  fill: var(--accent-gold);
}

.testimonial-quote {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  font-size: 1.05rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.author-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* FAQ */
.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  text-align: left;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
  border: none;
  font-size: 1rem;
  font-family: 'Cormorant Garamond', serif;
}

.faq-question:hover {
  background-color: var(--bg-secondary);
}

.faq-question span {
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.faq-icon {
  color: var(--text-secondary);
  transition: transform 0.3s;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: var(--bg-primary);
}

.faq-answer-content {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* Footer */
footer {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 2rem;
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--brand-primary);
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-secondary);
}

.footer-contact {
  display: flex;
  gap: 1.5rem;
}

.footer-contact a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--brand-primary);
}

/* Privacy Policy Page */
.privacy-policy {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.privacy-container {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.privacy-container h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.privacy-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.privacy-section {
  margin-bottom: 1.5rem;
  padding: 0 0; /* override generic section padding (8rem) that was causing huge gaps */
}

.privacy-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0.25rem;
}

.privacy-section p {
  margin-bottom: 0.65rem;
  line-height: 1.7;
}

.privacy-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.privacy-section li {
  line-height: 1.8;
}

.privacy-section li.bordered {
  padding-left: 0;
  border-left: none;
}

.privacy-section strong {
  color: var(--text-primary);
}

.security-certificate {
  margin-top: 2rem;
  padding: 2rem;
  background: #1a1a1a;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.security-certificate .certificate-logo {
  max-width: 280px;
  height: auto;
  display: block;
}

.privacy-section a {
  color: var(--brand-primary);
  text-decoration: underline;
  transition: color 0.3s;
}

.privacy-section a:hover {
  color: var(--text-primary);
}

.privacy-toc {
  margin-bottom: 0.75rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.privacy-toc h2 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.privacy-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.privacy-toc-list a {
  color: var(--brand-primary);
  text-decoration: none;
  font-size: 0.9375rem;
}

.privacy-toc-list a:hover {
  text-decoration: underline;
  color: var(--text-primary);
}

.privacy-section h3 {
  font-size: 1.125rem;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

.privacy-table-wrapper {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.privacy-table th,
.privacy-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.privacy-table th {
  background: var(--card-bg);
  font-weight: 600;
  color: var(--text-primary);
}

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

.privacy-table tbody tr:hover {
  background: var(--card-bg);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes progressBar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Responsive Design */
@media (min-width: 640px) {
  .feature-tabs {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .navbar {
    padding: 1rem 3rem;
  }

  .mobile-menu-button {
    display: none;
  }

  .navbar-menu {
    display: flex;
  }

  .hero {
    padding: 8rem 3rem 5rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  section {
    padding: 8rem 3rem;
  }

  .steps-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    right: 25%;
    height: 2px;
    background-color: var(--accent-line);
    z-index: 0;
  }

  .step-card {
    position: relative;
    z-index: 1;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .navbar {
    padding: 1rem 6rem;
  }

  .hero {
    padding: 8rem 6rem 5rem;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  section {
    padding: 8rem 6rem;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  footer {
    padding: 6rem 6rem;
  }
}

/* Utility Classes */
.icon-sm {
  width: 14px;
  height: 14px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}
