/* ==============================================
   Laivu - Mobile-First Responsive Styles
   ============================================== */

:root {
  color-scheme: light dark;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --nav-height: 64px;
  --bottom-nav-height: 64px;
  --header-height: 56px;
  --max-width: 1200px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* Semantic colors for components */
  --on-primary: #ffffff;
  --danger-bg: #fee2e2;
  --danger-text: #991b1b;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --marker-border: #ffffff;
  --marker-center: #ffffff;
  --skeleton-mid: #f1f5f9;
  /* Category marker colors */
  --cat-events: #f59e0b;
  --cat-services: #3b82f6;
  --cat-alerts: #ef4444;
  --cat-marketplace: #22c55e;
  --cat-general: #2563eb;
}

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

html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==============================================
   Layout
   ============================================== */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.main-content {
  flex: 1;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 8px);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ==============================================
   Mobile Header
   ============================================== */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mobile-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

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

.header-search {
  display: flex;
  align-items: center;
}

.header-search input {
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  width: 100%;
}

.header-search input:focus {
  border-color: var(--primary);
  background: var(--surface);
}

/* ==============================================
   Desktop Header (hidden on mobile)
   ============================================== */
.desktop-header {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.desktop-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desktop-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ==============================================
   Bottom Navigation (mobile only)
   ============================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.65rem;
  min-height: 44px;
  min-width: 44px;
  flex: 1;
  transition: color 0.15s;
}

.bottom-nav a svg {
  width: 24px;
  height: 24px;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--primary);
}

/* ==============================================
   Buttons
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

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

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

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
  width: 100%;
}

.btn-icon {
  padding: 8px;
  border-radius: 50%;
}

/* ==============================================
   Forms
   ============================================== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--danger);
  margin-top: 4px;
}

/* ==============================================
   Cards
   ============================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==============================================
   Post Card
   ============================================== */
.post-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.15s;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
}

.post-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.post-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.post-card-category {
  display: inline-block;
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 8px;
}

.post-card-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-body a,
.post-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.post-card-body a:hover,
.post-content a:hover {
  color: var(--primary-dark);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.post-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==============================================
   Zone Card
   ============================================== */
.zone-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 12px;
}

.zone-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.zone-card-title {
  font-size: 1rem;
  font-weight: 600;
}

.zone-card-badge {
  padding: 2px 8px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.zone-card-details {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ==============================================
   Map
   ============================================== */
.map-container {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
  height: calc(100dvh - var(--header-height) - var(--bottom-nav-height));
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Custom post marker (divIcon - no external image dependency) */
.laivu-post-marker {
  background: transparent;
  border: none;
}
.marker-pin {
  width: 28px;
  height: 28px;
  background: var(--cat-general);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border: 3px solid var(--marker-border);
}

.marker-pin.marker-events   { background: var(--cat-events); }
.marker-pin.marker-services { background: var(--cat-services); }
.marker-pin.marker-alerts   { background: var(--cat-alerts); }
.marker-pin.marker-marketplace { background: var(--cat-marketplace); }
.marker-pin::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--marker-center);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.map-fab {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-fab .btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  color: var(--text);
}

.map-fab .btn.locating {
  animation: locatePulse 1.5s ease-in-out infinite;
}

.map-fab .btn.locating svg {
  animation: spin 0.8s linear infinite;
}

@keyframes locatePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}

.map-filters {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.map-filters .filter-chip {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.map-filters .filter-chip.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* Custom Leaflet popup */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.leaflet-popup-content {
  margin: 12px;
  font-family: inherit;
}

.popup-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.popup-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ==============================================
   Bottom Sheet (mobile detail view)
   ============================================== */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  max-height: 70vh;
  overflow-y: auto;
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto;
}

.bottom-sheet-content {
  padding: 0 20px 20px;
}

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.bottom-sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ==============================================
   Auth Pages
   ============================================== */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.auth-link-sm {
  font-size: 0.8125rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-link-sm:hover {
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

/* ==============================================
   Alerts / Toasts
   ============================================== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: 16px;
  right: 16px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  pointer-events: auto;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================================
   Empty States
   ============================================== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9375rem;
}

/* ==============================================
   Loading
   ============================================== */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-flex !important;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--skeleton-mid) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==============================================
   Modals
   ============================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
}

/* ==============================================
   Page Headers
   ============================================== */
.page-header {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ==============================================
   Feed
   ============================================== */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-filters::-webkit-scrollbar {
  display: none;
}

.feed-filters .filter-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.feed-filters .filter-chip.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* ==============================================
   Utilities
   ============================================== */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }

/* ==============================================
   Desktop Breakpoint (> 768px)
   ============================================== */
@media (min-width: 768px) {
  :root {
    --bottom-nav-height: 0px;
  }

  .mobile-header,
  .bottom-nav {
    display: none !important;
  }

  .desktop-header {
    display: block;
  }

  .main-content {
    padding-bottom: 24px;
  }

  .map-container {
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 16px;
  }

  .modal-overlay {
    align-items: center;
  }

  .modal-content {
    border-radius: var(--radius);
  }

  .bottom-sheet {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .bottom-sheet.open {
    transform: translateX(-50%) translateY(0);
  }

  .auth-card {
    padding: 40px 32px;
  }

  .post-card {
    padding: 20px;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

/* ==============================================
   Large Desktop Breakpoint (> 1024px)
   ============================================== */
@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .map-filters {
    left: 24px;
    right: auto;
    max-width: 400px;
  }

  .map-fab {
    bottom: 24px;
    right: 24px;
  }
}

/* ==============================================
   Dark mode support (auto)
   ============================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;
    --primary-light: rgba(37, 99, 235, 0.2);
    --on-primary: #ffffff;
    --danger-bg: rgba(220, 38, 38, 0.2);
    --danger-text: #fca5a5;
    --success-bg: rgba(22, 163, 74, 0.2);
    --success-text: #86efac;
    --warning-bg: rgba(217, 119, 6, 0.2);
    --warning-text: #fcd34d;
    --marker-border: #ffffff;
    --marker-center: #ffffff;
    --skeleton-mid: #334155;
  }

  /* Post link dark overrides */
  .post-card-body a,
  .post-content a {
    color: #60a5fa;
  }

  .post-card-body a:hover,
  .post-content a:hover {
    color: #93c5fd;
  }

  /* Leaflet popup dark overrides */
  .leaflet-popup-content-wrapper,
  .leaflet-popup-tip {
    background: var(--surface);
    color: var(--text);
  }
}

/* ==============================================
   Landing Page
   ============================================== */
.landing-page {
  padding-bottom: 0;
}

.landing-hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
  padding: 64px 16px;
  text-align: center;
}

.landing-hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.landing-hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.landing-hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.landing-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.landing-section {
  padding: 48px 16px;
}

.landing-section-title {
  font-size: 1.375rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.landing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.landing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s;
}

.landing-card:hover {
  box-shadow: var(--shadow-lg);
}

.landing-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.landing-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.landing-card-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.landing-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.landing-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.landing-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-step h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.landing-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 640px) {
  .landing-hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .landing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-hero {
    padding: 80px 24px;
  }

  .landing-hero-title {
    font-size: 2.5rem;
  }
}

/* ---- Hero enhancements ---- */
.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.landing-hero-note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ---- Trust Bar ---- */
.landing-trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 16px;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ---- Section Headers ---- */
.landing-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.landing-section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 8px auto 0;
  line-height: 1.5;
}

/* ---- Split Layout ---- */
.landing-split {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.landing-split-content {
  flex: 1;
}

.landing-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.landing-split-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.landing-split-visual {
  flex: 1;
  width: 100%;
  max-width: 400px;
}

.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.visual-card-header {
  display: flex;
  gap: 6px;
  padding: 14px 16px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.visual-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.visual-dot-events { background: var(--cat-events); }
.visual-dot-services { background: var(--cat-services); }
.visual-dot-alerts { background: var(--cat-alerts); }

.visual-card-body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visual-post {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.visual-post-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.visual-post-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ---- Pricing ---- */
.landing-pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.pricing-featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}

.pricing-header {
  margin-bottom: 20px;
}

.pricing-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pricing-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-body {
  flex: 1;
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-footer {
  text-align: center;
}

.pricing-extension {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ---- FAQ ---- */
.landing-faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---- Final CTA ---- */
.landing-cta-final {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: var(--on-primary);
}

.landing-cta-final .landing-section-title {
  color: var(--on-primary);
}

.landing-cta-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.landing-cta-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
}

/* ---- Responsive landing enhancements ---- */
@media (min-width: 640px) {
  .landing-hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .landing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-hero {
    padding: 80px 24px;
  }

  .landing-hero-title {
    font-size: 2.5rem;
  }

  .landing-pricing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .landing-split {
    flex-direction: row;
    gap: 48px;
  }

  .landing-split-visual {
    max-width: 360px;
  }
}

@media (min-width: 1024px) {
  .landing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-section {
    padding: 64px 24px;
  }

  .landing-steps {
    flex-direction: row;
    gap: 32px;
    max-width: 900px;
  }

  .landing-step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .landing-split-visual {
    max-width: 400px;
  }
}
