/* SnipPost — Raindrop.io-inspired design
   Purple brand (#667eea / #764ba2) + clean typography, soft gradients */

:root {
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --purple-600: #5a67d8;
  --purple-700: #4c51bf;
  --purple-800: #434190;
  --violet-500: #667eea;
  --violet-600: #764ba2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-soft: linear-gradient(180deg, rgba(102, 126, 234, 0.06) 0%, transparent 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 600;
  font-size: 1.15rem;
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--violet-500);
}

.nav-cta {
  background: var(--gradient-hero);
  color: var(--white) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--gray-600);
  border-radius: 1px;
}

/* ----- Hero ----- */
.hero {
  padding: 64px 24px 80px;
  background: var(--gradient-soft);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-hero);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--violet-600);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--violet-500);
  color: var(--violet-600);
}

.btn-outline {
  background: transparent;
  color: var(--violet-600);
  border: 2px solid var(--violet-500);
}

.btn-outline:hover {
  background: rgba(102, 126, 234, 0.08);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* Hero visual — browser mock */
.hero-visual {
  max-width: 640px;
  margin: 0 auto;
}

.browser-mock {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-400);
}

.browser-bar .url {
  flex: 1;
  margin-left: 12px;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.mock-content {
  padding: 32px 24px;
  position: relative;
  min-height: 140px;
}

.mock-highlight {
  position: absolute;
  left: 24px;
  top: 36px;
  right: 24px;
  height: 48px;
  background: rgba(102, 126, 234, 0.15);
  border-radius: 6px;
  border-left: 3px solid var(--violet-500);
}

.mock-text {
  position: relative;
  font-size: 1rem;
  color: var(--gray-600);
  font-style: italic;
  margin-bottom: 20px;
}

.mock-popup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--gradient-hero);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.mock-popup-icon {
  font-size: 1.1rem;
}

/* ----- Section defaults ----- */
.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ----- Features ----- */
.features {
  padding: 80px 0;
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  padding: 28px 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ----- How it works ----- */
.how-it-works {
  padding: 80px 0;
  background: var(--gray-50);
}

.steps {
  list-style: none;
  counter-reset: step;
  max-width: 600px;
  margin: 0 auto;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  counter-increment: step;
}

.steps li:last-child {
  margin-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
}

.steps li div {
  padding-top: 4px;
}

.steps strong {
  color: var(--gray-900);
  display: block;
  margin-bottom: 4px;
}

.steps li p,
.steps li div {
  color: var(--gray-600);
  font-size: 1rem;
}

/* ----- Platforms ----- */
.platforms {
  padding: 80px 0;
  background: var(--white);
}

.platform-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.platform-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-weight: 500;
  color: var(--gray-800);
}

.plat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.plat-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

/* ----- Pricing ----- */
.pricing {
  padding: 80px 0;
  background: var(--gradient-soft);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 28px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border-color: var(--violet-500);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.pricing-card .badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-hero);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
  margin-top: 8px;
}

.pricing-card .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.pricing-card .price-detail {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-card li {
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--violet-500);
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
}

/* ----- From the blog (homepage) ----- */
.blog-preview {
  padding: 80px 0;
  background: var(--white);
}

.blog-preview .section-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.blog-preview h2 {
  margin-bottom: 12px;
}

.blog-preview .section-lead {
  margin-bottom: 24px;
}

.blog-preview-list {
  list-style: none;
  margin-bottom: 20px;
}

.blog-preview-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
}

.blog-preview-list li:last-child {
  border-bottom: none;
}

.blog-preview-list a {
  color: var(--purple-600);
  font-weight: 500;
  text-decoration: none;
}

.blog-preview-list a:hover {
  text-decoration: underline;
}

.blog-preview-more {
  color: var(--violet-500);
  font-weight: 600;
  text-decoration: none;
}

.blog-preview-more:hover {
  text-decoration: underline;
}

/* ----- CTA ----- */
.cta {
  padding: 80px 24px;
  background: var(--gradient-hero);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 24px;
}

.cta .btn-primary {
  background: var(--white);
  color: var(--violet-600);
}

.cta .btn-primary:hover {
  background: var(--gray-100);
}

/* ----- Footer ----- */
.site-footer {
  padding: 48px 24px 32px;
  background: var(--gray-900);
  color: var(--gray-400);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 8px;
}

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

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

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

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.site-footer .footer-copy a {
  color: var(--gray-400);
  text-decoration: none;
}

.site-footer .footer-copy a:hover {
  color: var(--white);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

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

  .hero {
    padding: 48px 20px 56px;
  }

  .hero-ctas {
    display: block;
    text-align: center;
    width: 100%;
  }

  .hero-ctas .btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .hero-ctas .btn:first-child {
    margin-bottom: 12px;
  }

  .features,
  .how-it-works,
  .platforms,
  .pricing {
    padding: 56px 0;
  }

  .section-lead {
    margin-bottom: 36px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

/* Optional: mobile nav when implemented via JS */
.nav-links.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
}

/* ----- Legal / policy pages ----- */
.legal-main {
  padding: 48px 24px 80px;
  min-height: 60vh;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-updated {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.legal-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content ul {
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 24px;
}

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

.legal-content a {
  color: var(--violet-500);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.legal-back a {
  color: var(--violet-600);
  font-weight: 500;
  text-decoration: none;
}

.legal-back a:hover {
  color: var(--violet-500);
  text-decoration: underline;
}
