/* LastWordsFromMe - Product Site Styles */
/* Charcoal dark theme matching Flutter Material 3 */

:root {
  --bg: #1A1A1A;
  --surface: #242424;
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --on-surface: #E0E0E0;
  --on-surface-70: rgba(224,224,224,0.7);
  --on-surface-80: rgba(224,224,224,0.8);
  --on-surface-60: rgba(224,224,224,0.6);
  --on-surface-50: rgba(224,224,224,0.5);
  --on-surface-30: rgba(224,224,224,0.3);
  --outline-20: rgba(224,224,224,0.2);
  --outline-30: rgba(224,224,224,0.3);
  --primary-10: rgba(59,130,246,0.1);
  --primary-30: rgba(59,130,246,0.3);
  --primary-70: rgba(59,130,246,0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--on-surface);
}

.navbar-logo img {
  width: 32px;
  height: 32px;
}

.navbar-logo span {
  font-size: 24px;
  font-weight: 700;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  font-size: 14px;
  padding: 10px 24px;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-10);
  text-decoration: none;
}

.btn-text {
  background: transparent;
  color: var(--primary);
  border: none;
  padding: 8px 16px;
}

.btn-text:hover {
  text-decoration: none;
  background-color: var(--primary-10);
  border-radius: 8px;
}

.btn-lg {
  font-size: 18px;
  padding: 16px 32px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 80px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 20px;
  color: var(--on-surface-70);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: var(--surface);
  border: 1px solid var(--outline-30);
  border-radius: 30px;
}

.trust-badge .badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-80);
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
}

/* Sections */
.section {
  padding: 80px 80px;
}

.section-surface {
  background-color: var(--surface);
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--on-surface-70);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Feature Cards */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.feature-card {
  width: 350px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--outline-20);
  border-radius: 16px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-10);
  border-radius: 12px;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--on-surface-70);
  line-height: 1.5;
}

/* Screenshots Carousel */
.screenshots {
  padding: 80px 80px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 0 -20px;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 24px;
  padding: 20px 20px 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 280px;
  text-align: center;
}

.carousel-slide img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.carousel-slide .caption {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-surface-30);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dots .dot.active {
  background: var(--primary);
}

/* Steps */
.steps-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.step-card {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 16px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--on-surface-70);
  line-height: 1.5;
}

/* Pricing */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.pricing-card {
  width: 260px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--outline-20);
  border-radius: 16px;
  text-align: center;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
}

.popular-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.pricing-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
}

.pricing-price .currency {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-70);
  margin-left: 4px;
}

.pricing-period {
  font-size: 14px;
  color: var(--on-surface-60);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--on-surface-80);
}

.pricing-features li svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  flex-shrink: 0;
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 80px 24px;
}

.cta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta p {
  font-size: 18px;
  color: var(--on-surface-70);
  max-width: 500px;
  margin: 0 auto 32px;
}

/* Footer */
.footer {
  background: var(--surface);
  text-align: center;
  padding: 40px 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  text-decoration: none;
  color: var(--on-surface);
}

.footer-logo img {
  width: 24px;
  height: 24px;
}

.footer-logo span {
  font-size: 18px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--primary);
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 14px;
  color: var(--on-surface-50);
}

/* Legal / Content Pages */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

.content-page h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
}

.content-page .updated {
  font-size: 14px;
  color: var(--on-surface-60);
  margin-bottom: 24px;
}

.content-page .intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--on-surface-80);
  margin-bottom: 32px;
}

.content-section {
  margin-bottom: 32px;
}

.content-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.content-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.content-section p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-surface-80);
  margin-bottom: 16px;
}

.content-section ul {
  list-style: none;
  padding-left: 16px;
  margin-bottom: 16px;
}

.content-section ul li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--on-surface-80);
  padding: 3px 0;
}

.content-section ul li::before {
  content: "\2022";
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Highlight Box */
.highlight-box {
  background: var(--primary-10);
  border: 1px solid var(--primary-30);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

/* Info Box (FAQ important note) */
.info-box {
  display: flex;
  gap: 12px;
  background: var(--primary-10);
  border: 1px solid var(--primary-30);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.info-box svg {
  width: 20px;
  height: 20px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-surface-80);
  margin: 0;
}

.info-box strong {
  color: var(--primary);
}

/* Contact Box */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--outline-30);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.contact-box .name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-box .email {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 12px;
}

.contact-box .note {
  font-size: 13px;
  color: var(--on-surface-70);
}

/* Data Table */
.data-table {
  border: 1px solid var(--outline-30);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.data-table .thead {
  display: flex;
  background: var(--surface);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
}

.data-table .thead > div {
  flex: 1;
}

.data-table .trow {
  display: flex;
  padding: 12px 16px;
  border-top: 1px solid var(--outline-20);
  font-size: 13px;
  color: var(--on-surface-80);
}

.data-table .trow > div {
  flex: 1;
}

/* Service list (bold name + description) */
.service-item {
  padding: 3px 0;
  padding-left: 16px;
  font-size: 14px;
  color: var(--on-surface-80);
}

.service-item::before {
  content: "\2022";
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.service-item strong {
  font-weight: 600;
}

/* FAQ specific */
.faq-item {
  margin-bottom: 32px;
}

.faq-item h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.faq-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface-70);
}

/* Modal / Dialog */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal p {
  font-size: 14px;
  color: var(--on-surface-70);
  margin-bottom: 24px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid var(--outline-30);
  border-radius: 12px;
  color: var(--on-surface);
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  text-align: left;
  margin-bottom: 12px;
  transition: background 0.2s;
}

.store-btn:hover {
  background: var(--primary-10);
}

.store-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.store-btn.disabled:hover {
  background: transparent;
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn .store-label small {
  font-size: 10px;
  color: var(--on-surface-60);
  display: block;
}

.store-btn .store-label span {
  font-size: 16px;
  font-weight: 600;
  display: block;
}

.coming-soon-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-10);
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: auto;
}

/* Responsive: Tablet */
@media (max-width: 800px) {
  .navbar {
    padding: 16px 24px;
  }
  .navbar-logo span {
    font-size: 18px;
  }
  .hero {
    padding: 48px 24px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .section {
    padding: 80px 24px;
  }
  .section-title {
    font-size: 32px;
  }
  .screenshots {
    padding: 80px 24px;
  }
  .feature-card {
    width: 100%;
  }
  .pricing-card {
    width: 100%;
  }
  .steps-grid {
    flex-direction: column;
    align-items: center;
  }
  .step-card {
    max-width: 100%;
  }
  .content-page h1 {
    font-size: 32px;
  }
}

/* Responsive: Mobile */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 32px;
  }
  .hero-sub {
    font-size: 16px;
  }
  .trust-badge {
    flex-direction: column;
    gap: 8px;
  }
  .carousel-slide {
    width: 240px;
  }
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
