/* ==========================================================================
   SnapSheet - Landing Page Components
   ========================================================================== */

/* Hero Section */
.hero-section {
  padding: 70px 0 50px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.pill-text-mobile {
  display: none;
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 60px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Interactive Simulator Showcase */
.showcase-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.showcase-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-subtle);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.showcase-tabs {
  display: flex;
  background: var(--bg-main);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.showcase-body {
  padding: 24px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Interactive Grid View */
.table-demo-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.interactive-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.interactive-table th {
  background: var(--bg-card-subtle);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.interactive-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  color: var(--text-main);
  position: relative;
  transition: background var(--transition-fast);
}

.interactive-table td:focus-within,
.interactive-table td:hover {
  background: rgba(16, 185, 129, 0.08);
}

.interactive-table td input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.cell-warning {
  position: relative;
}

.cell-warning::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background-color: var(--accent-amber);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-amber);
}

.demo-hint {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Image Preview in Demo */
.image-demo-container {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
}

.receipt-card {
  background: #ffffff;
  color: #1e293b;
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px dashed #cbd5e1;
  position: relative;
}

.receipt-header {
  text-align: center;
  margin-bottom: 18px;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 12px;
}

.scan-bounding-box {
  position: absolute;
  inset: 12px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
  pointer-events: none;
  animation: scan-pulse 2.5s infinite;
}

@keyframes scan-pulse {
  0%, 100% { border-color: rgba(16, 185, 129, 0.4); }
  50% { border-color: rgba(16, 185, 129, 0.9); box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
}

/* Features Section */
.features-section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 56px;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-box svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Privacy Callout Banner */
.privacy-highlight-section {
  padding: 40px 0 80px;
}

.privacy-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.04) 100%);
  border: 1px solid var(--primary-glow);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.privacy-banner-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.privacy-banner-content p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
}

/* FAQ Section */
.faq-section {
  padding: 70px 0 90px;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-focus);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-icon {
  transition: transform var(--transition-fast);
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-box {
  max-width: 680px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}
